This commit is contained in:
Dobromir Popov
2025-07-28 11:12:42 +03:00
parent 1084b7f5b5
commit 7c508ab536
3 changed files with 251 additions and 108 deletions

View File

@ -369,7 +369,7 @@ class CleanTradingDashboard:
else:
self.cob_cache[symbol]['update_rate'] = 0.0
logger.info(f"📊 Updated COB cache for {symbol} from data provider (updates: {self.cob_cache[symbol]['updates_count']})")
logger.debug(f"Updated COB cache for {symbol} from data provider (updates: {self.cob_cache[symbol]['updates_count']})")
# Continue with existing logic
# Update latest COB data cache
@ -6634,10 +6634,10 @@ class CleanTradingDashboard:
self.cob_cache[symbol]['websocket_status'] = 'connected'
self.cob_cache[symbol]['source'] = 'orchestrator'
logger.info(f"📊 Updated COB cache for {symbol} from orchestrator: {self.cob_cache[symbol]['websocket_status']} (updates: {self.cob_cache[symbol]['updates_count']})")
logger.debug(f"Updated COB cache for {symbol} from orchestrator: {self.cob_cache[symbol]['websocket_status']} (updates: {self.cob_cache[symbol]['updates_count']})")
except Exception as e:
logger.error(f"Error updating COB cache from orchestrator for {symbol}: {e}")
logger.error(f"Error updating COB cache from orchestrator for {symbol}: {e}")
def _on_enhanced_cob_update(self, symbol: str, data: Dict):
"""Handle enhanced COB updates with WebSocket status"""