秋田预测市场 · Discord 审计

API 获取实时比分时里程碑和使用方法的疑问

2026-06-28 · Kalshi · 6 条相关讨论

Zoro_1856 2026-06-27 22:10:19

Hey guys, How do I get the live score for the world cup and Wimbledon matches from the API ? I found something called milestones but I can't find the milestone ID for the world cup and Wimbledon Thank you !

Hey guys, How do I get the live score for the world cup and Wimbledon matches from the API ? I found something called milestones but I can't find the milestone ID for the world cup and Wimbledon Thank you !

Noah 2026-06-28 01:02:19

Basic flow: 1. Get the relevant event/market, usually by series or event ticker: `GET /trade-api/v2/events/{event_ticker}` 2. In the returned event object, read `milestone_id` 3. Use that value to fetch live game data: `GET /trade-api/v2/live_data/milestone/{milestone_id}`

Basic flow: 1. Get the relevant event/market, usually by series or event ticker: `GET /trade-api/v2/events/{event_ticker}` 2. In the returned event object, read `milestone_id` 3. Use that value to fetch live game data: `GET /trade-api/v2/live_data/milestone/{milestone_id}`

Zoro_1856 2026-06-28 01:03:06

Thank you so much !! Really appreciate the help !

Thank you so much !! Really appreciate the help !

Zoro_1856 2026-06-28 03:45:47

So sorry but I have a couple of quick questions - for this event - KXATP-26EASTBO, there is no milestone_id being retured when I try the "GET /trade-api/v2/events/{event_ticker}" API even when I pass with_milestones=True as a pram I can't find the milestone ID. However, there is one when I try the "GET trade-api/v2/milestones" with some params. I was curious how to get the milestone id in the events ticker Also I couldn't find any websocket connection for the live game data link. Is there something else that I'm missing? Thanks again !!

So sorry but I have a couple of quick questions - for this event - KXATP-26EASTBO, there is no milestone_id being retured when I try the "GET /trade-api/v2/events/{event_ticker}" API even when I pass with_milestones=True as a pram I can't find the milestone ID. However, there is one when I try the "GET trade-api/v2/milestones" with some params. I was curious how to get the milestone id in the events ticker Also I couldn't find any websocket connection for the live game data link. Is there something else that I'm missing? Thanks again !!

Noah 2026-06-28 04:27:12

Oops, I missed a layer. You can list via `GET /trade-api/v2/milestones` with appropriate filters then match against the response payload which includes event ticker. Then grab the `id` from the matched item. Not aware of a websocket for live data. I poll for it, would be nice to have a ws feed

Oops, I missed a layer. You can list via `GET /trade-api/v2/milestones` with appropriate filters then match against the response payload which includes event ticker. Then grab the `id` from the matched item. Not aware of a websocket for live data. I poll for it, would be nice to have a ws feed

Zoro_1856 2026-06-28 04:43:31

Understood, thank you!!

Understood, thank you!!