Endpoint
game_id. It does not stream raw upstream provider messages by default.
Authentication
Pass your data key in the websocket URL:Subscribe
Subscribe to all matched sports games Predexon currently covers:| Field | Type | Default | Description |
|---|---|---|---|
game_ids | string[] | - | Subscribe to specific games. Use ["*"] for all matched games. |
leagues | string[] | - | Subscribe to all games in one or more leagues. |
sports | string[] | - | Subscribe to all games in one or more sports. |
game_ids, leagues, or sports is required. game_ids: ["*"] is the all-games subscription.
Unsubscribe
Server Messages
ack
event
error
Heartbeats
The gateway uses websocket ping/pong frames for connection liveness. Clients should respond to ping frames according to their websocket library’s normal behavior.Reconnect Behavior
If the connection drops, reconnect and resubscribe. Use REST to rehydrate current state after reconnect:since_sequence field.
Update Policy
The websocket emits an update when the aggregate changes materially:- Score changed
- Period changed
- Clock changed
- Key incidents changed
liveorendedchanged- Winner changed
- Reliability changed
- Source conflict appeared or resolved
- Stale state appeared or resolved
Identifier Rules
Websocket updates are keyed bygame_id.
Trading and routing still use canonical outcome-level predexon_id.
