---
title: "Get active markets"
method: GET
path: "/markets/active"
tags: ["Markets"]
---

# Get active markets

`GET /markets/active`

This endpoint retrieves active markets on the exchange. It does not return markets that have been settled or reported.

## Query parameters

- `onlyMainLine` boolean
- `eventId` string
- `leagueId` integer
- `sportIds` integer[]
- `liveOnly` boolean
- `betGroup` string
- `type` integer[]
- `paginationKey` string
- `pageSize` integer
- `gameTime` integer

## Response `200`

- object
  - `status` string — `success` or `failure` if the request succeeded or not
  - `data` object
    - `markets` Market[]
      - `status` string — `ACTIVE` or `INACTIVE`
      - `marketHash` string — The unique identifier for the market
      - `outcomeOneName` string — Outcome one for this market
      - `outcomeTwoName` string — Outcome two for this market
      - `outcomeVoidName` string — Outcome void for this market
      - `teamOneName` string — The name of the first team/player participating
      - `teamTwoName` string — The name of the second team/player participating
      - `type` integer — The type of the market
      - `gameTime` number — The UNIX timestamp of the game
      - `line` number, nullable — The line of the market. Only applicable to markets with a line
      - `sportXeventId` string — The unique event ID for this market
      - `liveEnabled` boolean — Whether or not this match is available for live betting
      - `sportLabel` string — The name of the sport for this market
      - `sportId` number — The ID of the sport for this market
      - `leagueId` number — The league ID for this market
      - `leagueLabel` string — The name of the league for this market
      - `mainLine` boolean — If this market is currently the main line or not. If the market is not a market with multiple lines, this field will not be present
      - `isQuarterLineMarket` boolean — `true` if this market is a quarter-line market (Asian handicap or totals in .25 increments). See the [quarter lines changelog entry](/changelog#quarter-lines-gradual-rollout) for details.
      - `group1` string — Indicator to the client of how to display this market
      - `chainVersion` string — The chain version this market is deployed on
      - `participantOneId` integer — The team ID of participant one
      - `participantTwoId` integer — The team ID of participant two
      - `__type` string — The type of this object
      - `legs` Market[] — If this is a Parlay Market, this field will contain an array of the underlying Legs as a Market object
      - `group2` string — Secondary display grouping indicator for the market
      - `teamOneMeta` object — Extra metadata for team one
      - `teamTwoMeta` object — Extra metadata for team two
      - `marketMeta` object — Extra metadata for the market overall
      - `reportedDate` number — UNIX timestamp of when the market was reported/settled
      - `outcome` integer — The outcome of the market once settled
      - `teamOneScore` number — Final score for team one
      - `teamTwoScore` number — Final score for team two
    - `nextKey` string — Use this key as the `paginationKey` to retrieve the next set of records, if any

---

[API](https://skmtc.net/sx/apis/sx-bet-api.md) · [All operations](https://skmtc.net/sx/apis/sx-bet-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sx/sx-bet-api/versions/eb2c05c3a98e/schema)
