Deprecate --dynamic-whitelist
This commit is contained in:
@@ -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.'
|
||||
|
Reference in New Issue
Block a user