How to fetch markets by a particular sport? #117
-
Originally asked by @GitBolt in #116
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Thanks for the Q! So the protocol is agnostic to sport/event/competition, it has no concept of these. The only thing that would link it to an event is the eventPk on the market. The eventPk is a concept that will eventually link to the protocol events service - this will contain the information you require - however the event service is not yet in use by any operators. We will be working with them to get this up and running soon, with a full batch of docs and examples to help you out. For now, your best solution is to check out the BetDEX API #87 this returns a list of all of the markets that BetDEX are offering, it's a simple JSON format so a little formatting should give you all the info you need about currently live and recently settled markets. Once the event service is in use we'll drop a post and I'll update this Q&A with a more sustainable answer for you. |
Beta Was this translation helpful? Give feedback.
Thanks for the Q!
So the protocol is agnostic to sport/event/competition, it has no concept of these. The only thing that would link it to an event is the eventPk on the market.
The eventPk is a concept that will eventually link to the protocol events service - this will contain the information you require - however the event service is not yet in use by any operators. We will be working with them to get this up and running soon, with a full batch of docs and examples to help you out.
For now, your best solution is to check out the BetDEX API #87 this returns a list of all of the markets that BetDEX are offering, it's a simple JSON format so a little formatting should give you all the inf…