chore: backtesting should avoid unnecessary logging

This commit is contained in:
Matthias
2024-12-30 13:47:36 +01:00
parent cefacf4a6d
commit f4c004347e

View File

@@ -1249,10 +1249,10 @@ class Backtesting:
oo = trade.select_order(side, True)
if oo:
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=}"
)
# logger.info(
# f"A similar open order was found for {trade.pair}. "
# f"Keeping existing {trade.exit_side} order. {price=}, {amount=}"
# )
return True
self.cancel_open_orders(trade, current_time)