WebSocket Reference
market:sports-stats
Live sports-stats deltas (goals, timeline) keyed by event id
The market:sports-stats channel broadcasts live sports-stats deltas — synthetic goal, timeline, and momentum events — for a sports event. Unlike market:sports-state, it is keyed by event id (an event may group several markets). Payloads are bridged from the sports connector via Redis and re-broadcast to subscribers.
Subscribe
{ "event": "subscribe", "data": { "channel": "market:sports-stats:<eventId>" } }Replace <eventId> with the target event id.
Unsubscribe
{ "event": "unsubscribe", "data": { "channel": "market:sports-stats:<eventId>" } }Server Broadcast
{
"channel": "market:sports-stats:evt-7f3a1c",
"data": {
"eventId": "evt-7f3a1c",
"type": "goal",
"team": "home",
"minute": 67,
"homeScore": 2,
"awayScore": 1,
"timestamp": 1716923400000
}
}Payload Schema
| Field | Type | Description |
|---|---|---|
eventId | string | Event identifier the stats belong to |
type | string | Stat/timeline event type (e.g. goal, card, period) |
team | string | Which side the event applies to |
minute | number | Match minute of the event |
homeScore | number | Running home score |
awayScore | number | Running away score |
timestamp | number | Unix millisecond epoch of the update |
Notes
- Public channel — no authentication required.
- Keyed by event id, not market id — subscribe once per event to receive stats for all of its markets.