original_docstring: 
          Authenticate websockey connection to subscribe private topic.
          
docstring: Authenticate websockey connection to subscribe private topic.
docstring_tokens: Authenticate websockey connection to subscribe private topic .
code: def authenticate(self):
          """
          Authenticate websockey connection to subscribe private topic.
          """
          expires = int(time.time())
          method = "GET"
          path = "/realtime"
          msg = method + path + str(expires)
          signature = hmac.new(
              self.secret, msg.encode(), digestmod=hashlib.sha256
          ).hexdigest()
  
          req = {"op": "authKey", "args": [self.key, expires, signature]}
          self.send_packet(req)
code_tokens: def authenticate ( self ) : expires = int ( time . time ( ) ) method = "GET" path = "/realtime" msg = method + path + str ( expires ) signature = hmac . new ( self . secret , msg . encode ( ) , digestmod = hashlib . sha256 ) . hexdigest ( ) req = { "op" : "authKey" , "args" : [ self . key , expires , signature ] } self . send_packet ( req )
short_docstring: Authenticate websockey connection to subscribe private topic.
short_docstring_tokens: Authenticate websockey connection to subscribe private topic .
comment: """
          Authenticate websockey connection to subscribe private topic.
          """