Skip to main content

Outbound Data Structures — MarketCatalogue

Queue Configuration

PropertyValue
Topic name{customerPrefix}.market-catalogue.queue
DescriptionMessages containing full market static details. Upon arrival, it should override the existing snapshot after the version check.
Routing patternscustomerPrefix - customer unique prefix
ProducesMarketCatalogue

MarketCatalogue Model

FieldData TypeDescription
idstringThe unique id of the market.
eventIdstringThe id of the event.
marketTypestringThe market type.
oddsTypestringOdds type.
namestringThe market name
startTimestringThe market start time
prematchOnlybooleanBoolean flag indicating whether the market will be open during prematch only or will go live on game start.
sortOrderlongRecommended sort order of the market.
runnersRunnerCatalogue[]The set of betable selections on the market.
metadataMarketMetadataThe market metadata.
versionlongVersion of market. This can be used for deduplication and ordering of updates downstream.
sportIdstringThe id of the sport
tradingMarketTypestringOriginal market type

MarketCatalogue Proto

message MarketCatalogue {
string id = 1;
string eventId = 2;
string marketType = 3;
string name = 4;
string startTime = 5;
string oddsType = 6;
bool prematchOnly = 7;
int64 sortOrder = 8;
repeated RunnerCatalogue runner = 9;
MarketMetadata metadata = 10;
int64 version = 11;
string sportId = 12;
string tradingMarketType = 13;
}

RunnerCatalogue Model

FieldData TypeDescription
idlongThe id of the runner.
namestringThe name of the runner.
sortPriorityintegerThe recommended positional order of the selection when being displayed.
metadatamap<String, String>The metadata of the runner.

RunnerCatalogue Proto

message RunnerCatalogue {
int64 id = 1;
string name = 2;
int32 sortPriority = 3;
map<string, string> metadata = 4;
}

MarketMetadata Model

FieldData TypeDescription
competitorsMarketCompetitorMetadataMarket competitors metadata.

MarketMetadata Proto

message MarketMetadata {
repeated MarketCompetitorMetadata competitor = 1;
}

MarketCompetitorMetadata Model

FieldData TypeDescription
namestringMarket competitor full name.
shortNamestringMarket competitor short name.

MarketCompetitorMetadata Proto

message MarketCompetitorMetadata {
string name = 1;
string shortName = 2;
}