download-data will now check if freqai is active in config, and if so will also download data for corr_pairlist
This commit is contained in:
parent
89eacf2f47
commit
67eb94c69d
@ -50,7 +50,13 @@ def start_download_data(args: Dict[str, Any]) -> None:
|
|||||||
exchange = ExchangeResolver.load_exchange(config['exchange']['name'], config, validate=False)
|
exchange = ExchangeResolver.load_exchange(config['exchange']['name'], config, validate=False)
|
||||||
markets = [p for p, m in exchange.markets.items() if market_is_active(m)
|
markets = [p for p, m in exchange.markets.items() if market_is_active(m)
|
||||||
or config.get('include_inactive')]
|
or config.get('include_inactive')]
|
||||||
expanded_pairs = expand_pairlist(config['pairs'], markets)
|
if config.get('freqai') is not None:
|
||||||
|
assert config['freqai'].get('corr_pairlist'), "No corr_pairlist found in config."
|
||||||
|
full_pairs = config['pairs'] + [pair for pair in config['freqai']['corr_pairlist']
|
||||||
|
if pair not in config['pairs']]
|
||||||
|
expanded_pairs = expand_pairlist(full_pairs, markets)
|
||||||
|
else:
|
||||||
|
expanded_pairs = expand_pairlist(config['pairs'], markets)
|
||||||
|
|
||||||
# Manual validations of relevant settings
|
# Manual validations of relevant settings
|
||||||
if not config['exchange'].get('skip_pair_validation', False):
|
if not config['exchange'].get('skip_pair_validation', False):
|
||||||
|
Loading…
Reference in New Issue
Block a user