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 return dh
# append the historic data once per round # append the historic data once per round
if (self.data_drawer.historic_data and if self.data_drawer.historic_data:
self.config.get('exchange', '').get('pair_whitelist').index(metadata['pair']) == 1):
dh.update_historic_data(strategy) dh.update_historic_data(strategy)
logger.info(f'Updating historic data on pair {metadata["pair"]}') logger.info(f'Updating historic data on pair {metadata["pair"]}')