Outbound Data Structures — MarketCatalogue
Queue Configuration
| Property | Value |
|---|---|
| Topic name | {customerPrefix}.market-catalogue.queue |
| Description | Messages containing full market static details. Upon arrival, it should override the existing snapshot after the version check. |
| Routing patterns | customerPrefix - customer unique prefix |
| Produces | MarketCatalogue |
MarketCatalogue Model
| Field | Data Type | Description |
|---|---|---|
| id | string | The unique id of the market. |
| eventId | string | The id of the event. |
| marketType | string | The market type. |
| oddsType | string | Odds type. |
| name | string | The market name |
| startTime | string | The market start time |
| prematchOnly | boolean | Boolean flag indicating whether the market will be open during prematch only or will go live on game start. |
| sortOrder | long | Recommended sort order of the market. |
| runners | RunnerCatalogue[] | The set of betable selections on the market. |
| metadata | MarketMetadata | The market metadata. |
| version | long | Version of market. This can be used for deduplication and ordering of updates downstream. |
| sportId | string | The id of the sport |
| tradingMarketType | string | Original 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
| Field | Data Type | Description |
|---|---|---|
| id | long | The id of the runner. |
| name | string | The name of the runner. |
| sortPriority | integer | The recommended positional order of the selection when being displayed. |
| metadata | map<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
| Field | Data Type | Description |
|---|---|---|
| competitors | MarketCompetitorMetadata | Market competitors metadata. |
MarketMetadata Proto
message MarketMetadata {
repeated MarketCompetitorMetadata competitor = 1;
}
MarketCompetitorMetadata Model
| Field | Data Type | Description |
|---|---|---|
| name | string | Market competitor full name. |
| shortName | string | Market competitor short name. |
MarketCompetitorMetadata Proto
message MarketCompetitorMetadata {
string name = 1;
string shortName = 2;
}