From 34ef817bde625c4c8c68c7a5f5968d268be1877f Mon Sep 17 00:00:00 2001 From: hroff-1902 <47309513+hroff-1902@users.noreply.github.com> Date: Thu, 14 Feb 2019 21:33:23 +0300 Subject: [PATCH] use markets load asynchronously instead of get_markets() (i.e. i.o. ccxt's fetch_markets()) --- freqtrade/pairlist/IPairList.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/freqtrade/pairlist/IPairList.py b/freqtrade/pairlist/IPairList.py index 6b5b0db4b..af37b3c4a 100644 --- a/freqtrade/pairlist/IPairList.py +++ b/freqtrade/pairlist/IPairList.py @@ -66,13 +66,9 @@ class IPairList(ABC): black_listed """ sanitized_whitelist = whitelist - markets = self._freqtrade.exchange.get_markets() - - # Filter to markets in stake currency - markets = [m for m in markets if m['quote'] == self._config['stake_currency']] known_pairs = set() - for market in markets: + for market in self._freqtrade.exchange.markets.values(): pair = market['symbol'] # pair is not int the generated dynamic market, or in the blacklist ... ignore it if pair not in whitelist or pair in self.blacklist: