user_orders, user_fills, vault_positions) on
this gateway returns { "code": "forbidden" } in the rejected[]
array — use /ws/user for
own-activity streams.
Authentication
SameX-Api-Key scheme as the rest of the API — no separate auth
scheme for market data:
Market channels do not require any specific scope — any active key
can subscribe. Missing or invalid keys are rejected at handshake with
4401 <reason> (same close-code matrix as
/ws/user). Revoking a
key closes every live socket bound to that keyId immediately via
Redis pub/sub.
Connect greeting
partnerId is the platform-side partner-record id corresponding to
your API key. Useful for correlating WS sessions to your own audit
trail without a separate REST call. Absent on JWT-authenticated
sockets (retail Privy flows).
Available channels
See Server events for full payload
shapes per
type.
Live status:
token_trade_matches, token_trade_settlements,
token_book, token_ohlc, and system push reliably today.
condition_lifecycle accepts subscribes but most events are not
yet emitted by upstream.tokenId and conditionId come from REST
Subscribe by on-chain native ids, never by app symbol.
conditionId; resolve outcome token ids through the on-chain
NegRiskAdapter before subscribing.
Subscribe example
Subscribe response
Rejection codes
Related
Commands
update_subscription / unsubscribe / list_subscriptions / ping.
Server events
Full event payload catalog per channel.