fixed broken test_get_liquidation_price
This commit is contained in:
parent
7a79403d2c
commit
19a282ddb4
@ -3669,10 +3669,10 @@ def test_get_liquidation_price(mocker, default_conf):
|
|||||||
exchange = get_patched_exchange(mocker, default_conf, api_mock)
|
exchange = get_patched_exchange(mocker, default_conf, api_mock)
|
||||||
liq_price = exchange.get_liquidation_price(
|
liq_price = exchange.get_liquidation_price(
|
||||||
pair='NEAR/USDT:USDT',
|
pair='NEAR/USDT:USDT',
|
||||||
open_rate=0.0,
|
open_rate=18.884,
|
||||||
is_short=False,
|
is_short=False,
|
||||||
position=0.0,
|
position=0.8,
|
||||||
wallet_balance=0.0,
|
wallet_balance=0.8,
|
||||||
)
|
)
|
||||||
assert liq_price == 17.47
|
assert liq_price == 17.47
|
||||||
|
|
||||||
@ -3680,12 +3680,12 @@ def test_get_liquidation_price(mocker, default_conf):
|
|||||||
exchange = get_patched_exchange(mocker, default_conf, api_mock)
|
exchange = get_patched_exchange(mocker, default_conf, api_mock)
|
||||||
liq_price = exchange.get_liquidation_price(
|
liq_price = exchange.get_liquidation_price(
|
||||||
pair='NEAR/USDT:USDT',
|
pair='NEAR/USDT:USDT',
|
||||||
open_rate=0.0,
|
open_rate=18.884,
|
||||||
is_short=False,
|
is_short=False,
|
||||||
position=0.0,
|
position=0.8,
|
||||||
wallet_balance=0.0,
|
wallet_balance=0.8,
|
||||||
)
|
)
|
||||||
assert liq_price == 18.8133
|
assert liq_price == 17.540699999999998
|
||||||
|
|
||||||
ccxt_exceptionhandlers(
|
ccxt_exceptionhandlers(
|
||||||
mocker,
|
mocker,
|
||||||
|
Loading…
Reference in New Issue
Block a user