applying the blacklist also when not using --dynamic-whitelist

This commit is contained in:
Jean-Baptiste LE STANG 2017-12-28 19:06:47 +01:00
parent 6a5a57acb4
commit 6c9dfb1471

View File

@ -33,8 +33,7 @@ def refresh_whitelist(whitelist: Optional[List[str]] = None) -> None:
:return: None
"""
whitelist = whitelist or _CONF['exchange']['pair_whitelist']
sanitized_whitelist = []
sanitized_whitelist = [x for x in whiletlist if x not in _CONF['exchange'].get('pair_blacklist',[])]
health = exchange.get_wallet_health()
for status in health:
pair = '{}_{}'.format(_CONF['stake_currency'], status['Currency'])