Update tests for new liquidation parameter
This commit is contained in:
@@ -553,23 +553,25 @@ class TestCCXTExchange():
|
||||
)
|
||||
|
||||
liquidation_price = futures.dry_run_liquidation_price(
|
||||
futures_pair,
|
||||
40000,
|
||||
False,
|
||||
100,
|
||||
100,
|
||||
100,
|
||||
pair=futures_pair,
|
||||
open_rate=40000,
|
||||
is_short=False,
|
||||
amount=100,
|
||||
stake_amount=100,
|
||||
leverage=5,
|
||||
wallet_balance=100,
|
||||
)
|
||||
assert (isinstance(liquidation_price, float))
|
||||
assert liquidation_price >= 0.0
|
||||
|
||||
liquidation_price = futures.dry_run_liquidation_price(
|
||||
futures_pair,
|
||||
40000,
|
||||
False,
|
||||
100,
|
||||
100,
|
||||
100,
|
||||
pair=futures_pair,
|
||||
open_rate=40000,
|
||||
is_short=False,
|
||||
amount=100,
|
||||
stake_amount=100,
|
||||
leverage=5,
|
||||
wallet_balance=100,
|
||||
)
|
||||
assert (isinstance(liquidation_price, float))
|
||||
assert liquidation_price >= 0.0
|
||||
|
||||
Reference in New Issue
Block a user