Set Margin Mode
Description
Set position margin mode
HTTP Request
- POST
/api/v3/position/switch-isolated - Supported Products:
linear - Rate Limit: 10 requests per second per UID
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
category | string | Yes | Product type |
symbol | string | Yes | trading contract identifier |
newIsolated | bool | Yes | Whether to switch to isolated margin (true) or cross margin (false). |
Response Parameters
No business fields. Returns code: 200 in the standard format upon success, as shown below.
Request Example
POST /api/v3/position/switch-isolated HTTP/1.1
Host: openapi.lbank.com
Content-Type: application/json
ex-api-key: <your_api_key>
ex-timestamp: <current_unix_timestamp_ns>
ex-nonce: <unique_random_hex>
ex-signature: <your_signature>
ex-client-type: API
{
"category": "linear",
"symbol": "BTCUSDT",
"newIsolated": true
}
Response Example
HTTP/1.1 200 OK
Content-Type: application/json
{
"code": 200,
"message": "Success",
"data": {},
"extras": null
}