List Markets

Retrieve a list of markets for a specified event with filtering options.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

List Markets

This endpoint retrieves a list of markets for a specified event. It supports filtering by market types and minimum liquidity.

Endpoint

GET /affiliate/get_markets

Description

Fetches a list of available markets for a given event. This endpoint is useful for obtaining market data such as moneyline, spread, and total markets.

Parameters

  • event_id (integer, required): The unique identifier for the event.
  • get_all_market (boolean, optional): If true, retrieves all markets.
  • market_types (array of strings, optional): Comma-separated list of market types to filter by. Available values are moneyline, spread, total. Example: moneyline,total.
  • min_liquidity (number, optional): Filters markets by minimum liquidity.

Responses

  • 200 OK: Returns a JSON object containing the list of markets.
  • 400 Bad Request: Indicates a problem with the request parameters.
  • 500 Internal Server Error: Indicates a server-side error.

Security

  • Token: Required for authentication.

Example Request

GET /affiliate/get_markets?event_id=123&market_types=moneyline,spread&min_liquidity=100
Authorization: Bearer YOUR_TOKEN

Example Response

{
  "event_id": 123,
  "markets": [
    {
      "id": 1,
      "name": "Moneyline",
      "type": "moneyline",
      "selections": [...]
    },
    ...
  ]
}
Query Params
integer
required
boolean
string
enum

@deprecated

Allowed:
market_types
array of strings

Seperated by comma
Available values : moneyline, spread, total
Example: moneyline,total

market_types
number
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json