跳至主要内容

設置現貨對衝

您可以開關現貨對從功能, 僅限統一帳戶組合保證金模式下

HTTP 請求

POST /v5/account/set-hedging-mode

請求參數

參數是否必需類型說明
setHedgingModetruestringON, OFF

響應參數

參數類型說明
retCodeintegerResult code
retMsgstringResult message

請求示例

POST /v5/account/set-hedging-mode HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1700117968580
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json
Content-Length: 31

{
"setHedgingMode": "OFF"
}

響應示例

{
"retCode": 0,
"retMsg": "SUCCESS"
}