Use markets.quote to validate

This commit is contained in:
Matthias 2020-02-24 20:41:45 +01:00
parent 6c8b5ea38c
commit 6581ba56ca

View File

@ -99,7 +99,8 @@ class IPairList(ABC):
logger.warning(f"Pair {pair} is not compatible with exchange "
f"{self._exchange.name}. Removing it from whitelist..")
continue
if not pair.endswith(self._config['stake_currency']):
if markets[pair]['quote'] != self._config['stake_currency']:
logger.warning(f"Pair {pair} is not compatible with your stake currency "
f"{self._config['stake_currency']}. Removing it from whitelist..")
continue