跳至主要内容

報價頻道

獲取用戶自己發送或接收的報價信息。每當用戶自己發送或接收報價時,數據將被推送。

主題: rfq.open.quotes

響應參數

參數類型說明
idstring消息 ID
topicstring主題名稱
creationTimeint數據創建時間戳(毫秒)
dataarrayObject
> rfqIdstring詢價單 ID
> rfqLinkIdstring詢價單的自定義 ID,客戶的敏感信息,不會向報價方披露,返回 ""。
> quoteIdstring報價單 ID
> quoteLinkIdstring報價單自定義 ID,客戶的敏感信息,不會向詢價方披露,返回 ""。
> expiresAtstring報價單到期時間,Unix 時間戳的毫秒格式
> deskCodestring報價方的唯一識別碼,如果在報價期間設置為匿名,則不可見
> statusstring報價單狀態:Active(活躍)、Canceled(已取消)、PendingFill(待成交)、Filled(已成交)、Expired(已過期)、Failed(失敗)
>execQuoteSidestring執行報價方向,Buy(買入) 或 Sell(賣出)。當報價方向為 "buy" 時,對於 maker(做市方),執行方向與 legs 中的方向一致;對於 taker(接單方),執行方向相反。反之亦然。
> createdAtstring交易創建的時間(毫秒),例如 1650380963
> updatedAtstring交易更新的時間(毫秒),例如 1650380964
> quoteBuyListarray of objects報價買入方向
>> categorystring產品類型:spot(現貨)、linear(線性)、option(期權)
>> symbolstring交易對名稱
>> pricestring報價價格
>> qtystring數量
> quoteSellListarray of objects報價賣出方向
>> categorystring產品類型:spot(現貨)、linear(線性)、option(期權)
>> symbolstring交易對名稱
>> pricestring報價價格
>> qtystring數量

訂閱示例

{
"op": "subscribe",
"args": [
"rfq.open.quotes"
]
}

資料流示例

{
"topic": "rfq.open.quotes",
"creationTime": 1757578449562,
"data": [
{
"rfqLinkId": "",
"rfqId": "1757578410512325974246073709371267",
"quoteId": "1757578449553042047579782748460520",
"quoteLinkId": "",
"expiresAt": "1757578509556",
"status": "Active",
"deskCode": "test0904",
"execQuoteSide": "",
"quoteBuyList": [
{
"category": "linear",
"symbol": "BTCUSDT",
"price": "95800",
"qty": "1"
}
],
"quoteSellList": [
{
"category": "linear",
"symbol": "BTCUSDT",
"price": "95000",
"qty": "1"
}
],
"createdAt": "1757578449556",
"updatedAt": "1757578449556"
}
]
}