Skip to main content
WSS
wss://ws-subscriptions-clob.kuest.com
/
ws
/
user
Messages
User subscribe
type:object

Subscribe to user events for specific markets.

Unsubscribe
type:object

Remove subscriptions for assets or markets.

Ping
type:string

Client keepalive ping (raw text).

Order update
type:object
Trade update
type:object
Pong
type:string

Server response to ping (always PONG).

Authenticated channel for updates related to user activity (orders and trades) scoped to your API key.

Authentication

Only the user channel requires authentication.
Provide the same L2 credentials used for private REST requests.
FieldRequiredDescription
apikeyYesUUID v4 API key returned by POST /auth/api-key.
secretYesBase64-encoded secret associated with the API key.
passphraseYesHex passphrase used to unwrap the secret client-side.
Need new credentials? See Authentication overview and Create API key. Subscribe <wss-channel> user

Trade message

Emitted when:
  • A market order is matched (MATCHED).
  • A limit order for the user is included in a trade (MATCHED).
  • Subsequent status changes occur (MINED, CONFIRMED, FAILED).

Structure

NameTypeDescription
asset_idstringAsset ID (token ID) of the order.
event_typestringtrade.
idstringTrade ID.
last_updatestringTime of last update to the trade.
maker_ordersMakerOrder[]Array of maker order details.
marketstringMarket identifier (condition ID).
matchtimestringTime the trade was matched.
outcomestringOutcome (empty for now).
ownerstringAPI key of the event owner.
pricestringPrice.
sidestringBUY or SELL.
sizestringSize.
statusstringMATCHED, MINED, CONFIRMED, or FAILED (planned: RETRYING).
taker_order_idstringID of the taker order.
timestampstringTime of the event.
trade_ownerstringAPI key of the trade owner.
typestringTRADE.
Where a MakerOrder object is of the form:
NameTypeDescription
asset_idstringAsset ID of the maker order.
matched_amountstringAmount of the maker order matched in the trade.
order_idstringMaker order ID.
outcomestringOutcome (empty for now).
ownerstringOwner of the maker order.
pricestringPrice of the maker order.
{
  "asset_id": "52114319501245915516055106046884209969926127482827954674443846427813813222426",
  "event_type": "trade",
  "id": "28c4d2eb-bbea-40e7-a9f0-b2fdb56b2c2e",
  "last_update": "1713470000",
  "maker_orders": [
    {
      "asset_id": "52114319501245915516055106046884209969926127482827954674443846427813813222426",
      "matched_amount": "10",
      "order_id": "01HVD3B4M2H61WFFYB7G9B9GQZ",
      "outcome": "",
      "owner": "<maker_owner>",
      "price": "0.57"
    }
  ],
  "market": "0xbd31dc8a20211944f6b70f31557f1001557b59905b7738480ca09bd4532f84af",
  "matchtime": "1713470000",
  "outcome": "",
  "owner": "<api_key>",
  "price": "0.57",
  "side": "BUY",
  "size": "10",
  "status": "MATCHED",
  "taker_order_id": "01HVD3BQXT1QZ3J5P1S2QJ7XQ9",
  "timestamp": "1713470000",
  "trade_owner": "<api_key>",
  "type": "TRADE"
}

Order message

Emitted when:
  • An order is placed (PLACEMENT).
  • An order is updated (partially matched) (UPDATE).
  • An order is canceled (CANCELLATION).

Structure

NameTypeDescription
asset_idstringAsset ID (token ID) of the order.
associate_tradesstring[] or nullTrade IDs referencing fills that include this order.
event_typestringorder.
idstringOrder ID.
marketstringCondition ID of the market.
order_ownerstringOwner of the order.
original_sizestringOriginal order size.
outcomestringOutcome (empty for now).
ownerstringOwner of the order.
pricestringPrice of the order.
sidestringBUY or SELL.
size_matchedstringSize of the order that has been matched.
timestampstringTime of the event.
typestringPLACEMENT, UPDATE, or CANCELLATION.
{
  "asset_id": "52114319501245915516055106046884209969926127482827954674443846427813813222426",
  "associate_trades": null,
  "event_type": "order",
  "id": "01HVD3B4M2H61WFFYB7G9B9GQZ",
  "market": "0xbd31dc8a20211944f6b70f31557f1001557b59905b7738480ca09bd4532f84af",
  "order_owner": "<api_key>",
  "original_size": "10",
  "outcome": "",
  "owner": "<api_key>",
  "price": "0.57",
  "side": "SELL",
  "size_matched": "0",
  "timestamp": "1713470000",
  "type": "PLACEMENT"
}

Notes

  • All numeric values are strings.
  • owner, trade_owner, and order_owner are rewritten to the caller API key.
  • outcome fields are currently empty.
  • CONFIRMED is emitted after the on-chain transaction reaches TX_CONFIRMATIONS (same instant as MINED in the current flow).
  • Trade status RETRYING is planned (TBD).