extract download-data from freqai to prepare for future async changes

This commit is contained in:
robcaulk
2022-08-17 15:18:44 +02:00
parent 83ca168bb8
commit 0c34104e45
3 changed files with 94 additions and 33 deletions

View File

@@ -278,12 +278,12 @@ class IFreqaiModel(ABC):
# download candle history if it is not already in memory
if not self.dd.historic_data:
logger.info(
"Downloading all training data for all pairs in whitelist and "
"corr_pairlist, this may take a while if you do not have the "
"data saved"
)
dk.download_all_data_for_training(data_load_timerange, strategy.dp)
# logger.info(
# "Downloading all training data for all pairs in whitelist and "
# "corr_pairlist, this may take a while if you do not have the "
# "data saved"
# )
# dk.download_all_data_for_training(data_load_timerange, strategy.dp)
self.dd.load_all_pair_histories(data_load_timerange, dk)
if not self.scanning: