If covered liquidation also fails, the remaining contracts are unwound, same as in Coin-M. Contracts are cancelled, remaining portfolio value is transferred to counterparties, and the unwind does not affect any other margin wallets.
The WebSocket and REST formats are identical to Coin-M, look for fill_type: "unwindCounterparty" / fillType: "unwindCounterparty".
How are unwind counterparties chosen?
Same ranking logic as Coin-M, but Position Value is calculated differently for Multi-M (USD-margined):
- Position Value = Size × Price
- Return on Equity (RoE) = PnL / Initial Margin
- Effective Leverage = Position Value / Portfolio Value
Rank score:
- If RoE is negative: RoE / Effective Leverage
- If RoE is positive: RoE × Effective Leverage