Don't use markets[pair]['quote']

This commit is contained in:
Matthias
2020-02-26 07:08:09 +01:00
parent 1021ffa1c3
commit 4e218be51d
3 changed files with 4 additions and 4 deletions

View File

@@ -334,7 +334,7 @@ class Exchange:
logger.warning(f"Pair {pair} is restricted for some users on this exchange."
f"Please check if you are impacted by this restriction "
f"on the exchange and eventually remove {pair} from your whitelist.")
if not self.markets[pair].get('quote') == self._config['stake_currency']:
if not self.get_pair_quote_currency(pair) == self._config['stake_currency']:
invalid_pairs.append(pair)
if invalid_pairs:
raise OperationalException(