mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
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 (
|
||||
'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:
|
||||
|
|
|
@ -684,6 +684,10 @@ def get_markets():
|
|||
'min': 0.0001,
|
||||
'max': 500000,
|
||||
},
|
||||
'leverage': {
|
||||
'min': None,
|
||||
'max': None
|
||||
},
|
||||
},
|
||||
'info': {},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user