成交明细
描述
订阅成交明细信息
请求参数
| 参数名 | 参数类型 | 是否必须 | 描述 |
|---|---|---|---|
| event | String | 是 | 操作, subscribe unsubscribe |
| channel | String | 是 | 频道名 |
请求示例
{
"event": "subscribe",
"channel": "fill"
}
返回参数
| 返回字段 | 参数类型 | 字段说明 |
|---|---|---|
| event | String | 操作, subscribed unsubscribed |
| channel | String | 频道名 |
订阅返回示例
{
"event": "subscribed",
"channel": "fill"
}
推送数据参数
| 返回字段 | 参数类型 | 字段说明 |
|---|---|---|
| id | String | 唯一标识 |
| symbolName | String | 币对名 |
| orderId | String | 所属委托单id |
| baseCoin | String | 交易币种 |
| quoteCoin | String | 计价币种 |
| orderSide | String | 买卖方向 |
| fillSize | String | 实际成交数量 |
| fillValue | String | 实际成交价值 |
| fillFee | String | 实际成交费用 (精确值) |
| direction | String | 实际成交方向 |
| createdTime | String | 创建时间 |
| updatedTime | String | 更新时间 |
推送返回示例
{
"type": "trade-event",
"channel": "fill",
"msg": {
"msgEvent": "OrderUpdate",
"version": 38,
"data": {
"orderFillTransaction": [
{
"id": "625138763437179034",
"symbolName": "BTCUSDT_SPBL",
"baseCoin": "BTC",
"quoteCoin": "USDT",
"orderId": "625138763307155610",
"orderSide": "BUY",
"fillSize": "0.000952",
"fillValue": "99.9676160",
"fillFee": "0.00000095",
"direction": "TAKER",
"createdTime": "1749044695720",
"updatedTime": "1749044695720"
}
]
},
"time": 1749044695720
},
"event": "payload"
}