PandaFX Docs

Market Channel

Stream public order-book, price, and market lifecycle updates

Use the Market channel to keep one or more outcome-token books current without polling. The channel is public and does not require CLOB credentials.

Endpoint

wss://ws-subscriptions-clob.kuest.com/ws/market

Subscribe

FieldTypeDescription
typestringMust be market
assets_idsstring[]Outcome token IDs to stream
custom_feature_enabledbooleanEnables best_bid_ask and new_market events

Use one connection for multiple token IDs when possible.

Message types

TypeMeaning
bookFull level-2 order-book snapshot
price_changeIncremental change caused by an order placement or cancellation
tick_size_changeMinimum price-increment update
last_trade_priceLatest matched trade
best_bid_askTop-of-book update; requires custom features
new_marketNewly ingested market metadata; requires custom features

Keep local state consistent

Numeric values are serialized as strings. Live messages include sequence, stream_id, and server_ts_ms; book.hash summarizes a book payload.

  1. Build local state from a full book snapshot.
  2. Apply incremental messages in sequence.
  3. On reconnect, stream change, or sequence gap, discard the local book and request a fresh snapshot.

Do not continue applying deltas after a missed sequence. A visually plausible but stale book can produce incorrect prices and unsafe orders.

Try it

Entorno de pruebas de WebSocket

Los sockets del navegador no pueden establecer encabezados de autorización personalizados. Este widget añade el token como parámetro de consulta.

Desconectado
wss://ws-subscriptions-clob.kuest.com/ws/market

Registro de conexión

Aún no hay eventos.