dirty dirty, dont look here (hacking a flag to avoid reloading leverage_tiers in dry/live)

This commit is contained in:
robcaulk
2022-05-27 13:56:34 +02:00
parent 891fb87712
commit b8f9c3557b
3 changed files with 7 additions and 5 deletions

View File

@@ -714,7 +714,7 @@ class FreqaiDataKitchen:
def download_new_data_for_retraining(self, timerange: TimeRange, metadata: dict) -> None:
exchange = ExchangeResolver.load_exchange(self.config['exchange']['name'],
self.config, validate=False)
self.config, validate=False, freqai=True)
pairs = copy.deepcopy(self.freqai_config.get('corr_pairlist', []))
if str(metadata['pair']) not in pairs:
pairs.append(str(metadata['pair']))