mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-29 10:20:25 +00:00
chore: simplify IF condition
This commit is contained in:
@@ -1774,7 +1774,7 @@ class FreqtradeBot(LoggingMixin):
|
||||
if trade.has_open_orders:
|
||||
oo = trade.select_order(side, True)
|
||||
if oo is not None:
|
||||
if (price == oo.price) and (side == oo.side) and (amount == oo.amount):
|
||||
if price == oo.price and side == oo.side and amount == oo.amount:
|
||||
logger.info(
|
||||
f"A similar open order was found for {trade.pair}. "
|
||||
f"Keeping existing {trade.exit_side} order. {price=}, {amount=}"
|
||||
|
||||
Reference in New Issue
Block a user