用户成交记录
WSProduction
wss://ws.btse.com/ws/futuresTestnetwss://testws.btse.io/ws/futures当认证用户的订单成交时实时通知。需要 WebSocket 身份验证。
主题: fillsV2
响应内容
| 名称 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| topic | String | 是 | |
| data | Object[] | 是 | 数据对象数组 |
Data 对象:
| 名称 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| symbol | String | 是 | 市场交易对 |
| orderId | String | 是 | 内部订单 ID |
| clOrderId | String | 是 | 自定义订单 ID |
| serialId | Long | 是 | 成交序列 ID |
| tradeId | String | 是 | 唯一成交标识 |
| type | String | 是 | 76: 限 价单 · 77: 市价单 · 80: 算法单 |
| side | String | 是 | BUY 或 SELL |
| price | String | 是 | 成交价格 |
| size | String | 是 | 成交数量 |
| feeAmount | String | 是 | 手续费金额 |
| feeCurrency | String | 是 | 手续费币种 |
| base | String | 是 | 基础币种 |
| quote | String | 是 | 计价币种 |
| maker | Boolean | 是 | 是否为 maker 成交 |
| timestamp | Long | 是 | 成交时间戳 |
| contractSize | Double | 是 | 合约面值 |
example
Response
{
"topic": "fillsV2",
"data": [
{
"orderId": "6aa36da1-0ed8-46c1-9327-c9d6313b3d12",
"serialId": 189349157,
"clOrderId": "_W_ekxogc1711427518228",
"type": "77",
"symbol": "BTC-PERP",
"side": "BUY",
"price": "69704.4",
"size": "1.0",
"feeAmount": "0.0348522",
"feeCurrency": "USDT",
"base": "BTC-PERP",
"quote": "USDT",
"maker": false,
"timestamp": 1711427518338,
"contractSize": 0.0001,
"tradeId": "e094117f-9f84-4c82-b55d-d3d2a54d0dca"
}
]
}