跳至主要内容

查詢訂單資訊

信息
  • API 金鑰需要具備 Earn(理財)權限。

HTTP 請求

GET/v5/earn/advance/order

請求參數

參數必填類型說明
categorytruestring產品類別,DoubleWin
productIdfalsestring按產品 ID 篩選
orderIdfalsestring按訂單 ID 篩選
orderLinkIdfalsestring按用戶自定義訂單 ID 篩選
startTimefalsestring開始時間(訂單創建時間),毫秒級 Unix 時間戳
endTimefalsestring結束時間,毫秒級 Unix 時間戳
limitfalseint每頁返回數量。預設:20,最大:20
cursorfalsestring分頁游標。使用上次響應中的 nextPageCursor

響應參數

參數類型說明
categorystring產品類別,DoubleWin
nextPageCursorstring下一頁游標,為空字串表示無更多資料
listarray列表
> orderIdstring訂單 ID
> orderLinkIdstring用戶自定義訂單 ID
> productIdstring產品 ID
> categorystring產品類別
> orderTypestringStake:申購;Redeem:提前贖回
> investCoinstring投資幣種,例如:USDT
> amountstring訂單金額
> underlyingAssetstring標的資產,例如:BTC, ETH
> leveragestring槓桿倍數
> initialPricestring下單時的標的資產指數價格
> lowerPricestring價格區間下限
> upperPricestring價格區間上限
> durationstring產品期限,例如:1d, 3d
> settlementTimestring結算時間,毫秒級 Unix 時間戳
> createdTimestring訂單創建時間,毫秒級 Unix 時間戳
> updatedTimestring訂單最後更新時間,毫秒級 Unix 時間戳
> statusstringPending:確認中;Success:訂單成功,已創建倉位;Settled:已結算(到期結算或提前贖回完成);Fail:訂單失敗
> settlementPricestring結算價格。僅在 status=Settled 時有值
> pnlstring盈虧金額。僅在 status=Settled 時有值
> refundStatusstring退款狀態。僅在 status=Fail 時有效:Processing(退款處理中),Processed(退款完成)
> accountTypestring申購帳戶:FUND(資金帳戶),UNIFIED(統一帳戶)
> toAccountTypestring結算到帳帳戶。僅在 status=Settledstatus=Fail 時有值

請求示例

GET /v5/earn/advance/order?category=DoubleWin&orderId=97f198e9-b14b-4703-b4a6-a4aa06ba1499 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1672280218882
X-BAPI-RECV-WINDOW: 5000

響應示例

{
"retCode": 0,
"retMsg": "",
"result": {
"category": "DoubleWin",
"list": [
{
"orderId": "05184c23-8a98-456c-a2af-0ef1c45116cc",
"orderLinkId": "usdt-earn-009",
"productId": "14084",
"category": "DoubleWin",
"orderType": "Stake",
"investCoin": "USDT",
"amount": "150",
"underlyingAsset": "BTC",
"initialPrice": "66445.69",
"lowerPrice": "66245.69",
"upperPrice": "66645.69",
"leverage": "9.3309793178843419",
"settlementTime": "1775203200000",
"duration": "1d",
"createdTime": "1775107011000",
"updatedTime": "1775107011000",
"status": "Success",
"settlementPrice": "",
"pnl": "",
"refundStatus": "",
"accountType": "FUND",
"toAccountType": ""
}
],
"nextPageCursor": ""
},
"retExtInfo": {},
"time": 1775107200953
}