feat(bitget): fix liquidation formula

This commit is contained in:
Matthias
2025-10-14 06:49:33 +02:00
parent 3da36eae31
commit badc7ed18c

View File

@@ -232,8 +232,8 @@ class Bitget(Exchange):
if self.trading_mode == TradingMode.FUTURES and self.margin_mode == MarginMode.ISOLATED:
position_direction = -1 if is_short else 1
return wallet_balance - (amount * open_rate * position_direction) / amount * (
mm_ratio + taker_fee_rate - position_direction
return (wallet_balance - (amount * open_rate * position_direction)) / (
amount * (mm_ratio + taker_fee_rate - position_direction)
)
else:
raise OperationalException(