跳到主要内容

订单

数据示例

{
"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

响应参数:

参数名类型说明
orderIdlong订单 ID
symbolstring合约名
positionIdlong持仓 id
pricedecimal委托价格
voldecimal委托数量
leveragelong杠杆倍数
sideint订单方向 1:开多,2:平空,3:开空,4:平多
categoryint订单类别 1:限价委托,2:强平代管委托,3:代管平仓委托,4:ADL 减仓
orderTypeint订单类型 1:限价单,2:Post Only 只做 Maker,3:立即成交或立即取消,4:全部成交或者全部取消,5:市价单,6:市价转限价单
dealAvgPricedecimal成交均价
dealVoldecimal成交数量
orderMargindecimal委托保证金
usedMargindecimal已经使用的保证金
takerFeedecimal买单手续费
makerFeedecimal卖单手续费
profitdecimal平仓盈亏
feeCurrencystring手续费币种
openTypeint开仓类型,1 逐仓,2 全仓
stateint订单状态,1:等待接收,2 未完成,3 已完成,4 已撤销,5 无效
errorCodeint详见枚举定义:errorCode
externalOidstring外部订单号
createTimelong创建时间
updateTimelong修改时间
remainVoldecimal剩余数量
positionModeint持仓模式
reduceOnlyboolean只减仓
bboTypeNumint限价订单类型-BBO 类型订单
makerFeeRatedecimalmaker 手续费率
takerFeeRatedecimaltaker 手续费率