Skip to content

Commit 03cdb1c

Browse files
2.0.0.post1
1 parent 350f3f0 commit 03cdb1c

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.0.0.post1 - 2023-11-23
2+
### Fix
3+
* Fix issue detected by SonarCloud
4+
15
## 2.0.0 - 2023-11-23
26
### Fix
37
* Order price must be higher than the minimum price #67

martin_binance/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
__author__ = "Jerry Fedorenko"
77
__copyright__ = "Copyright © 2021 Jerry Fedorenko aka VM"
88
__license__ = "MIT"
9-
__version__ = "2.0.0"
9+
__version__ = "2.0.0.post1"
1010
__maintainer__ = "Jerry Fedorenko"
1111
__contact__ = "https://github.com/DogsTailFarmer"
1212

martin_binance/margin_wrapper.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
__author__ = "Jerry Fedorenko"
55
__copyright__ = "Copyright © 2021 Jerry Fedorenko aka VM"
66
__license__ = "MIT"
7-
__version__ = "2.0.0"
7+
__version__ = "2.0.0.post1"
88
__maintainer__ = "Jerry Fedorenko"
99
__contact__ = "https://github.com/DogsTailFarmer"
1010

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

14491448

14501449
async def cancel_order_handler(_id, cancel_all):

0 commit comments

Comments
 (0)