Skip to content

How to fetch markets by a particular sport? #117

Answered by druspencer
druspencer asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@GitBolt
Comment options

@GitBolt
Comment options

@druspencer
Comment options

druspencer Nov 28, 2023
Maintainer Author

@GitBolt
Comment options

@druspencer
Comment options

druspencer Nov 28, 2023
Maintainer Author

Answer selected by druspencer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants