MCPcopy Create free account
hub / github.com/ccxt/ccxt / authenticate

Method authenticate

python/ccxt/pro/gate.py:2028–2036  ·  view source on GitHub ↗
(self, url, messageType)

Source from the content-addressed store, hash-verified

2026 return await self.watch_multiple(url, messageHashes, message, messageHashes, sub)
2027
2028 async def authenticate(self, url, messageType):
2029 channel = messageType + '.login'
2030 client = self.client(url)
2031 messageHash = 'authenticated'
2032 future = client.reusableFuture(messageHash)
2033 authenticated = self.safe_value(client.subscriptions, messageHash)
2034 if authenticated is None:
2035 return await self.request_private(url, {}, channel, messageHash)
2036 return future
2037
2038 def handle_authentication_message(self, client: Client, message):
2039 messageHash = 'authenticated'

Callers 7

create_order_wsMethod · 0.95
create_orders_wsMethod · 0.95
cancel_all_orders_wsMethod · 0.95
cancel_order_wsMethod · 0.95
edit_order_wsMethod · 0.95
fetch_order_wsMethod · 0.95

Calls 4

request_privateMethod · 0.95
safe_valueMethod · 0.80
clientMethod · 0.45
reusableFutureMethod · 0.45

Tested by

no test coverage detected