ensure newest candles are always appended
This commit is contained in:
parent
f8f25e36ef
commit
66800c7a45
@ -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"]}')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user