let load_pairs_histories load futures candles in live

This commit is contained in:
robcaulk 2022-05-27 13:01:33 +02:00
parent c080571b7a
commit 65fdebab75

View File

@ -738,7 +738,9 @@ class FreqaiDataKitchen:
for tf in self.freqai_config.get('timeframes'):
base_dataframes[tf] = load_pair_history(datadir=self.config['datadir'],
timeframe=tf,
pair=metadata['pair'], timerange=timerange)
pair=metadata['pair'], timerange=timerange,
candle_type=self.config.get(
'trading_mode', 'spot'))
if pairs:
for p in pairs:
if metadata['pair'] in p:
@ -747,7 +749,9 @@ class FreqaiDataKitchen:
corr_dataframes[p] = {}
corr_dataframes[p][tf] = load_pair_history(datadir=self.config['datadir'],
timeframe=tf,
pair=p, timerange=timerange)
pair=p, timerange=timerange,
candle_type=self.config.get(
'trading_mode', 'spot'))
return corr_dataframes, base_dataframes