dash inference fixes

This commit is contained in:
Dobromir Popov
2025-07-23 17:37:11 +03:00
parent 2a0f8f5199
commit bab39fa68f

View File

@ -3564,6 +3564,10 @@ class DataProvider:
}
# Add to cache
if symbol not in self.cob_data_cache:
self.cob_data_cache[symbol] = []
elif not isinstance(self.cob_data_cache[symbol], (list, deque)):
self.cob_data_cache[symbol] = []
self.cob_data_cache[symbol].append(standard_cob_data)
if len(self.cob_data_cache[symbol]) > 300: # Keep 5 minutes
self.cob_data_cache[symbol].pop(0)