Improve if formatting
This commit is contained in:
@@ -1341,10 +1341,12 @@ class FreqtradeBot(LoggingMixin):
|
|||||||
not_closed = order['status'] == 'open' or fully_cancelled
|
not_closed = order['status'] == 'open' or fully_cancelled
|
||||||
|
|
||||||
if not_closed:
|
if not_closed:
|
||||||
if fully_cancelled or (
|
if (
|
||||||
|
fully_cancelled or (
|
||||||
open_order and self.strategy.ft_check_timed_out(
|
open_order and self.strategy.ft_check_timed_out(
|
||||||
trade, open_order, datetime.now(timezone.utc)
|
trade, open_order, datetime.now(timezone.utc)
|
||||||
)
|
)
|
||||||
|
)
|
||||||
):
|
):
|
||||||
self.handle_cancel_order(
|
self.handle_cancel_order(
|
||||||
order, open_order, trade, constants.CANCEL_REASON['TIMEOUT']
|
order, open_order, trade, constants.CANCEL_REASON['TIMEOUT']
|
||||||
|
|||||||
Reference in New Issue
Block a user