simplify check for presence of list
This commit is contained in:
parent
2968347062
commit
9e94778fd7
@ -378,6 +378,6 @@ def get_amount_lots(pair: str, amount: float) -> float:
|
|||||||
get buyable amount rounding, ..
|
get buyable amount rounding, ..
|
||||||
"""
|
"""
|
||||||
# validate that markets are loaded before trying to get fee
|
# 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()
|
_API.load_markets()
|
||||||
return _API.amount_to_lots(pair, amount)
|
return _API.amount_to_lots(pair, amount)
|
||||||
|
Loading…
Reference in New Issue
Block a user