cnn training stats on dash
This commit is contained in:
@ -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 []
|
||||
|
||||
|
Reference in New Issue
Block a user