Why Have Market Types Changed in 0.12.0
?
#120
-
Prior to You can read more about the technical change in the PR implementing the work: MonacoProtocol/protocol#130 Previous Types
To resolve this and allow for extensible market types to be applied to events (for example over/under markets are the same type, but an operator may need multiple over/under markets on an event - over 0.5, 1.5, 2.5 etc) we have introduced market type accounts. So whilst a market may have previously looked like this:
Instead of:
You will now see:
The marketType is now a publicKey relating to a market type account. You will notice
Full info about the market type, including its name, can then be pulled from it's onchain account - here are the ones, at time of writing, on mainnet - mirroring the original market types from the protocol:
Over time, market operators will make use of new market types and their discriminator/value functions so if you are implementing a solution that requires you to understand more about the market types, you may want to map them locally and fetch if there is an unknown one. The SDK has example code for: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Answer in post |
Beta Was this translation helpful? Give feedback.
Answer in post