simplify check for presence of list

This commit is contained in:
Matthias Voppichler 2018-04-24 19:42:41 +02:00
parent 2968347062
commit 9e94778fd7

View File

@ -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)