BetDEX API FAQ #87
-
The team over at BetDEX kindly exposed a simple API endpoint to allow developers to see their currently published This lists all of their currently running markets that have been published with their authority Why does this exist?BetDEX, as early consumers of the Monaco Protocol, have to work around some of the limitations in the protocol. They opened up the API in order to allow developers to work around these limitations whilst also reducing the amount of on-chain requests a consumer would have to make in order to get currently published markets by the operator. What are the limitations?
What's the TLDR?
What is the events service?The events service is an in development on-chain program that will provide more context about the event a market is for. This is the The events service will provide that information. By querying the associated Knowing this What is the Market PDA Limitation?Market PDAs are generated based on
This of course does not scale for an operator such as BetDEX running multiple market types. As such, they group markets together on their API level rather than an on-chain level. From the example below we can see that we have the event:
None of this information exists on-chain, but it is vital context for a market operator in order to group its markets not only for the user, but for internal operator functions such as settlement. We can also see that this event has 3 markets:
Each of these markets do exist on-chain, but they could theoretically have different eventAccounts. This is because of the PDA limitation. Essentially, right now - the on-chain eventAccount for a market means nothing for BetDEX. The top-level API eventAccount, is their unique identifier for market grouping. Eventually, with an events service and the PDA restrictions resolved, this top-level API eventAccount will also relate to an on-chain event providing all the context around a market required for any operator.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Answers in post |
Beta Was this translation helpful? Give feedback.
Answers in post