獲取實时的詢價單資訊
獲取實时的詢價單資訊。每秒最多 50 次請求
信息
HTTP 請求
GET /v5/rfq/rfq-realtime
請求參數
參數 | 是否必需 | 類型 | 說明 |
---|---|---|---|
rfqId | false | string | 詢價單 ID |
rfqLinkId | false | string | 詢價單自定義 ID,當 traderType 為 quote 時,此字段無效 |
traderType | false | string | 交易者類型,quote 或 request ,默認為 request Request :詢價方,查詢自己發出的詢價單Quote :報價方,查詢自己接收到的詢價單 |
響應參數
參數 | 類型 | 說明 |
---|---|---|
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 |
> deskCode | string | 詢價方的唯一識別代碼,若詢價時設置匿名為 true 則不可見 |
> createdAt | string | 交易創建的時間(毫秒),例如 1650380963 |
> updatedAt | string | 交易更新的時間(毫秒),例如 1650380964 |
> legs | Array of objects | 組合交易 |
>> category | string | 類型,有效值包括:linear 、option 和 spot |
>> symbol | string | 唯一的交易品種 ID |
>> side | string | 詢價方向,有效值包括 Buy 和 Sell |
>> qty | string | 交易品種的訂單數量 |
請求示例
GET /v5/rfq/rfq-realtime 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": {
"list": [
{
"rfqLinkId": "",
"rfqId": "1756885055799241492396882271696580",
"counterparties": [
"hashwave2"
],
"strategyType": "custom",
"expiresAt": "1756885655801",
"status": "Active",
"deskCode": "1nu9d1",
"createdAt": "1756885055801",
"updatedAt": "1756885055801",
"legs": [
{
"category": "linear",
"symbol": "BTCUSDT",
"side": "Buy",
"qty": "1"
}
]
}
]
},
"retExtInfo": {},
"time": 1756885059062
}