move stake check to the same condition as the other checks

This commit is contained in:
iuvbio 2019-03-14 21:02:21 +01:00
parent d4d37667e1
commit 7f9c76a6fc

View File

@ -66,14 +66,11 @@ class IPairList(ABC):
""" """
markets = self._freqtrade.exchange.markets markets = self._freqtrade.exchange.markets
# keep only pairs with stake currency as quote
stake_pairs = [pair for pair in markets if pair.endswith(self._config['stake_currency'])]
# markets[pair]["quote"] == self._config['stake_currency']
sanitized_whitelist = set() sanitized_whitelist = set()
for pair in whitelist: for pair in whitelist:
# pair is not in the generated dynamic market, or in the blacklist ... ignore it # pair is not in the generated dynamic market, or in the blacklist ... ignore it
if pair in self.blacklist or pair not in stake_pairs: if (pair in self.blacklist or pair not in markets
or not pair.endswith(self._config['stake_currency'])):
continue continue
# Check if market is active # Check if market is active
market = markets[pair] market = markets[pair]