chore: backtesting should avoid unnecessary logging

This commit is contained in:
Matthias
2024-12-30 13:47:36 +01:00
parent cefacf4a6d
commit f4c004347e
+4 -4
View File
@@ -1249,10 +1249,10 @@ class Backtesting:
oo = trade.select_order(side, True) oo = trade.select_order(side, True)
if oo: if oo:
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=}"
) # )
return True return True
self.cancel_open_orders(trade, current_time) self.cancel_open_orders(trade, current_time)