move corr_pairlist expansion to after expand_pairlist()
This commit is contained in:
parent
659870312d
commit
153336d424
@ -43,12 +43,10 @@ def expand_pairlist(wildcardpl: List[str], available_pairs: List[str],
|
|||||||
|
|
||||||
|
|
||||||
def dynamic_expand_pairlist(config: dict, markets: list) -> List[str]:
|
def dynamic_expand_pairlist(config: dict, markets: list) -> List[str]:
|
||||||
|
expanded_pairs = expand_pairlist(config['pairs'], markets)
|
||||||
if config.get('freqai', {}):
|
if config.get('freqai', {}):
|
||||||
corr_pairlist = config['freqai']['feature_parameters']['include_corr_pairlist']
|
corr_pairlist = config['freqai']['feature_parameters']['include_corr_pairlist']
|
||||||
full_pairs = config['pairs'] + [pair for pair in corr_pairlist
|
expanded_pairs += [pair for pair in corr_pairlist
|
||||||
if pair not in config['pairs']]
|
if pair not in config['pairs']]
|
||||||
expanded_pairs = expand_pairlist(full_pairs, markets)
|
|
||||||
else:
|
|
||||||
expanded_pairs = expand_pairlist(config['pairs'], markets)
|
|
||||||
|
|
||||||
return expanded_pairs
|
return expanded_pairs
|
||||||
|
Loading…
Reference in New Issue
Block a user