Some more adjustments for new pairlist

This commit is contained in:
Matthias
2019-11-09 14:15:47 +01:00
parent c74d766275
commit 25cb935eee
6 changed files with 32 additions and 14 deletions

View File

@@ -121,6 +121,7 @@ def _validate_whitelist(conf: Dict[str, Any]) -> None:
if conf.get('runmode', RunMode.OTHER) in [RunMode.OTHER, RunMode.PLOT]:
return
if (conf.get('pairlist', {}).get('method', 'StaticPairList') == 'StaticPairList'
and not conf.get('exchange', {}).get('pair_whitelist')):
raise OperationalException("StaticPairList requires pair_whitelist to be set.")
for pl in conf.get('pairlists', [{'method': 'StaticPairList'}]):
if (pl.get('method') == 'StaticPairList'
and not conf.get('exchange', {}).get('pair_whitelist')):
raise OperationalException("StaticPairList requires pair_whitelist to be set.")