getMarketType
This call retrieves Market Metadata for sports betting. Its primary purpose is to provide the frontend with configuration rules for categorizing, sorting, and displaying markets. If a specific sportAlias is provided, the response returns data for that sport only , if the parameter is omitted, the call returns metadata for all available sports.
Documentation
Try it now
Request parameters:
Call example:
getMarketType({
sportAlias: 'Soccer'
})Response examples:
{
code: 0,
rid: 1947165965,
data: {
result: 0,
result_text: null,
details: [{
Kind: 'MatchTotal',
BasaltKind: 'TotalRunsOver/Under',
SelectionCount: 2,
SportId: 11,
Order: 7,
MarketTypeName: 'Total Runs',
SportAlias: 'Baseball',
DisplayKey: 'TOTALS',
DisplaySubKey: 'MATCH',
SelectionTypesNames: ['Over', 'Under']
}, {
Kind: 'MatchResult',
BasaltKind: 'P1P2',
SelectionCount: 2,
SportId: 11,
Order: 5,
MarketTypeName: 'Money Line',
SportAlias: 'Baseball',
DisplayKey: 'WINNER',
DisplaySubKey: 'MATCH',
SelectionTypesNames: ['W1', 'W2']
}]
}
}