mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-02-03 12:51:37 +00:00
Improve if formatting
This commit is contained in:
@@ -1341,9 +1341,11 @@ class FreqtradeBot(LoggingMixin):
|
||||
not_closed = order['status'] == 'open' or fully_cancelled
|
||||
|
||||
if not_closed:
|
||||
if fully_cancelled or (
|
||||
open_order and self.strategy.ft_check_timed_out(
|
||||
trade, open_order, datetime.now(timezone.utc)
|
||||
if (
|
||||
fully_cancelled or (
|
||||
open_order and self.strategy.ft_check_timed_out(
|
||||
trade, open_order, datetime.now(timezone.utc)
|
||||
)
|
||||
)
|
||||
):
|
||||
self.handle_cancel_order(
|
||||
|
||||
Reference in New Issue
Block a user