idnumberrequired
The ID of the request. This is returned in the response header.
versionintegerrequired Version number: 1
BODY PARAMS
channelarray of stringsrequired trading.order_updates.{account_id}.{instrument_id}Wildcards are supported, e.g. trading.order_updates.{account_id}.* can be used to receive notifications about all instruments.
account_idstring The account address which placed the order.
transaction_tsstring The time the order was received by the system in UNIX epoch nanoseconds.
client_order_idstring The client-assigned order ID. Set automatically to order_id if absent.
execution_typestring The execution type of the order. Can be post_only or allow_cross.
expirationstring The expiration time of the order in UNIX epoch seconds.
initial_sizestring The initial size of the order.
instrument_idstring The instrument of the order.
limit_pricestring The limit price of the order.
noncestring Used to make orders with otherwise identical signed fields unique.
order_idstring The unique ID of the order.
order_typestring The order type of the order. Can be limit, market, take_profit, or stop.
remaining_sizestring The remaining unfilled portion of the order.
sidestring The side of the order.
signaturestring Signed order fields which are submitted to smart contracts for processing.
time_in_forcestring The time in force of the order. Can be gtc, gte, ioc, or fok.
reduce_onlystring Whether the order is reduce only.
trigger_pricestring The trigger price of the order. Only present for take_profit and stop orders.
updatesarray of objects
event_typestring The type of event. Can be new, cancel, or fill.
fill_total_feestring The total fee of the fill.
is_makerstring Whether the fill was a maker order.
is_liquidationstring Whether the fill was a liquidation.
trade_pnlstring The realized profit and loss of the fill.
cancel_reasonstring The reason the order was canceled. Only included if the status is a cancel.
new_order_idstring The new order ID. Only set if this is the cancel leg of a modify order.
old_order_idstring The old order ID. Only set if this is the new leg of a modify order.
market_seqnostring The market sequence number of the event_type. A monotonic sequence number updated for each book event. e.g. a fill, cancel, etc.
prev_order_typestring The original order type before it was triggered into a new state. This field will differ from order_type if the order transitioned to a different type upon triggering a condition (e.g., a stop order converting to a market order). If no such transition occurred, this field will match order_type.
trade_idstring The unique ID of the trade. Only present for fill events.
Example
[
{
"msg_type":"trading.order_updates.0x9f58498b98348b9bfbe53f0e18aa818a4be0ae49.ETH-PERPETUAL",
"id": 71,
"version": 1
},
{
"order": {
"account_id": "0x9f58498b98348b9bfbe53f0e18aa818a4be0ae49",
"add_order_epoch_nanos": "1714629115912737987",
"client_order_id": "9306712610120155944",
"execution_type": "allow_cross",
"expiration": "1723269115",
"initial_size": "10",
"instrument_id": "ETH-PERPETUAL",
"limit_price": "0",
"nonce": "1714629115448",
"order_id": "9306712610120155944",
"order_type": "market",
"remaining_size": "0",
"side": "sell",
"signature": "0x89bdc6fcdd6434ebaa84a4f6f9f5913d3a3255ab2a53d3b9bdff2302fb3a3c6b1707256b364018d098c9b4d28d6799f8e322bbcc35f9d0e70f1310ec4d5497a01b",
"time_in_force": "ioc",
"reduce_only": false,
"prev_order_type": "market"
},
"updates": [
{
"event_type": "new",
"previous_order_id": null, // If this were the add leg of a modify, old order_id would be here
"market_seqno": 123456
},
{
"event_type": "fill",
"transaction_ts": "1714629115914498187",
"fill_price": "2915.1",
"fill_size": "8",
"fill_total_fee": "1.85",
"is_maker": false,
"is_liquidation": false,
"trade_pnl": "20.01",
"market_seqno": 123457,
"trade_id": "11416748077714502636"
},
{
"event_type": "fill",
"transaction_ts": "1714629115914498187",
"fill_price": "2915.05",
"fill_size": "1",
"fill_total_fee": "0.2495",
"is_maker": false,
"is_liquidation": false,
"market_seqno": 123458,
"trade_id": "62416748077714502645"
},
{
"event_type": "cancel",
"cancel_reason": "size_not_available",
"next_order_id": null, // If this were the cancel leg of a modify, next order_id would be here
"market_seqno": 123459
}
]
}
]