跳至主要内容

借款

HTTP 請求

POST /spot/v3/private/cross-margin-loan

請求參數

參數是否必需類型說明
cointruestring幣種
qtytruestring借幣數量

返回參數

參數類型說明
transactIdstring借款交易ID

請求示例

POST /spot/v3/private/cross-margin-loan HTTP/1.1
Host: api-testnet.bybit.com
Content-Type: application/json
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1677751838628
X-BAPI-RECV-WINDOW: 5000
X-BAPI-SIGN: XXXXXX
Content-Length: 38

{
"coin": "ETH",
"qty": "10"
}

響應示例

{
"retCode": 0,
"retMsg": "success",
"result": {
"transactId": "21005"
},
"retExtInfo": {},
"time": 1677751839688
}