User events
Events about your own account are pushed to every connection authenticated as you. Do not subscribe to them: they are delivered based on your API key's identity.
Format
User events arrive as user_data messages:
{"type":"user_data","event":"user_order","user_id":12345,"data":{ ... }}Events
| Event | When |
|---|---|
user_order | A limit order was processed by the matching engine (accepted, filled, or its remainder cancelled), was rejected, or was cancelled before it was processed |
user_order_update | A resting order was partly filled; quantity is the new remaining size |
user_order_inactive | An order left the book: filled, cancelled, expired, or removed by the exchange |
user_order_inactive_update | A filled order's trade was rolled back during settlement |
user_trade | One of your orders traded |
Market orders never rest, so they get no user_order or user_order_update event, only user_order_inactive (or a user_order with status rejected).
Order events
All four order events carry the same data. Decimal values are strings.
{"type":"user_data","event":"user_order","user_id":12345,"data":{"request_id":51234,"order_id":"...","symbol":"CC/USDCx","side":"buy","order_type":"limit","quantity":"10","original_quantity":"10","price":"0.15","status":"accepted","created_at":"2026-12-01T17:09:31Z"}}| Field | Type | Description |
|---|---|---|
request_id | integer | The request_id from order_ack (REST's POST /orders returns it too) |
order_id | string | The order's ID. Empty when the order never went live: rejected, or cancelled before it was processed. |
symbol | string | Trading pair |
side | string | buy or sell |
order_type | string | limit or market |
quantity | string | Remaining quantity |
original_quantity | string | Quantity when placed |
price | string | Limit price. For a market order, the worst price the engine expected to fill at (see Placing and cancelling orders). |
status | string | See below |
reason | string | Only on rejected and on a cancel before processing; see below |
created_at | string | When the order was created (RFC 3339, UTC) |
Status values
| Event | status | Meaning |
|---|---|---|
user_order | accepted | The order is resting on the book, possibly after a partial fill |
user_order | filled | The order filled completely on arrival. A user_order_inactive with filled follows too. |
user_order | canceled-remainder | The order traded, and the remainder was below the minimum quantity, so it was cancelled |
user_order | rejected | The engine refused the order; order_id is empty and reason says why |
user_order | cancelled | You cancelled the order before the engine processed it; order_id is empty |
user_order_update | accepted | A resting order was partly filled |
user_order_inactive | filled | Fully filled |
user_order_inactive | canceled | You cancelled it (REST or WebSocket) |
user_order_inactive | expired | Its expires_at passed |
user_order_inactive | no_match_cancelled, partial_fill_cancelled | A market order's unfilled remainder was cancelled (nothing filled, or part filled) |
user_order_inactive | canceled-remainder | The remainder was below the minimum quantity and was cancelled |
user_order_inactive | self_cross_cancelled | Removed to prevent a trade with your own order |
user_order_inactive | settlement_rollback | A partly filled order's trade was rolled back during settlement |
user_order_inactive_update | settlement_rollback | A fully filled order's trade was rolled back during settlement |
The exchange can also remove an order for reasons of its own. These arrive as user_order_inactive with statuses such as error, partial_fill_error, system_aborted, partial_fill_system_aborted, stale_eviction, insufficient_fee_balance, delegation_check_failed, delegation_missing, delegation_lost, fee_rate_lookup_failed, allocation_withdrawn, symbol_disabled and unvetted_participant. An order cancelled by an admin can carry another status. Treat any user_order_inactive status you do not recognise as "the order is no longer on the book".
Spelling. A cancel you request of a live order is canceled (one L). A cancel before processing is cancelled (two Ls), and the market-order statuses use cancelled. canceled-remainder uses one L and a hyphen. Match each exactly.
Reasons
reason is set only on:
rejected: a free-text description from the engine, for examplepost-only order would immediately match (best opposing price: 0.1432). Do not parse it.cancelled(before processing):cancelled by user before processing.
Every other event leaves it out; the status says why.
Things to know
- Matching events to your orders. Every event for an order carries the
request_idfrom itsorder_ack. Use it to match events to the order, especially before the order has anorder_id. - Rejected after the ack. An order the engine refuses after
order_ack(for example apost_onlyorder that would cross) arrives as auser_orderwithstatusrejected. It can arrive before or after theorder_ack. - A rejection does not always mean nothing traded. If the engine hits an error after part of an order has filled, you get a
user_order_inactivewithpartial_fill_errorand the realorder_id, and then auser_orderwithrejected. Use theuser_tradeevents for what traded. - Cancels. After
cancel_ack, a live order leaves the book, and the balance it locked is freed, with itsuser_order_inactiveevent, usually tens of milliseconds later. An order cancelled before the engine processed it gets auser_orderwith statuscancelledinstead.
Trade events
You get one user_trade for each trade your order is in, and another each time the trade's settlement status changes. Decimal values are strings.
{"type":"user_data","event":"user_trade","user_id":12345,"data":{"trade_id":"...","order_id":"...","symbol":"CC/USDCx","quantity":"10","price":"0.15","seller_fees":"...","buyer_fees":"...","seller_net":"...","buyer_net":"...","settlement_cid":"...","resting_side":"sell","status":"pending","side":"buy","created_at":"2026-12-01T17:09:31Z"}}| Field | Type | Description |
|---|---|---|
trade_id | string | Trade ID |
order_id | string | Your order in this trade |
symbol | string | Trading pair |
side | string | Your side of the trade: buy or sell |
quantity | string | Traded quantity |
price | string | Trade price |
seller_fees | string | Fees charged to the seller |
buyer_fees | string | Fees charged to the buyer |
seller_net | string | The seller's net amount after fees |
buyer_net | string | The buyer's net amount after fees |
resting_side | string | Side of the resting (maker) order: buy or sell. If it equals your side, you were the maker. |
settlement_cid | string | Settlement contract ID |
status | string | pending (matched), settling, settled, or rolled_back (settlement failed and the trade was undone) |
created_at | string | When the trade happened (RFC 3339, UTC) |
Your fees and net amount are the seller_ fields when your side is sell, and the buyer_ fields when it is buy.
Balances, deposits and withdrawals
These are not sent on the WebSocket, and there is no channel to subscribe to for them. Get them over the REST API.
Events are not replayed
Events sent while you were disconnected are not sent again. After a reconnect, fetch what you may have missed over REST: open orders (GET /api/trading/orders/active) and recent trades (GET /api/trading/trades). See Disconnects and reconnecting.
During recovery you may see the same order or trade both over REST and on the socket, so make your handling of order and trade events idempotent.
Updated 3 days ago

