獲取歷史詢價詳情
獲取歷史詢價詳情。每秒最多 50 次請求
信息
- 獲取使用者發出的詢價單資訊,從資料庫查詢,存在延遲
- 同時傳遞 rfqId 和 rfqLinkId 時,以 rfqId 為準
- 根據詢價單的創建時間倒序排列並返回
HTTP 請求
GET/v5/rfq/rfq-detail-list請求參數
| 參數 | 是否必需 | 類型 | 說明 |
|---|---|---|---|
| rfqId | false | string | 詢價單 ID |
| rfqLinkId | false | string | 詢價單自定義 ID;指定 rfqLinkId 僅能查詢最近 3 個月的數據 |
| status | false | string | 詢價單狀態:Active PendingFill Canceled Filled Expired Failed |
| traderType | false | string | 交易員類型,quote、request,默認為 request
|
| startTime | false | integer | 開始時間,毫秒 |
| endTime | false | integer | 結束時間,毫秒 |
| limit | false | integer | 返回條數,最大 100 條,默認 50 條 |
| cursor | false | string | 翻頁標記,請使用返回的 cursor;簽名時使用返回的原始數據,發送請求時進行 URLEncode |
響應參數
| 參數 | 類型 | 說明 |
|---|---|---|
| result | object | |
| > cursor | string | 翻頁標記 |
| > list | Array | 詢價單數據陣列 |
| >> rfqId | string | 詢價單 ID |
| >> rfqLinkId | string | 詢價單自定義 ID,為客戶敏感資訊,不會公開;對報價方返回空字串 |
| >> counterparties | Array of strings | 報價方列表 |
| >> expiresAt | string | 詢價單的過期時間,Unix 時間戳的毫秒格式 |
| >> strategyType | string | 詢價標籤 |
| >> status | string | 詢價單狀態:Active PendingFill Canceled Filled Expired Failed |
| >> acceptOtherQuoteStatus | boolean | 是否接受非 LP 報價,預設值為 false。false:不接受非 LP 報價。true:接受非 LP 報價 |
| >> execQuoteId | string | 已成交的詢價單返回,執行的報價 ID |
| >> execQuoteSide | string | 已成交的詢價單返回,執行的報價方向:Buy 或 Sell |
| >> deskCode | string | 詢價方唯一識別代碼,詢價時 anonymous 設置為 true 時不可見 |
| >> anonymous | boolean | 是否匿名 |
| >> createdAt | string | 交易創建的時間(毫秒),例如 1650380963 |
| >> updatedAt | string | 交易更新的時間(毫秒),例如 1650380964 |
| >> legs | Array of objects | 詢價單交易 legs |
| >>> category | string | 類型,有效值包括:linear、option 和 spot |
| >>> symbol | string | 唯一的交易品種 ID |
| >>> side | string | 詢價方向,有效值包括 Buy 和 Sell |
| >>> qty | string | 交易品種的訂單數量 |
| >> hedge | Array of objects | Delta Hedge 腿對象 |
| >>> category | string | 產品類型,初期僅支持 linear(永續合約 / 線性交割期貨) |
| >>> symbol | string | 對冲合約名稱,如 BTCUSDT(永續)或 BTC-27JUN25(線性交割期貨)。底層資產須與主策略腿(legs)一致,不支持跨資產對冲 |
| >>> side | string | 詢價單交易方向:Buy, Sell |
| >>> qty | string | 交易數量,超過倉位的 Size,則反向開倉 |
| >>> price | string | Taker 期望的 Delta Hedge 執行價格,僅作為參考透傳給做市商;Maker 可在 create-quote 中覆蓋此價格。價格校驗復用主網現有衍生品限價邏輯,超限自動修正 |
| >> quoteList | Array of objects | 有效報價單列表,當 traderType 為 request 時才返回 |
| >>> quoteId | string | 報價單 ID |
| >>> deskCode | string | 報價方唯一識別代碼,報價時 anonymous 設置為 true 時不可見 |
| >>> anonymous | boolean | 是否匿名 |
| >>> status | string | 報價單狀態:Active PendingFill Canceled Filled Expired Failed |
| >>> createdAt | string | 報價創建的時間(毫秒),例如 1650380963 |
| >>> updatedAt | string | 報價更新的時間(毫秒),例如 1650380964 |
| >>> expiresAt | string | 報價單的過期時間,Unix 時間戳的毫秒格式 |
| >>> quoteBuyList | Array of objects | 有效報價單 Buy 方向,當 traderType 為 request 時才返回 |
| >>>> category | string | 產品類型:spot、linear、option |
| >>>> symbol | string | 唯一的交易品種 ID |
| >>>> price | string | 報價貨幣中的訂單價格 |
| >>>> qty | string | 交易品種的訂單數量 |
| >>>> isHedge | boolean | 是否對冲腿 |
| >>> quoteSellList | Array of objects | 有效報價單 Sell 方向,當 traderType 為 request 時才返回 |
| >>>> category | string | 產品類型:spot、linear、option |
| >>>> symbol | string | 交易合約的名稱 |
| >>>> price | string | 報價價格 |
| >>>> qty | string | 交易品種的訂單數量 |
| >>>> isHedge | boolean | 是否對冲腿 |
| >> tradeLegs | Array of objects | 交易成功資訊,只返回自己的交易腿資訊 |
| >>> category | string | 類型,有效值包括:linear、option 和 spot |
| >>> orderId | string | Bybit 訂單 ID |
| >>> symbol | string | 唯一的交易品種 ID |
| >>> side | string | 方向,有效值為 Buy 和 Sell |
| >>> price | string | 執行價格 |
| >>> qty | string | 執行數量 |
| >>> markPrice | string | 成交時的 markPrice;現貨為 indexPrice;期權為標的資產的 markPrice |
| >>> execFee | string | Taker 或 Maker 支付給交易所的費用(以基礎幣種計) |
| >>> extraFees | string | 額外費率 |
| >>> execId | string | 交易所唯一成交 ID |
| >>> resultCode | integer | 訂單狀態碼,0 表示成功 |
| >>> resultMessage | string | resultCode 的錯誤訊息,resultCode 為 0 時為空 |
| >>> rejectParty | string | 狀態為 Filled 時為空;狀態為 Rejected 時值為 Taker 或 Maker;bybit 表示 Bybit 側發生錯誤 |
請求示例
GET /v5/rfq/rfq-detail-list HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1676430842094
X-BAPI-RECV-WINDOW: 5000
X-BAPI-SIGN: XXXXXX
響應示例
{
"retCode": 0,
"retMsg": "OK",
"result": {
"cursor": "",
"list": [
{
"rfqId": "1756885055799241492396882271696580",
"rfqLinkId": "V2-Integration-Test-RFQ",
"counterparties": ["SPMAKERTEST"],
"expiresAt": "1756885655801",
"strategyType": "custom",
"status": "Filled",
"acceptOtherQuoteStatus": false,
"execQuoteId": "1757405933130044334361923221559805",
"execQuoteSide": "Buy",
"deskCode": "1nu9d1",
"anonymous": false,
"createdAt": "1756885055801",
"updatedAt": "1756885655802",
"legs": [
{
"category": "option",
"symbol": "BTC-25JUL25-100000-C",
"side": "Buy",
"qty": "100"
}
],
"hedge": [
{
"category": "linear",
"symbol": "BTCUSDT",
"side": "Sell",
"qty": "46",
"price": "121500.0"
}
],
"quoteList": [
{
"quoteId": "1757405933130044334361923221559805",
"deskCode": "SPMAKERTEST",
"anonymous": false,
"status": "Filled",
"createdAt": "1757405933126",
"updatedAt": "1757405999156",
"expiresAt": "1757405993126",
"quoteBuyList": [
{
"category": "option",
"symbol": "BTC-25JUL25-100000-C",
"price": "1250.5",
"qty": "100",
"isHedge": false
},
{
"category": "linear",
"symbol": "BTCUSDT",
"price": "121500.0",
"qty": "46",
"isHedge": true
}
],
"quoteSellList": []
}
],
"tradeLegs": [
{
"category": "option",
"orderId": "1234567890123456789",
"symbol": "BTC-25JUL25-100000-C",
"side": "Buy",
"price": "1250.5",
"qty": "100",
"markPrice": "1248.0",
"execFee": "0.5",
"extraFees": "",
"execId": "abcdef1234567890abcdef",
"resultCode": 0,
"resultMessage": "",
"rejectParty": ""
}
]
}
]
},
"retExtInfo": {},
"time": 1756885352116
}