Every WebSocket stream and method, with the exact payload field names. WebSocket messages use a compact wire format with single-letter field names — this page maps each letter to its meaning so you never need to inspect the source.
All streams and methods are on client.websocket. See the WebSocket guide for lifecycle, reconnection, and usage patterns.
Public streams
No authentication required. Each returns a WebSocketStream<T> you subscribe to with .on("message", …).
Method
Payload type
Description
trades(symbol, options?)
Trade
Real-time trade prints
bookTicker(symbol, options?)
BookTicker
Best bid/ask updates
depthUpdates(symbol, options?)
DepthUpdate
Incremental order book diffs
depth(symbol, options)
OrderBookSnapshot
Periodic top-N depth snapshots (options.levels: 5, 10, or 20)
contractStatus(options?)
ContractStatus
Prediction market contract status changes
rfqs(options?)
RfqPublicEvent
Public request-for-quote events (sandbox/planning only — not enabled in production)
Authenticated streams
Require an auth strategy and the server entry point (browser WebSocket cannot set upgrade headers).
Method
Payload type
Description
orders(options)
OrderUpdate
Order lifecycle updates (options.scope: "account" or "session")
balances(options?)
BalanceUpdate
Balance changes (options.intervalMs: 0 or 1000)
positions(options?)
PositionReport
Position updates (options.intervalMs: 0 or 1000)
rfqDeliveries(options)
RfqPrivateDelivery
Private RFQ delivery confirmations (options.scope) (sandbox/planning only — not enabled in production)
Request/response methods
These send a request and resolve with a response, rather than streaming.
Method
Returns
Description
placeOrder(params, options?)
OrderActionResponse
Place an order over WebSocket
cancelOrder(params, options?)
OrderActionResponse
Cancel a single order
cancelAllOrders(options)
OrderActionResponse
Cancel all orders (options.confirm must be true)
cancelSessionOrders(options)
OrderActionResponse
Cancel session orders (options.confirm must be true)
ping(options?)
GenericSuccessResponse
Round-trip liveness check
time(options?)
GenericSuccessResponse
Server time
conninfo(options?)
GenericSuccessResponse
Connection info
listSubscriptions(options?)
ListSubscriptionsResponse
Current active subscriptions
depthSnapshot(symbol, options?)
DepthResponse
One-shot depth snapshot
RFQ quote methods
Note: RFQ streams and methods are currently sandbox/planning only and are not enabled in production.
Accessed via client.websocket.rfq:
Method
Params
Returns
rfq.submitQuote(params, options?)
RfqSubmitQuoteParams
RfqSubmitQuoteResponse
rfq.withdrawQuote(params, options?)
RfqWithdrawQuoteParams
RfqWithdrawQuoteResponse
rfq.confirmQuote(params, options?)
RfqConfirmQuoteParams
RfqConfirmQuoteResponse
Wire format
WebSocket payloads use single-letter field names. These are the exact fields on each type. Prices and quantities are decimal strings (never floats — see Data Types); timestamps and IDs may be bigint.