Update Isolated Margin
Adjust the signed collateral allocation for an existing isolated position. Use a positive amount to add margin and a negative amount to remove it. A removal may include unrealized isolated profit, but the resulting isolated position equity (allocation + unrealized PnL - settled funding) must remain at or above the position's current required initial margin.
Both additions and removals are rejected while the account is in cross liquidation or the target isolated position is in isolated liquidation. An isolated liquidation on another instrument does not block this request.
Cancel-only mode does not gate margin adjustments.
Requires proxy signature, see proxy signing. Gateway signature validation rejects a stale or future-skewed timestamp as invalid signature. A request that passes gateway validation can still fail sequencer freshness revalidation with invalid_margin_signature_timestamp. Reusing the exact signed request rejects with signature_already_used.
Request body
Example request
{
"op": {
"args": {
"iid": 1,
"amt": "100.00"
}
},
"sig": "0x1234567890...",
"salt": 1234567890,
"ts": 1767225600000
}Response
Generic response.
Example response
{
"error": "insufficient_margin"
}