cnn training stats on dash

This commit is contained in:
Dobromir Popov
2025-07-24 14:28:28 +03:00
parent 5437495003
commit b3edd21f1b
5 changed files with 131 additions and 24 deletions

View File

@ -5859,7 +5859,7 @@ class CleanTradingDashboard:
from core.data_models import OHLCVBar
# Get data from data provider
df = self.data_provider.get_candles(symbol, timeframe)
df = self.data_provider.get_historical_data(symbol, timeframe)
if df is None or len(df) == 0:
return []
@ -6106,7 +6106,7 @@ class CleanTradingDashboard:
def _get_recent_price_history(self, symbol: str, count: int) -> List[float]:
"""Get recent price history for reward calculation"""
try:
df = self.data_provider.get_candles(symbol, '1s')
df = self.data_provider.get_historical_data(symbol, '1s')
if df is None or len(df) == 0:
return []