Margin Modes
AFX supports two margin modes: Cross Margin and Isolated Margin. The margin mode is configured per trading pair and can be switched even when positions or orders are open.
Cross Margin
In Cross Margin mode, the entire available balance in your account is shared across all cross-margin positions. This provides more flexibility and reduces the risk of individual position liquidation, but a liquidation event will affect your entire account.
Key characteristics:
Margin is shared across all cross-margin positions for the same settlement currency.
Unrealized profit from one position can offset unrealized loss in another.
Unrealized profit can be used to open new positions (both cross and isolated).
Unrealized profit cannot be withdrawn or transferred.
Cross margin is the default mode.
Available Balance (Cross):
Available = Balance - In Order & Position + Cross Unrealized PNLIsolated Margin
In Isolated Margin mode, margin is allocated individually to each position. If a position is liquidated, only the margin assigned to that specific position is at risk — your remaining account balance is protected.
Key characteristics:
Each position has its own dedicated margin.
You can manually add or remove margin for an isolated position.
Unrealized profit only affects the current position.
Unrealized profit cannot be used for other positions or orders.
Available Balance (Isolated):
Where α is the unrealized PNL liquidity coefficient, configured per trading pair based on asset liquidity. For example, BTC has α = 0.98, ETH has α = 0.90.
Switching Margin Modes
You can switch between Cross and Isolated margin on a per-pair basis at any time, including when you have open positions. When switching from Cross to Isolated on an existing position, the system will calculate and allocate the appropriate initial margin.
Last updated

