Operation Type (for Signing)
| Header Field | Type | Content |
|---|---|---|
| ”type” | string | "update_margin_mode" |
Request Body
| Field | Type | Need | Description | Example |
|---|---|---|---|---|
”account” | string | required | User’s wallet address | 42trU9A5… |
“symbol” | string | required | Trading pair symbol | BTC |
”is_isolated” | boolean | required | Margin mode (true for isolated, false for cross) | false |
”timestamp” | integer | required | Current timestamp in milliseconds | 1716200000000 |
”expiry_window” | integer | optional | Signature expiry in milliseconds | 30000 |
”agent_wallet” | string | optional | Agent wallet address | 69trU9A5… |
“signature” | string | required | Cryptographic signature | 5j1Vy9Uq… |
Response
- Status 200: Margin mode updated successfully
- Status 400: Invalid request parameters
- Status 500: Internal server error