From 9e94778fd741de2dc636aa27d28eb17be2106fca Mon Sep 17 00:00:00 2001 From: Matthias Voppichler Date: Tue, 24 Apr 2018 19:42:41 +0200 Subject: [PATCH] simplify check for presence of list --- freqtrade/exchange/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/exchange/__init__.py b/freqtrade/exchange/__init__.py index fc5159781..13bc0b3de 100644 --- a/freqtrade/exchange/__init__.py +++ b/freqtrade/exchange/__init__.py @@ -378,6 +378,6 @@ def get_amount_lots(pair: str, amount: float) -> float: get buyable amount rounding, .. """ # validate that markets are loaded before trying to get fee - if _API.markets is None or len(_API.markets) == 0: + if not _API.markets: _API.load_markets() return _API.amount_to_lots(pair, amount)