apply stop-reserve to minimum limits only when necessary

it's unnecessary for amount - but necessary for Cost / price limits.
This commit is contained in:
Matthias
2023-04-02 17:10:04 +02:00
parent e6a125719e
commit a3acdd5240
3 changed files with 19 additions and 15 deletions
+1 -1
View File
@@ -356,7 +356,7 @@ def test_create_trade_no_stake_amount(default_conf_usdt, ticker_usdt, fee, mocke
@pytest.mark.parametrize("is_short", [False, True])
@pytest.mark.parametrize('stake_amount,create,amount_enough,max_open_trades', [
(5.0, True, True, 99),
(0.049, True, False, 99), # Amount will be adjusted to min - which is 0.051
(0.042, True, False, 99), # Amount will be adjusted to min - which is 0.051
(0, False, True, 99),
(UNLIMITED_STAKE_AMOUNT, False, True, 0),
])