mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-04-28 13:00:13 +00:00
chore: improve arguments to get_liquidation_price
This commit is contained in:
@@ -294,8 +294,6 @@ def test_liquidation_price_binance(
|
||||
stake_amount=open_rate * amount,
|
||||
leverage=5,
|
||||
other_trades=other_contracts,
|
||||
# mm_ex_1=mm_ex_1,
|
||||
# upnl_ex_1=upnl_ex_1,
|
||||
),
|
||||
2,
|
||||
)
|
||||
|
||||
@@ -5524,7 +5524,6 @@ def test_liquidation_price_is_none(
|
||||
stake_amount=open_rate * 71200.81144,
|
||||
leverage=5,
|
||||
wallet_balance=-56354.57,
|
||||
other_trades=[],
|
||||
)
|
||||
is None
|
||||
)
|
||||
@@ -5970,7 +5969,6 @@ def test_get_liquidation_price1(mocker, default_conf):
|
||||
stake_amount=18.884 * 0.8,
|
||||
leverage=leverage,
|
||||
wallet_balance=18.884 * 0.8,
|
||||
other_trades=[],
|
||||
)
|
||||
assert liq_price == 17.47
|
||||
|
||||
@@ -5984,7 +5982,6 @@ def test_get_liquidation_price1(mocker, default_conf):
|
||||
stake_amount=18.884 * 0.8,
|
||||
leverage=leverage,
|
||||
wallet_balance=18.884 * 0.8,
|
||||
other_trades=[],
|
||||
)
|
||||
assert liq_price == 17.540699999999998
|
||||
|
||||
@@ -5998,7 +5995,6 @@ def test_get_liquidation_price1(mocker, default_conf):
|
||||
stake_amount=18.884 * 0.8,
|
||||
leverage=leverage,
|
||||
wallet_balance=18.884 * 0.8,
|
||||
other_trades=[],
|
||||
)
|
||||
assert liq_price is None
|
||||
default_conf["trading_mode"] = "margin"
|
||||
|
||||
Reference in New Issue
Block a user