Order
Sample
{
"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
Response fields:
| Field | Type | Description |
|---|---|---|
| orderId | long | Order ID |
| symbol | string | Contract |
| positionId | long | Position ID |
| price | decimal | Order price |
| vol | decimal | Order quantity |
| leverage | long | Leverage |
| side | int | 1 open long, 2 close short, 3 open short, 4 close long |
| category | int | 1 limit, 2 forced liquidation custody, 3 custody close, 4 ADL |
| orderType | int | 1 limit, 2 Post Only, 3 IOC, 4 FOK, 5 market, 6 market-to-limit |
| dealAvgPrice | decimal | Average fill price |
| dealVol | decimal | Filled quantity |
| orderMargin | decimal | Order margin |
| usedMargin | decimal | Used margin |
| takerFee | decimal | Taker fee |
| makerFee | decimal | Maker fee |
| profit | decimal | Close PnL |
| feeCurrency | string | Fee currency |
| openType | int | 1 isolated, 2 cross |
| state | int | 1 pending, 2 open, 3 filled, 4 canceled, 5 invalid |
| errorCode | int | ENUM:errorCode |
| externalOid | string | External order ID |
| createTime | long | Create time |
| updateTime | long | Update time |
| remainVol | decimal | Remaining quantity |
| positionMode | int | Position mode |
| reduceOnly | boolean | Reduce-only |
| bboTypeNum | int | BBO limit order subtype |
| makerFeeRate | decimal | Maker fee rate |
| takerFeeRate | decimal | Taker fee rate |