Order
Description
The following events will trigger a data push:
- No Push on first-time subscription
 - Push when spot/margin/futures orders are placed in the unified trading account
 - Push when spot/margin/futures orders are filled in the unified trading account
 - Push when spot/margin/futures orders are cancelled in the unified trading account
 
Request Example
{
    "op": "subscribe",
    "args": [
        {
            "instType": "UTA",
            "topic": "order"
        }
    ]
}
Request Parameters
| Parameter | Type | Description | 
|---|---|---|
| op | String | Operation subscribe/unsubscribe | 
| args | List<Object> | Subscribed channel | 
| > instType | String | Product type UTA Unified trading account | 
| > topic | String | Topic order Order | 
Response Example
{
  "event": "subscribe",
  "arg": {
    "instType": "UTA",
    "topic": "order"
  }
}
Response Parameters
| Parameters | Type | Description | 
|---|---|---|
| event | String | Operation subscribe Subscribe unsubscribe Unsubscribe error Parameter error | 
| arg | Object | Subscribed channel | 
| > instType | String | Product type UTA Unified Account | 
| > topic | String | Topic order Order channel | 
| code | String | Error code | 
| msg | String | Error message | 
Push
{
  "action": "snapshot",
  "arg": {
    "instType": "UTA",
    "topic": "order"
  },
  "data": [
    {
      "category": "usdt-futures",
      "symbol": "BTCUSDT",
      "orderId": "xxx",
      "clientOid": "xxx",
      "price": "",
      "qty": "0.001",
      "amount": "1000",
      "holdMode": "hedge_mode",
      "holdSide": "long",
      "tradeSide": "open",
      "orderType": "market",
      "timeInForce": "gtc",
      "side": "buy",
      "marginMode": "crossed",
      "marginCoin": "USDT",
      "reduceOnly": "no",
      "cumExecQty": "0.001",
      "cumExecValue": "83.1315",
      "avgPrice": "83131.5",
      "totalProfit": "0",
      "orderStatus": "filled",
      "cancelReason": "",
      "leverage": "20",
      "feeDetail": [
        {
          "feeCoin": "USDT",
          "fee": "0.0332526"
        }
      ],
      "createdTime": "1742367838101",
      "updatedTime": "1742367838115",
      "stpMode": "none"
    }
  ],
  "ts": 1742367838124
}
Push Parameters
| Parameters | Type | Description | 
|---|---|---|
| arg | Object | Subscribed channel | 
| > instType | String | Product typeUTA | 
| > topic | String | Topicorder | 
| action | String | Push data actionsnapshot Full data | 
| data | List<String> | Subscribed data | 
| > category | String | Business line SPOT Spot tradingMARGIN Margin tradingUSDT-FUTURES USDT FuturesCOIN-FUTURES Coin-M futuresUSDC-FUTURES USDC Futures | 
| > orderId | String | Order ID | 
| > clientOid | String | Client order ID | 
| > price | String | Order price | 
| > qty | String | Order quantity | 
| > amount | String | Order amount | 
| > holdMode | String | Holding modeone_way_mode This mode allows holding positions in a single direction, either long or short, but not both at the same time hedge_mode This mode allows holding both long and short positions simultaneously | 
| > tradeSide | String | Trade side open/close    Detailed enumerations can be obtained on the Enumeration page.  | 
| > orderType | String | Order type limit/market | 
| > timelnForce | String | Time in force ioc: Immediate or cancelfok: Fill or kill gtc: Good 'till cancelledpost_only: Post (maker) only | 
| > side | String | Order side   buy/sell | 
| > holdSide | String | Position side   long Long positionshort Short position  net Net position | 
| > marginMode | String | Margin mode crossed Cross margin isolated Isolated margin | 
| > reduceOnly | String | Reduce-only identifieryes/no | 
| > marginCoin | String | Margin coin | 
| > cumExecQty | String | Cumulative executed quantity | 
| > cumExecValue | String | Cumulative executed value | 
| > avgPrice | String | Average execution price  If not executed, this field will default to 0  | 
| > totalProfit | String | Total profit | 
| > orderStatus | String | Order statuslive Order created. new Order matching. partially_filled Partially filledfilled Fully filledcancelled Cancelled | 
| > cancelReason | String | Reason for order cancellation | 
| > leverage | String | Leverage | 
| > feeDetail | List | Fee detail list | 
| >> feeCoin | String | Fee coin | 
| >> fee | String | Fee amount | 
| > createdTime | String | Created time A Unix timestamp in milliseconds. e.g., 1597026383085 | 
| > updatedTime | String | Updated time A Unix timestamp in milliseconds. e.g., 1597026383085 | 
| > stpMode | String | STP Mode(Self Trade Prevention)none: no STP settingscancel_taker: cancel taker order cancel_maker: cancel maker order cancel_both: cancel both of taker and maker orders |