mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 06:44:22 +01:00
Fix small bug in examples/websocket/ticker.py demo.
This commit is contained in:
@@ -96,8 +96,8 @@ class BfxWebsocketClient(object):
|
||||
if await asyncio.gather(*[on_open_event.wait() for on_open_event in self.on_open_events]):
|
||||
self.event_emitter.emit("open")
|
||||
|
||||
if self.credentials != None:
|
||||
await self.__authenticate(**self.credentials)
|
||||
if credentials and credentials["API_KEY"] and credentials["API_SECRET"]:
|
||||
await self.__authenticate(**credentials)
|
||||
|
||||
async for message in websocket:
|
||||
message = json.loads(message)
|
||||
|
||||
Reference in New Issue
Block a user