跳至主要内容

批量設置抵押品幣種

用戶可以批量開啟或關閉統一帳戶中幣種抵押屬性,默認都是關閉

HTTP 請求

POST /v5/account/set-collateral-switch-batch

請求參數

參數是否必需類型說明
requesttruearrayObject
> cointruestring幣種名稱
  • 您可以從這裡獲取抵押品幣種
  • USDT, USDC不支持設置
> collateralSwitchtruestringON: 開啟抵押, OFF: 關閉抵押

響應參數

參數類型說明
resultObject
> listarrayObject
>> coinstring幣種名稱
>> collateralSwitchstringON: 開啟抵押, OFF: 關閉抵押

請求示例

POST /v5/account/set-collateral-switch-batch HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1704782042755
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json
Content-Length: 371

{
"request": [
{
"coin": "MATIC",
"collateralSwitch": "OFF"
},
{
"coin": "BTC",
"collateralSwitch": "OFF"
},
{
"coin": "ETH",
"collateralSwitch": "OFF"
},
{
"coin": "SOL",
"collateralSwitch": "OFF"
}
]
}

響應示例

{
"retCode": 0,
"retMsg": "SUCCESS",
"result": {
"list": [
{
"coin": "MATIC",
"collateralSwitch": "OFF"
},
{
"coin": "BTC",
"collateralSwitch": "OFF"
},
{
"coin": "ETH",
"collateralSwitch": "OFF"
},
{
"coin": "SOL",
"collateralSwitch": "OFF"
}
]
},
"retExtInfo": {},
"time": 1704782042913
}