Skip to main content
GET
/
markets
/
active
Get active markets
curl --request GET \
  --url https://api.sx.bet/markets/active
{
  "status": "success",
  "data": {
    "markets": [
      {
        "status": "ACTIVE",
        "marketHash": "0x8120ae9408cd7556246473be7ceada8cba47d42418cce31ffad0b67b196e3218",
        "outcomeOneName": "Golden State Warriors",
        "outcomeTwoName": "Minnesota Timberwolves",
        "outcomeVoidName": "NO_CONTEST",
        "teamOneName": "Golden State Warriors",
        "teamTwoName": "Minnesota Timberwolves",
        "type": 226,
        "gameTime": 1773453600,
        "sportXeventId": "L18272456",
        "liveEnabled": true,
        "sportLabel": "Basketball",
        "sportId": 1,
        "leagueId": 1,
        "leagueLabel": "NBA",
        "group1": "NBA",
        "chainVersion": "SXR",
        "participantOneId": 15002,
        "participantTwoId": 14999,
        "__type": "Market"
      },
      {
        "status": "ACTIVE",
        "marketHash": "0x531e9e6d6469f6323d464340e91840b3666e4e43cf04b8c2a52c2ac0d67839fb",
        "outcomeOneName": "Golden State Warriors +6.5",
        "outcomeTwoName": "Minnesota Timberwolves -6.5",
        "outcomeVoidName": "NO_GAME_OR_EVEN",
        "teamOneName": "Golden State Warriors",
        "teamTwoName": "Minnesota Timberwolves",
        "type": 342,
        "gameTime": 1773453600,
        "line": 6.5,
        "sportXeventId": "L18272456",
        "liveEnabled": true,
        "sportLabel": "Basketball",
        "sportId": 1,
        "leagueId": 1,
        "leagueLabel": "NBA",
        "group1": "NBA",
        "chainVersion": "SXR",
        "participantOneId": 15002,
        "participantTwoId": 14999,
        "mainLine": true,
        "__type": "Market"
      }
    ],
    "nextKey": "60c7b8f54da0ad001aa3261c"
  }
}
To retrieve odds for a particular market, you must query the orders endpoint separately.
Only one of type and betGroup can be present. Not both.

Query Parameters

onlyMainLine
boolean

If set to true, the result will only include main lines on spread and over under markets

eventId
string

If set, it will only include markets for a particular sportXeventId

leagueId
integer

If set, it will only include markets for a particular league ID

sportIds
integer[]

If set, it will only include markets for particular sport IDs (comma separated)

liveOnly
boolean

If set, it will only include markets that are currently available for in-play betting

betGroup
string

If set, it will only include markets for a particular bet group

type
integer[]

If set, it will only include markets for those particular market types. See below for the options

paginationKey
string

Used for pagination. Pass the nextKey returned from the previous request to retrieve the next set of records.

pageSize
integer

Used for pagination. Requested page size. Each call will only return up to this amount of records. Maximum of 50

gameTime
integer

If set, only return markets for games starting at or after this UNIX timestamp

Response

200 - application/json
status
string

success or failure if the request succeeded or not

data
object