Explorar el Código

Update stop loss activation logic in MarketMonitor - Changed the method for checking pending stop losses from active trades to the trades table, aligning with the new unified trades management approach. This update enhances the priority handling of stop loss activations, improving overall trading accuracy.

Carles Sentis hace 4 días
padre
commit
3d5e262812
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/monitoring/market_monitor.py

+ 2 - 2
src/monitoring/market_monitor.py

@@ -156,8 +156,8 @@ class MarketMonitor:
         try:
             loop_count = 0
             while self._monitoring_active:
-                # 🆕 PHASE 2: Check active trades for pending stop loss activation first (highest priority)
-                await self._activate_pending_stop_losses_from_active_trades()
+                # 🆕 PHASE 4: Check trades table for pending stop loss activation first (highest priority)
+                await self._activate_pending_stop_losses_from_trades()
                 
                 await self._check_order_fills()
                 await self._check_price_alarms()