Skip to content

Commit

Permalink
2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
DogsTailFarmer committed Nov 26, 2023
1 parent 830c25c commit 978dd81
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 2.0.1 - 2023-11-26
### Fix
* "Groggy" state after start canceling grid before update it

### Update
* Improved calc_over_price()

## 2.0.0.post2 - 2023-11-24
### Fix
* Exception buffered_orders: 'NoneType' object is not subscriptable #68
Expand Down
7 changes: 6 additions & 1 deletion martin_binance/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1900,7 +1900,12 @@ def calc_over_price(self,
'amount_first_grid': amount_first_grid,
'min_delta': min_delta,
'amount_min': amount_min}
over_price, msg = solve(self.calc_grid, reverse_target_amount, over_price_coarse, max_err, **params)
while True:
over_price, msg = solve(self.calc_grid, reverse_target_amount, over_price_coarse, max_err, **params)
if over_price or self.order_q <= ORDER_Q:
break
self.order_q -= 1

self.message_log(msg)
if over_price == 0:
self.message_log("Can't calculate over price for reverse cycle,"
Expand Down

0 comments on commit 978dd81

Please sign in to comment.