From 95a3b5c41e20886abf2d4e214ed0b0360c284158 Mon Sep 17 00:00:00 2001 From: iuvbio Date: Thu, 14 Mar 2019 22:48:42 +0100 Subject: [PATCH] check if ticker sort key is populated --- freqtrade/pairlist/VolumePairList.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freqtrade/pairlist/VolumePairList.py b/freqtrade/pairlist/VolumePairList.py index eb03236e5..9a2e2eac4 100644 --- a/freqtrade/pairlist/VolumePairList.py +++ b/freqtrade/pairlist/VolumePairList.py @@ -69,7 +69,8 @@ class VolumePairList(IPairList): tickers = self._freqtrade.exchange.get_tickers() # check length so that we make sure that '/' is actually in the string tickers = [v for k, v in tickers.items() - if len(k.split('/')) == 2 and k.split('/')[1] == base_currency] + if (len(k.split('/')) == 2 and k.split('/')[1] == base_currency + and v[key] is not None)] sorted_tickers = sorted(tickers, reverse=True, key=lambda t: t[key]) # Validate whitelist to only have active market pairs valid_pairs = self._validate_whitelist([s['symbol'] for s in sorted_tickers])