leverage limits can be None, so we need to check for that
This commit is contained in:
parent
f090dcc597
commit
f7be93aaa6
@ -1823,7 +1823,8 @@ class Exchange:
|
|||||||
if (
|
if (
|
||||||
'limits' in market and
|
'limits' in market and
|
||||||
'leverage' in market['limits'] 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']
|
return market['limits']['leverage']['max']
|
||||||
else:
|
else:
|
||||||
|
@ -684,6 +684,10 @@ def get_markets():
|
|||||||
'min': 0.0001,
|
'min': 0.0001,
|
||||||
'max': 500000,
|
'max': 500000,
|
||||||
},
|
},
|
||||||
|
'leverage': {
|
||||||
|
'min': None,
|
||||||
|
'max': None
|
||||||
|
},
|
||||||
},
|
},
|
||||||
'info': {},
|
'info': {},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user