wip improve

This commit is contained in:
Dobromir Popov
2025-05-31 01:19:46 +03:00
parent 9a44ddfa3c
commit 543b53883e
2 changed files with 232 additions and 258 deletions

View File

@ -188,7 +188,7 @@ class DataProvider:
if self.cache_enabled:
cached_data = self._load_from_cache(symbol, timeframe)
if cached_data is not None and len(cached_data) >= limit * 0.8:
logger.info(f"Using cached data for {symbol} {timeframe}")
# logger.info(f"Using cached data for {symbol} {timeframe}")
return cached_data.tail(limit)
# Check if we need to preload 300s of data for first load