Add or remove isolated margin
POST /v1/trading-gateway/update-isolated-margin — Adjust the isolated-margin amount on an existing position. Body: `{ symbol: string, isAdd: boolean, amount: string, subA
POST /v1/trading-gateway/update-isolated-margin
Adjust the isolated-margin amount on an existing position. Body: { symbol: string, isAdd: boolean, amount: string, subAccountId?: string }. Set isAdd: true to top up, false to claw back. Returns { amount, is_add, raw_data }.
| Method | POST |
| Path | /v1/trading-gateway/update-isolated-margin |
| Auth | Authorization: Bearer <token> required when GATEWAY_AUTH_TOKEN is set |
| Category | perps |
Request body
{ "symbol": "BTC", "isAdd": true, "amount": "100", "subAccountId": "sub_hl_default" }Response body
{ "amount": "100", "is_add": true, "raw_data": { } }