成交明细
数据示例
{
"channel": "push.personal.order.deal",
"data": {
"id": 987654321,
"symbol": "BTC_USDT",
"side": 1,
"vol": 10,
"price": 45000.5,
"feeCurrency": "USDT",
"fee": 0.225,
"timestamp": 1760942212000,
"profit": 0,
"isTaker": true,
"category": 1,
"orderId": 123456789,
"isSelf": false,
"externalOid": "ext_001",
"positionMode": 1,
"reduceOnly": false,
"opponentUid": 987654321
},
"ts": 1760942212000
}
channel = push.personal.order.deal
响应参数:
| 参数名 | 类型 | 说明 |
|---|---|---|
| id | long | 成交 ID |
| symbol | string | 合约名 |
| side | int | 订单方向:1 开多,2 平空,3 开空,4 平多 |
| vol | decimal | 数量 |
| price | decimal | 价格 |
| feeCurrency | string | 手续费币种 |
| fee | decimal | 单边产生的手续费, 正数表示用户付出, 负数表示用户获得 |
| timestamp | long | 成交时间 |
| profit | decimal | 盈亏 |
| isTaker | boolean | 是否为 taker |
| category | int | 订单类别 |
| orderId | long | 订单 ID |
| isSelf | boolean | 是否为自成交 |
| externalOid | string | 外部订单号 |
| positionMode | int | 持仓模式 |
| reduceOnly | boolean | 只减仓 |
| opponentUid | long | 对手方 uid |