This commit is contained in:
Dobromir Popov
2025-06-19 16:20:26 +03:00
parent bf55ba5b51
commit d902e01197
2 changed files with 29 additions and 6 deletions

View File

@ -2413,7 +2413,7 @@ class EnhancedTradingOrchestrator(TradingOrchestrator):
# Get the best prediction
best_pred = max(predictions, key=lambda p: p.overall_confidence)
confidence = best_pred.overall_confidence
raw_action = best_pred.action
raw_action = best_pred.overall_action
# Update dynamic thresholds periodically
if hasattr(self, '_last_threshold_update'):
@ -2884,6 +2884,10 @@ class EnhancedTradingOrchestrator(TradingOrchestrator):
async def start_cob_integration(self):
"""Start COB integration for real-time data feed"""
try:
if self.cob_integration is None:
logger.warning("COB integration is disabled (cob_integration=None)")
return
logger.info("Starting COB integration for real-time market microstructure...")
await self.cob_integration.start()
logger.info("COB integration started successfully")
@ -2893,6 +2897,10 @@ class EnhancedTradingOrchestrator(TradingOrchestrator):
async def stop_cob_integration(self):
"""Stop COB integration"""
try:
if self.cob_integration is None:
logger.debug("COB integration is disabled (cob_integration=None)")
return
await self.cob_integration.stop()
logger.info("COB integration stopped")
except Exception as e: