improved data structure

This commit is contained in:
Dobromir Popov
2025-10-31 00:44:08 +02:00
parent b8f54e61fa
commit 7ddf98bf18
16 changed files with 5892 additions and 35 deletions

View File

@@ -38,8 +38,12 @@ class StandardizedDataProvider(DataProvider):
self.standardized_cob_data_cache: Dict[str, COBData] = {} # {symbol: COBData}
# Model output management with extensible storage
cache_dir = getattr(self, 'cache_dir', None)
if cache_dir is None:
from pathlib import Path
cache_dir = Path('cache')
self.model_output_manager = ModelOutputManager(
cache_dir=str(self.cache_dir / "model_outputs"),
cache_dir=str(cache_dir / "model_outputs"),
max_history=1000
)