mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-14 20:23:57 +00:00
restore not having open order check before trying to retreive an exchange order
This commit is contained in:
parent
9dd887f2ff
commit
5efc2a09e5
|
@ -1257,7 +1257,11 @@ class FreqtradeBot(LoggingMixin):
|
|||
"""
|
||||
trades_closed = 0
|
||||
for trade in trades:
|
||||
if not trade.has_open_sl_orders and not self.wallets.check_exit_amount(trade):
|
||||
if (
|
||||
not trade.has_open_orders
|
||||
and not trade.has_open_sl_orders
|
||||
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."
|
||||
|
|
Loading…
Reference in New Issue
Block a user