Update test to new list-pairs format

This commit is contained in:
Matthias
2021-11-01 09:46:35 +01:00
parent bfe3760f68
commit 11b77cf94c
4 changed files with 6 additions and 5 deletions

View File

@@ -178,6 +178,8 @@ class Binance(Exchange):
:param pair: The base/quote currency pair being traded
:nominal_value: The total value of the trade in quote currency (collateral + debt)
"""
if pair not in self._leverage_brackets:
return 1.0
pair_brackets = self._leverage_brackets[pair]
max_lev = 1.0
for [min_amount, margin_req] in pair_brackets: