COB info restored, better COB heatmap, restore kill processes

This commit is contained in:
Dobromir Popov
2025-08-09 00:58:36 +03:00
parent 71ba37ccc2
commit 87193f3d6f
6 changed files with 152 additions and 89 deletions

View File

@ -4198,9 +4198,9 @@ class DataProvider:
if symbol not in self.cob_data_cache:
self.cob_data_cache[symbol] = []
# Add to cache with max size limit
# Add to cache with max size limit (30 minutes of 1s data)
self.cob_data_cache[symbol].append(cob_snapshot)
if len(self.cob_data_cache[symbol]) > 300: # Keep 5 minutes of 1s data
if len(self.cob_data_cache[symbol]) > 1800:
self.cob_data_cache[symbol].pop(0)
# Notify subscribers