確認新的風險限額
僅適用於當用戶被標記為僅減倉 (請看持倉接口中的isReduceOnly字段) 時, 在用戶主動調整風險水位後, 調用該接口來試算調整後的風
險水平, 若通過(retCode=0), 則系統會移除僅減倉標記, 推薦自行再調用下倉位接口確認isReduceOnly
字段是否變成false
HTTP 請求
POST /v5/position/confirm-pending-mmr
請求參數
參數 | 是否必需 | 類型 | 說明 |
---|---|---|---|
category | true | string | 產品類型
|
symbol | true | string | 合約名稱 |
響應參數
無
請求示例
- HTTP
- Python
- Java
- Node.js
POST /v5/position/confirm-pending-mmr HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1698051123673
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json
Content-Length: 53
{
"category": "linear",
"symbol": "BTCUSDT"
}
import com.bybit.api.client.domain.*;
import com.bybit.api.client.domain.position.*;
import com.bybit.api.client.domain.position.request.*;
import com.bybit.api.client.service.BybitApiClientFactory;
var client = BybitApiClientFactory.newInstance().newAsyncPositionRestClient();
var confirmNewRiskRequest = PositionDataRequest.builder().category(CategoryType.LINEAR).symbol("BTCUSDT").build();
client.confirmPositionRiskLimit(confirmNewRiskRequest, System.out::println);
響應示例
{
"retCode": 0,
"retMsg": "OK",
"result": {},
"retExtInfo": {},
"time": 1698051124588
}