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

EventWhen
user_orderA 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_updateA resting order was partly filled; quantity is the new remaining size
user_order_inactiveAn order left the book: filled, cancelled, expired, or removed by the exchange
user_order_inactive_updateA filled order's trade was rolled back during settlement
user_tradeOne 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"}}
FieldTypeDescription
request_idintegerThe request_id from order_ack (REST's POST /orders returns it too)
order_idstringThe order's ID. Empty when the order never went live: rejected, or cancelled before it was processed.
symbolstringTrading pair
sidestringbuy or sell
order_typestringlimit or market
quantitystringRemaining quantity
original_quantitystringQuantity when placed
pricestringLimit price. For a market order, the worst price the engine expected to fill at (see Placing and cancelling orders).
statusstringSee below
reasonstringOnly on rejected and on a cancel before processing; see below
created_atstringWhen the order was created (RFC 3339, UTC)

Status values

EventstatusMeaning
user_orderacceptedThe order is resting on the book, possibly after a partial fill
user_orderfilledThe order filled completely on arrival. A user_order_inactive with filled follows too.
user_ordercanceled-remainderThe order traded, and the remainder was below the minimum quantity, so it was cancelled
user_orderrejectedThe engine refused the order; order_id is empty and reason says why
user_ordercancelledYou cancelled the order before the engine processed it; order_id is empty
user_order_updateacceptedA resting order was partly filled
user_order_inactivefilledFully filled
user_order_inactivecanceledYou cancelled it (REST or WebSocket)
user_order_inactiveexpiredIts expires_at passed
user_order_inactiveno_match_cancelled, partial_fill_cancelledA market order's unfilled remainder was cancelled (nothing filled, or part filled)
user_order_inactivecanceled-remainderThe remainder was below the minimum quantity and was cancelled
user_order_inactiveself_cross_cancelledRemoved to prevent a trade with your own order
user_order_inactivesettlement_rollbackA partly filled order's trade was rolled back during settlement
user_order_inactive_updatesettlement_rollbackA 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 example post-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_id from its order_ack. Use it to match events to the order, especially before the order has an order_id.
  • Rejected after the ack. An order the engine refuses after order_ack (for example a post_only order that would cross) arrives as a user_order with status rejected. It can arrive before or after the order_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_inactive with partial_fill_error and the real order_id, and then a user_order with rejected. Use the user_trade events for what traded.
  • Cancels. After cancel_ack, a live order leaves the book, and the balance it locked is freed, with its user_order_inactive event, usually tens of milliseconds later. An order cancelled before the engine processed it gets a user_order with status cancelled instead.

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"}}
FieldTypeDescription
trade_idstringTrade ID
order_idstringYour order in this trade
symbolstringTrading pair
sidestringYour side of the trade: buy or sell
quantitystringTraded quantity
pricestringTrade price
seller_feesstringFees charged to the seller
buyer_feesstringFees charged to the buyer
seller_netstringThe seller's net amount after fees
buyer_netstringThe buyer's net amount after fees
resting_sidestringSide of the resting (maker) order: buy or sell. If it equals your side, you were the maker.
settlement_cidstringSettlement contract ID
statusstringpending (matched), settling, settled, or rolled_back (settlement failed and the trade was undone)
created_atstringWhen 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.


Did this page help you?