跳到主要内容

通知

WSProductionwss://ws.btse.com/ws/futuresTestnetwss://testws.btse.io/ws/futures

实时订单状态更新。需要 WebSocket 身份验证。 主题: notificationApiV4

携带完整的 v2.3 数量字段集(originalOrderSizecurrentOrderSizefilledSizetotalFilledSizeremainingSize)以及 positionIdpostOnly,以便完整呈现部分成交与只挂单订单。

响应内容

名称类型是否必填描述
topicString
dataObject[]数据对象数组

Data 对象:

名称类型是否必填描述
symbolString市场交易对
orderIDString内部订单 ID
sideStringBUY 或 SELL
typeInteger76: 限价单 · 77: 市价单 · 80: 算法单
priceDouble委托价或成交价
originalOrderSizeInteger原始委托量
currentOrderSizeInteger最新委托量
filledSizeInteger本次更新成交量
totalFilledSizeInteger累计成交量
remainingSizeInteger剩余未成交量
avgFilledPriceDouble平均成交价
statusInteger订单状态码:2(订单已插入)· 4(完全成交)· 5(部分成交)· 6(已取消)· 9(触发已插入)· 10(触发已激活)· 15(已拒绝)
clOrderIDString自定义订单 ID
makerBoolean是否为 maker 成交
time_in_forceString订单有效期:GTC · IOC · FOK · HALFMIN · FIVEMIN · HOUR · TWELVEHOUR · DAY · WEEK · MONTH
timestampLong订单/成交时间戳
txTypeStringSTOP · TAKEPROFIT · LIMIT
triggerPriceDouble触发价格
stealthDouble仅算法单
pegPriceDeviationDouble仅算法单
positionIdString仓位 ID
postOnlyBoolean是否为只挂单
example

Response

{
"topic": "notificationApiV4",
"data": [
{
"symbol": "BTC-PERP",
"orderID": "45e8bb8d-d708-4a90-a428-c61583f90efe",
"side": "BUY",
"orderType": 77,
"type": 0,
"price": 111085.1,
"triggerPrice": 0,
"status": 4,
"timestamp": 1752147101805,
"avgFilledPrice": 111085.1,
"clOrderID": "",
"postOnly": false,
"maker": false,
"positionId": "BTC-PERP-USDT",
"originalOrderSize": 900,
"currentOrderSize": 900,
"filledSize": 900,
"totalFilledSize": 900,
"remainingSize": 0,
"time_in_force": "GTC"
}
]
}