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 !
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}`
Thank you so much !! Really appreciate the help !
Thank you so much !! Really appreciate the help !
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 !!
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
Understood, thank you!!
Understood, thank you!!