How to deal with variant markets and outrights?
namreg opened this issue · 4 comments
According to the code, these features are not supported. Is it true?
Variant markets are treated as ...a variant of market.
Non variant markets have just MarketID, and 0 for VariantID. Variant markets has non-zero VariantID.
They are working just fine.
Can you please explain the outrights needs a little bit.
Variant markets are treated as ...a variant of market.
Non variant markets have just MarketID, and 0 for VariantID. Variant markets has non-zero VariantID.
They are working just fine.
Under variant markets I mean markets that have variant
specifier. According to the Betradar docs, to get market name and it's outcomes we should make additional request.
Can you please explain the outrights needs a little bit.
Betradar can provide odds for such events as outrights (stage, simple_tournament, season). To fetch fixtures for these entities we need to call another http route. Currently sdk expects that fixture will always be match.
Each received odds change message is analyzed and additional api request is made for any variant market found.
Similar each fixture change message can trigger api request for that fixture.
Api request is going to: api.betradar.com/v1/sports/{{.Lang}}/sport_events/{{.EventURN}}/fixture.xml
. It could be that in response from that url is enough information to handle outrights also. Please check, I don't remember any more.