订单
数据示例
{
"channel": "push.personal.order",
"data": {
"orderId": 123456789,
"symbol": "BTC_USDT",
"positionId": 987654321,
"price": 45000.5,
"vol": 10,
"leverage": 20,
"side": 1,
"category": 1,
"orderType": 1,
"dealAvgPrice": 45000.0,
"dealVol": 5,
"orderMargin": 2250.0,
"usedMargin": 1125.0,
"takerFee": 0.1125,
"makerFee": 0.09,
"profit": 0,
"feeCurrency": "USDT",
"openType": 1,
"state": 2,
"errorCode": 0,
"externalOid": "ext_001",
"createTime": 1760942212000,
"updateTime": 1760942212000,
"remainVol": 5,
"positionMode": 1,
"reduceOnly": false,
"bboTypeNum": 0,
"makerFeeRate": 0.0002,
"takerFeeRate": 0.0004
},
"ts": 1760942212000
}
channel = push.personal.order
响应参数:
| 参数名 | 类型 | 说明 |
|---|---|---|
| orderId | long | 订单 ID |
| symbol | string | 合约名 |
| positionId | long | 持仓 id |
| price | decimal | 委托价格 |
| vol | decimal | 委托数量 |
| leverage | long | 杠杆倍数 |
| side | int | 订单方向 1:开多,2:平空,3:开空,4:平多 |
| category | int | 订单类别 1:限价委托,2:强平代管委托,3:代管平仓委托,4:ADL 减仓 |
| orderType | int | 订单类型 1:限价单,2:Post Only 只做 Maker,3:立即成交或立即取消,4:全部成交或者全部取消,5:市价单,6:市价转限价单 |
| dealAvgPrice | decimal | 成交均价 |
| dealVol | decimal | 成交数量 |
| orderMargin | decimal | 委托保证金 |
| usedMargin | decimal | 已经使用的保证金 |
| takerFee | decimal | 买单手续费 |
| makerFee | decimal | 卖单手续费 |
| profit | decimal | 平仓盈亏 |
| feeCurrency | string | 手续费币种 |
| openType | int | 开仓类型,1 逐仓,2 全仓 |
| state | int | 订单状态,1:等待接收,2 未完成,3 已完成,4 已撤销,5 无效 |
| errorCode | int | 详见枚举定义:errorCode |
| externalOid | string | 外部订单号 |
| createTime | long | 创建时间 |
| updateTime | long | 修改时间 |
| remainVol | decimal | 剩余数量 |
| positionMode | int | 持仓模式 |
| reduceOnly | boolean | 只减仓 |
| bboTypeNum | int | 限价订单类型-BBO 类型订单 |
| makerFeeRate | decimal | maker 手续费率 |
| takerFeeRate | decimal | taker 手续费率 |