cob update fix

This commit is contained in:
Dobromir Popov
2025-07-28 09:46:49 +03:00
parent 240d2b7877
commit f5416c4f1e
4 changed files with 121 additions and 8 deletions

View File

@ -1231,8 +1231,11 @@ class TradingOrchestrator:
logger.debug(f"Invalidated data provider cache for {symbol} due to COB update")
# Update dashboard
if self.dashboard and hasattr(self.dashboard, 'update_cob_data'):
self.dashboard.update_cob_data(symbol, cob_data)
if self.dashboard and hasattr(self.dashboard, 'update_cob_data_from_orchestrator'):
self.dashboard.update_cob_data_from_orchestrator(symbol, cob_data)
logger.debug(f"📊 Sent COB data for {symbol} to dashboard")
else:
logger.debug(f"📊 No dashboard connected to receive COB data for {symbol}")
except Exception as e:
logger.error(f"Error in _on_cob_dashboard_data for {symbol}: {e}")