Request
| Field | Type | Required | Description |
|---|---|---|---|
message | string | Yes | updateMargin |
content.clientRequestId | string | No | Client-generated UUID for correlation |
content.market | string | No | Market name, only required when connecting with market=ALL |
content.margin | string | Yes | Absolute target value for isolatedPositionMargin after the update |
Response — Acknowledgment
| Field | Type | Required | Description |
|---|---|---|---|
resultType | string | Yes | updateMargin |
market | string | Yes | Market name |
data.statusCode | number | Yes | 202 |
data.body | string | Yes | Status message |
data.clientRequestId | string | No | Client-generated UUID for correlation |
data.apiQuotaUsed | number | Yes | API quota consumed |
Response — Confirmation
margin value matches the current isolatedPositionMargin, the operation is a successful no-op. In this case, no 202 acknowledgment is sent first — the 200 is returned directly:
| Field | Type | Required | Description |
|---|---|---|---|
resultType | string | Yes | updateMargin |
market | string | Yes | Market name |
data.statusCode | number | Yes | 200 |
data.body | string | Yes | Status message |
data.clientRequestId | string | No | Client-generated UUID for correlation |
Response — Error
| Field | Type | Required | Description |
|---|---|---|---|
resultType | string | Yes | updateMargin |
market | string | Yes | Market name |
data.statusCode | number | Yes | Error status (400, 429, 500) |
data.body | string | Yes | Error description |
data.error.slug | string | Yes | Error slug |
data.error.code | string | Yes | Error code |
data.apiQuotaUsed | number | Yes | API quota consumed |
data.retryAfterSec | number | No | Present when throttled |
data.clientRequestId | string | No | Client-generated UUID for correlation |