Add rate-limited wallets call before adjust_trade-Position calls

closes #8998
This commit is contained in:
Matthias 2023-08-06 17:11:17 +02:00
parent 7d18261f58
commit cd6fc1652e

View File

@ -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: