mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-14 04:03:55 +00:00
Simplify code line wrapping
This commit is contained in:
parent
e482feed7d
commit
e5c68661fe
|
@ -1275,8 +1275,7 @@ class FreqtradeBot(LoggingMixin):
|
||||||
if order['side'] == trade.entry_side:
|
if order['side'] == trade.entry_side:
|
||||||
self.handle_cancel_enter(trade, order, reason)
|
self.handle_cancel_enter(trade, order, reason)
|
||||||
else:
|
else:
|
||||||
canceled = self.handle_cancel_exit(
|
canceled = self.handle_cancel_exit(trade, order, reason)
|
||||||
trade, order, reason)
|
|
||||||
canceled_count = trade.get_exit_order_count()
|
canceled_count = trade.get_exit_order_count()
|
||||||
max_timeouts = self.config.get('unfilledtimeout', {}).get('exit_timeout_count', 0)
|
max_timeouts = self.config.get('unfilledtimeout', {}).get('exit_timeout_count', 0)
|
||||||
if canceled and max_timeouts > 0 and canceled_count >= max_timeouts:
|
if canceled and max_timeouts > 0 and canceled_count >= max_timeouts:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user