- Cross margin — positions share your account’s collateral, so the whole balance backs every position. Profit on one position can support another; a loss on one draws on the same shared equity.
- Isolated margin — collateral is allocated to a single position, capping that position’s risk to its own allocation. A loss is contained to the collateral you have posted to that leg and cannot pull down the rest of your account.
This page is conceptual. For the underlying account and leverage mechanics see Margin & leverage; read the current mode and effective leverage per market from
GET /v1/leverages.How margin is measured in each mode
ThemarginUsed field on a position row reflects the mode, and the two behave differently:
In cross mode your used margin floats with the mark; in isolated mode it is a fixed pool you control directly, insulated from the rest of the account.
Switching modes
Set the margin mode with the optionalisolated flag on POST /v1/setLeverage:
isolated: trueswitches the market to isolated mode.isolated: falseswitches it back to cross mode.- Omit the flag to leave the current mode unchanged.
HAS_OPEN_POSITION if you already have an open position in that market — close the position first, then switch to isolated mode. The reverse (isolated → cross) and any no-op change are always accepted.
Changing leverage or margin mode does not affect a position’s maintenance margin or liquidation price — those depend on the market’s maintenance-margin fraction, not the per-account leverage cap.
Moving collateral in and out
Once a market is in isolated mode with an open position, usePOST /v1/adjustIsolatedMargin to move collateral between your shared cross bucket and the isolated leg:
amountis a dollar decimal string (e.g."100"for $100) — send dollars, not quote quantums.- Positive adds margin to the leg (cross → isolated); negative removes it (isolated → cross); zero is rejected.
NOT_ISOLATED or NO_OPEN_POSITION. Adding margin fails with UNDERCOLLATERALIZED if the cross bucket lacks the free collateral to fund it; removing margin fails with UNDERCOLLATERALIZED if it would leave the isolated leg below its initial-margin requirement.
Reading the current mode
The margin mode is exposed asmarginMode (CROSS / ISOLATED) and its boolean twin isolated in three places:
- On position rows (snapshot and streaming).
- On
GET /v1/leverages, alongside the effective leverage for every market. - On the
accountAttributeUpdatesWebSocket channel, which folds the margin-mode outcome into leverage entries.
What it means for liquidation risk
The mode determines how far a losing position can reach into the rest of your account:- In cross mode, one shared balance backs every position, so a single position’s loss draws on the collateral supporting all of them.
- In isolated mode, a position’s collateral and risk are contained to its own leg. A move against that position can only consume the margin you have posted to it — the rest of your account is insulated.