The price feed streams market/orderbook updates as JSON messages over a raw WebSocket connection.Documentation Index
Fetch the complete documentation index at: https://docs.4casters.io/llms.txt
Use this file to discover all available pages before exploring further.
Ping/Pong
Both feeds support standard WebSocketping/pong. You may proactively ping() on an interval and track pong to verify liveness.
Messages
Every message on/price-stream arrives as a 2-tuple [type, payload]. Three message types are broadcast.
orderUpdate
Emitted whenever an order in any market changes (new, edited, filled, or cancelled). The payload only includes sideOrders the receiving user is allowed to see (own orders plus matchable counterparties).
gameUpdate
Emitted when a game is created or its state changes (markets opening, closing, start time updates). The payload is the full rendered game.
messageType values: marketOpen, marketClosed. Treat the field as extensible and ignore unknown values.