Improve recovery detection by skipping open orders

This commit is contained in:
Matthias 2023-05-24 18:19:14 +02:00
parent a0336c83c3
commit b8220ee0f7

View File

@ -1075,7 +1075,7 @@ class FreqtradeBot(LoggingMixin):
trades_closed = 0
for trade in trades:
if not self.wallets.check_exit_amount(trade):
if trade.open_order_id is None and not self.wallets.check_exit_amount(trade):
logger.warning(
f'Not enough {trade.safe_base_currency} in wallet to exit {trade}. '
'Trying to recover.')