跳至主要内容

申購

申購

HTTP 請求

POST /v5/spot-lever-token/purchase

請求參數

參數是否必需類型說明
ltCointruestringLT資產名稱,例如BTC3L
ltAmounttruestring申購金額
serialNofalsestring序列號,即自定義訂單號

響應參數

參數類型說明
ltCoinstring槓桿代幣資產簡稱
ltOrderStatusstring申購單狀態:1: 已完成,2: 處理中 3: 失敗
execQtystring實際成交的槓桿代幣資產數量
execAmtstring實際成交金額
amountstring下單的報價幣種金額
purchaseIdstring訂單id
serialNostring序列號
valueCoinstring報價幣種

請求示例

POST /v5/spot-lever-token/purchase HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1672294730346
X-BAPI-SIGN: XXXXX
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json

{
"ltCoin": "EOS3L",
"amount": "200",
"serialNo": "purchase-001"
}

響應示例

{
"retCode": 0,
"retMsg": "success",
"result": {
"amount": "200",
"execAmt": "",
"execQty": "",
"ltCoin": "EOS3L",
"ltOrderStatus": "2",
"purchaseId": "2611",
"serialNo": "pruchase-001",
"valueCoin": "USDT"
},
"retExtInfo": {},
"time": 1672293867729
}