Slightly refactor _get_stake_amount_limit

This commit is contained in:
Matthias
2023-04-02 16:59:45 +02:00
parent 78a1551798
commit e6a125719e
2 changed files with 7 additions and 4 deletions

View File

@@ -496,6 +496,9 @@ def test__get_stake_amount_limit(mocker, default_conf) -> None:
result = exchange.get_max_pair_stake_amount('ETH/BTC', 2)
assert result == 1000
result = exchange.get_max_pair_stake_amount('ETH/BTC', 2, 12.0)
assert result == 1000 / 12
markets["ETH/BTC"]["contractSize"] = '0.01'
default_conf['trading_mode'] = 'futures'
default_conf['margin_mode'] = 'isolated'