Merge branch 'master' into ob

This commit is contained in:
Dario Moceri
2021-08-12 16:39:31 +02:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -1,9 +1,10 @@
1.2.1
-) Added orderbook implementation example (ws)
1.1.16
1.2.0
-) Implemented Margin Info (rest)
-) Implemented claim position (rest)
-) When max_retries == 0 continue forever to retry (websocket)
1.1.15
-) Added 'ids' parameter to get_order_history()

View File

@@ -128,7 +128,7 @@ class GenericWebsocket:
s = Socket(sId)
self.sockets[sId] = s
loop = asyncio.get_event_loop()
while retries < self.max_retries and self.attempt_retry:
while self.max_retries == 0 or (retries < self.max_retries and self.attempt_retry):
try:
async with websockets.connect(self.host) as websocket:
self.sockets[sId].set_websocket(websocket)