fix: use t.leverage, not trade.leverage for cross liq calculations
This commit is contained in:
@@ -41,7 +41,7 @@ def update_liquidation_prices(
|
|||||||
is_short=t.is_short,
|
is_short=t.is_short,
|
||||||
amount=t.amount,
|
amount=t.amount,
|
||||||
stake_amount=t.stake_amount,
|
stake_amount=t.stake_amount,
|
||||||
leverage=trade.leverage,
|
leverage=t.leverage,
|
||||||
wallet_balance=total_wallet_stake,
|
wallet_balance=total_wallet_stake,
|
||||||
open_trades=open_trades,
|
open_trades=open_trades,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user