Don't run "recovery" when stop-orders are open

This commit is contained in:
Matthias
2023-10-05 06:45:00 +02:00
parent 1d941249ed
commit 1e0d622d80

View File

@@ -1087,7 +1087,11 @@ class FreqtradeBot(LoggingMixin):
trades_closed = 0
for trade in trades:
if not trade.has_open_orders and not self.wallets.check_exit_amount(trade):
if (
not trade.has_open_orders
and not trade.stoploss_order_id
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.')