mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 14:54:21 +01:00
add websocket multiplexer
This commit is contained in:
committed by
Jacob Plaster
parent
d027de9964
commit
13e7d505f8
@@ -20,10 +20,10 @@ class Client:
|
||||
|
||||
def __init__(self, API_KEY=None, API_SECRET=None, rest_host=REST_HOST,
|
||||
ws_host=WS_HOST, loop=None, logLevel='INFO', dead_man_switch=False,
|
||||
*args, **kwargs):
|
||||
ws_capacity=25, *args, **kwargs):
|
||||
self.loop = loop or asyncio.get_event_loop()
|
||||
self.ws = BfxWebsocket(API_KEY=API_KEY, API_SECRET=API_SECRET, host=ws_host,
|
||||
loop=self.loop, logLevel=logLevel, dead_man_switch=dead_man_switch,
|
||||
*args, **kwargs)
|
||||
ws_capacity=ws_capacity, *args, **kwargs)
|
||||
self.rest = BfxRest(API_KEY=API_KEY, API_SECRET=API_SECRET, host=rest_host,
|
||||
loop=self.loop, logLevel=logLevel, *args, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user