/
v3.0.11Get access

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.

Request parameters:

NameDescriptionTypeValuesDefault
sportAlias
The alias of the sport to retrieve market typesstring"Soccer", "Basketball", "Tennis", "Volleyball", etc.-

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']
    }]
  }
}

Response parameters:

NameDescriptionTypeValues
Kind
The internal classification of the market.string-
BasaltKind
A secondary or provider-specific classification string.string-
SelectionCount
The number of possible outcomes available for this market.number-
SportId
The unique ID for the sport.number-
Order
The display priority, used to determine the sorting order of markets in the UI.number-
MarketTypeName
The human-readable name of the betting category.string-
SportAlias
The short-hand name or alias for the sport.string-
DisplayKey
A UI grouping key used for tabs or headers.string-
DisplaySubKey
A secondary UI filter, often indicating the scope of the bet.string-
SelectionTypesNames
A list of strings representing the possible outcomes.array["Over", "Under"]