Deprecate --dynamic-whitelist

This commit is contained in:
Matthias
2018-12-03 20:00:18 +01:00
parent 3360e777a1
commit 1b3ecb8343
7 changed files with 30 additions and 14 deletions

View File

@@ -18,9 +18,10 @@ class VolumePairList(StaticPairList):
def __init__(self, freqtrade, config: dict) -> None:
self._freqtrade = freqtrade
self._config = config
self._whitelistconf = self._config.get('whitelist', {}).get('config')
self._whitelist = self._config['exchange']['pair_whitelist']
self._blacklist = self._config['exchange'].get('pair_blacklist', [])
self._number_pairs = self._config.get('dynamic_whitelist', None)
self._number_pairs = self._whitelistconf.get('number_assets')
if not self._freqtrade.exchange.exchange_has('fetchTickers'):
raise OperationalException(
'Exchange does not support dynamic whitelist.'