leverage limits can be None, so we need to check for that

This commit is contained in:
Matthias 2022-01-25 06:30:03 +01:00
parent f090dcc597
commit f7be93aaa6
2 changed files with 6 additions and 1 deletions

View File

@ -1823,7 +1823,8 @@ class Exchange:
if (
'limits' in market and
'leverage' in market['limits'] and
'max' in market['limits']['leverage']
'max' in market['limits']['leverage'] and
market['limits']['leverage']['max'] is not None
):
return market['limits']['leverage']['max']
else:

View File

@ -684,6 +684,10 @@ def get_markets():
'min': 0.0001,
'max': 500000,
},
'leverage': {
'min': None,
'max': None
},
},
'info': {},
},