chore: simplify IF condition
This commit is contained in:
@@ -1774,7 +1774,7 @@ class FreqtradeBot(LoggingMixin):
|
|||||||
if trade.has_open_orders:
|
if trade.has_open_orders:
|
||||||
oo = trade.select_order(side, True)
|
oo = trade.select_order(side, True)
|
||||||
if oo is not None:
|
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(
|
logger.info(
|
||||||
f"A similar open order was found for {trade.pair}. "
|
f"A similar open order was found for {trade.pair}. "
|
||||||
f"Keeping existing {trade.exit_side} order. {price=}, {amount=}"
|
f"Keeping existing {trade.exit_side} order. {price=}, {amount=}"
|
||||||
|
|||||||
Reference in New Issue
Block a user