ensure newest candles are always appended

This commit is contained in:
robcaulk 2022-06-07 20:24:23 +02:00
parent f8f25e36ef
commit 66800c7a45

View File

@ -215,8 +215,7 @@ class IFreqaiModel(ABC):
return dh
# append the historic data once per round
if (self.data_drawer.historic_data and
self.config.get('exchange', '').get('pair_whitelist').index(metadata['pair']) == 1):
if self.data_drawer.historic_data:
dh.update_historic_data(strategy)
logger.info(f'Updating historic data on pair {metadata["pair"]}')