設置保證金模式
描述
設置倉位保證金模式
HTTP 請求
- POST
/api/v3/position/switch-isolated - 適用產品:
linear - 限頻規則:10次 / S / UID
請求參數
| 欄位 | 類型 | 必填 | 說明 |
|---|---|---|---|
category | string | 是 | 產品類型 |
symbol | string | 是 | 交易合約標識 |
newIsolated | bool | 是 | 是否切換為逐倉(true)或全倉(false) |
回應參數
無業務字段,成功回傳統一格式中的 code: 200,示例見下文。
請求示例
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
}
回應示例
HTTP/1.1 200 OK
Content-Type: application/json
{
"code": 200,
"message": "Success",
"data": {},
"extras": null
}