VeztaVezta
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

FieldTypeDescription
eventIdstringEvent identifier the stats belong to
typestringStat/timeline event type (e.g. goal, card, period)
teamstringWhich side the event applies to
minutenumberMatch minute of the event
homeScorenumberRunning home score
awayScorenumberRunning away score
timestampnumberUnix 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.

On this page