Skip to content

Commit

Permalink
2.0.0.post1
Browse files Browse the repository at this point in the history
  • Loading branch information
DogsTailFarmer committed Nov 23, 2023
1 parent 350f3f0 commit 03cdb1c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.0.post1 - 2023-11-23
### Fix
* Fix issue detected by SonarCloud

## 2.0.0 - 2023-11-23
### Fix
* Order price must be higher than the minimum price #67
Expand Down
2 changes: 1 addition & 1 deletion martin_binance/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
__author__ = "Jerry Fedorenko"
__copyright__ = "Copyright © 2021 Jerry Fedorenko aka VM"
__license__ = "MIT"
__version__ = "2.0.0"
__version__ = "2.0.0.post1"
__maintainer__ = "Jerry Fedorenko"
__contact__ = "https://github.com/DogsTailFarmer"

Expand Down
9 changes: 4 additions & 5 deletions martin_binance/margin_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
__author__ = "Jerry Fedorenko"
__copyright__ = "Copyright © 2021 Jerry Fedorenko aka VM"
__license__ = "MIT"
__version__ = "2.0.0"
__version__ = "2.0.0.post1"
__maintainer__ = "Jerry Fedorenko"
__contact__ = "https://github.com/DogsTailFarmer"

Expand Down Expand Up @@ -1441,10 +1441,9 @@ async def cancel_order_call(_id: int, cancel_all: bool, count=0):
await cancel_order_handler(_id, cancel_all)
elif not res or res.get('status') in ('NEW', 'PARTIALLY_FILLED'):
await asyncio.sleep(HEARTBEAT * count)
if count > TRY_LIMIT:
cls.strategy.on_cancel_order_error_string(_id, 'Cancel order timeout')
return
await cancel_order_call(_id, cancel_all, count+1)
if count <= TRY_LIMIT:
await cancel_order_call(_id, cancel_all, count+1)
cls.strategy.on_cancel_order_error_string(_id, 'Cancel order timeout')


async def cancel_order_handler(_id, cancel_all):
Expand Down

0 comments on commit 03cdb1c

Please sign in to comment.