Event and market id mapping
Answer: events have numeric id; markets use id = eventId:key (e.g. 1640278226:s;0;m). Cache your own fixture ↔ id map. After reconnect, rebuild from snapshot — do not assume ids vanished mid-session without a remove. Schema: docs.
Why it matters#
Algo-betting threads often call line id mapping the real bottleneck — not JSON parse time. Keep a local dictionary and update on upsert/remove only.
Trial CTA#
Builder (€99/mo) for WebSocket and closing history. 3-day trial; card required, charged after day 3 unless cancelled. Free REST: signup. Related: answers hub, docs.
Questions people ask#
Do ids change daily?#
Event ids stay for the lifetime of the event in the feed. Always handle removes.
Can I subscribe by event id?#
Filters are sport/market oriented; narrow client-side or see current WS docs for event filters.
Is this educational content for adults?#
Yes (18+).