fix: use t.leverage, not trade.leverage for cross liq calculations

This commit is contained in:
Matthias
2024-08-31 17:40:25 +02:00
parent 4d40ffedff
commit cba6bd6ef5

View File

@@ -41,7 +41,7 @@ def update_liquidation_prices(
is_short=t.is_short,
amount=t.amount,
stake_amount=t.stake_amount,
leverage=trade.leverage,
leverage=t.leverage,
wallet_balance=total_wallet_stake,
open_trades=open_trades,
)