mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Add rate-limited wallets call before adjust_trade-Position calls
closes #8998
This commit is contained in:
parent
7d18261f58
commit
cd6fc1652e
|
@ -613,6 +613,8 @@ class FreqtradeBot(LoggingMixin):
|
|||
for trade in Trade.get_open_trades():
|
||||
# If there is any open orders, wait for them to finish.
|
||||
if trade.open_order_id is None:
|
||||
# Do a wallets update (will be ratelimited to once per hour)
|
||||
self.wallets.update(False)
|
||||
try:
|
||||
self.check_and_call_adjust_trade_position(trade)
|
||||
except DependencyException as exception:
|
||||
|
|
Loading…
Reference in New Issue
Block a user