소스 검색

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 4 일 전
부모
커밋
3d5e262812
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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()