_apply_leverage_to_min_stake_amount

This commit is contained in:
Sam Germain
2021-09-12 01:30:26 -06:00
parent 5b84298e03
commit 1344c9f7fc
4 changed files with 5 additions and 24 deletions

View File

@@ -2969,18 +2969,11 @@ def test_calculate_backoff(retrycount, max_retries, expected):
assert calculate_backoff(retrycount, max_retries) == expected
@pytest.mark.parametrize('exchange', ['binance', 'kraken', 'ftx'])
@pytest.mark.parametrize('exchange,stake_amount,leverage,min_stake_with_lev', [
('binance', 9.0, 3.0, 3.0),
('binance', 20.0, 5.0, 4.0),
('binance', 100.0, 100.0, 1.0),
# Kraken
('kraken', 9.0, 3.0, 3.0),
('kraken', 20.0, 5.0, 4.0),
('kraken', 100.0, 100.0, 1.0),
# FTX
('ftx', 9.0, 3.0, 9.0),
('ftx', 20.0, 5.0, 20.0),
('ftx', 100.0, 100.0, 100.0)
(9.0, 3.0, 3.0),
(20.0, 5.0, 4.0),
(100.0, 100.0, 1.0)
])
def test_apply_leverage_to_stake_amount(
exchange,