Merge pull request #6869 from freqtrade/update_levtiers

Update leveraged tiers
This commit is contained in:
Matthias
2022-05-22 08:35:02 +02:00
committed by GitHub
3 changed files with 8210 additions and 7757 deletions

View File

@@ -490,11 +490,9 @@ def test_fill_leverage_tiers_binance_dryrun(default_conf, mocker, leverage_tiers
default_conf['margin_mode'] = MarginMode.ISOLATED
exchange = get_patched_exchange(mocker, default_conf, api_mock, id="binance")
exchange.fill_leverage_tiers()
leverage_tiers = leverage_tiers
assert len(exchange._leverage_tiers.keys()) > 100
for key, value in leverage_tiers.items():
assert exchange._leverage_tiers[key] == value
assert isinstance(exchange._leverage_tiers[key], list)
def test__set_leverage_binance(mocker, default_conf):