Skip to content

Commit

Permalink
1.3.5b4
Browse files Browse the repository at this point in the history
  • Loading branch information
DogsTailFarmer committed Sep 17, 2023
1 parent be15d73 commit f59fff5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* Fix: Incorrect calculated depo volume for grid update, not include held grid orders volume
* Fix: tmp converted when restored MS_ORDERS from list to dict (inter-version compatibility)

## 1.3.4rc5-1 2023-08-24
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__ = "1.3.5b3"
__version__ = "1.3.5b4"
__maintainer__ = "Jerry Fedorenko"
__contact__ = "https://github.com/DogsTailFarmer"

Expand Down
6 changes: 4 additions & 2 deletions martin_binance/executor.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__ = "1.3.4rc4-5"
__version__ = "1.3.5b4"
__maintainer__ = "Jerry Fedorenko"
__contact__ = 'https://github.com/DogsTailFarmer'
##################################################################
Expand Down Expand Up @@ -2953,7 +2953,9 @@ def cancel_grid(self, cancel_all=False):
self.cancel_order_exp(_id, cancel_all=cancel_all)
elif self.grid_remove:
self.message_log("cancel_grid: Ended", log_level=LogLevel.DEBUG)
sum_amount = self.orders_save.sum_amount(self.cycle_buy) if self.grid_update_started else Decimal('0.0')
sum_amount = ((self.orders_save.sum_amount(self.cycle_buy) +
self.orders_hold.sum_amount(self.cycle_buy))
if self.grid_update_started else Decimal('0.0'))
self.orders_save.orders_list.clear()
self.orders_hold.orders_list.clear()
self.grid_remove = None
Expand Down
4 changes: 0 additions & 4 deletions martin_binance/margin_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,10 +546,6 @@ def place_limit_order(self, buy: bool, amount: Decimal, price: Decimal) -> int:
color=ms.Style.B_YELLOW)
loop.create_task(place_limit_order_timeout(cls.order_id))
loop.create_task(create_limit_order(cls.order_id, buy, any2str(amount), any2str(price)))
if cls.exchange == 'huobi':
time.sleep(0.02)
elif cls.exchange == 'okx':
time.sleep(0.035)
return cls.order_id

def get_buffered_completed_trades(self, _get_all_trades: bool = False) -> List[PrivateTrade]:
Expand Down

0 comments on commit f59fff5

Please sign in to comment.