Forráskód Böngészése

Add external trade detection to MarketMonitor for improved order processing

- Integrated a new method in MarketMonitor to check for external trades, enhancing the processing of filled bot orders.
- This addition is critical for ensuring timely and accurate handling of external trade events within the monitoring cycle.
Carles Sentis 1 hete
szülő
commit
d807d1e80b
2 módosított fájl, 4 hozzáadás és 1 törlés
  1. 3 0
      src/monitoring/market_monitor.py
  2. 1 1
      trading_bot.py

+ 3 - 0
src/monitoring/market_monitor.py

@@ -199,6 +199,9 @@ class MarketMonitor:
                 await self.order_fill_processor._activate_pending_stop_losses_from_trades()
                 await self.order_fill_processor._check_order_fills() 
                 
+                # External trade detection - CRITICAL for processing filled bot orders
+                await self.external_event_monitor._check_external_trades()
+                
                 # Price alarms (kept from external event monitor)
                 await self.external_event_monitor._check_price_alarms()
                 

+ 1 - 1
trading_bot.py

@@ -14,7 +14,7 @@ from datetime import datetime
 from pathlib import Path
 
 # Bot version
-BOT_VERSION = "2.3.173"
+BOT_VERSION = "2.3.174"
 
 # Add src directory to Python path
 sys.path.insert(0, str(Path(__file__).parent / "src"))