Skip to content

Commit

Permalink
Merge pull request #161 from itsdeka/retry
Browse files Browse the repository at this point in the history
if max_retries == 0 continue forever
  • Loading branch information
vigan-abd authored Aug 12, 2021
2 parents 62501ed + 30b46b1 commit ab166f7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
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()
Expand Down
2 changes: 1 addition & 1 deletion bfxapi/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
This module contains the current version of the bfxapi lib
"""

__version__ = '1.1.16'
__version__ = '1.2.0'
2 changes: 1 addition & 1 deletion bfxapi/websockets/generic_websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ async def _run_socket(self):
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)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
here = path.abspath(path.dirname(__file__))
setup(
name='bitfinex-api-py',
version='1.1.15',
version='1.2.0',
description='Official Bitfinex Python API',
long_description='A Python reference implementation of the Bitfinex API for both REST and websocket interaction',
long_description_content_type='text/markdown',
Expand Down

0 comments on commit ab166f7

Please sign in to comment.