What is a market?
A market on SX Bet represents a single, binary question about the outcome of a sporting event. For example:- Will the Lakers or the Celtics win? (Moneyline)
- Will the total goals scored be over or under 2.5? (Total)
- Will Manchester City win by more than 1.5 goals? (Spread)
The market hash
Every market on SX Bet is identified by a uniquemarketHash.
marketHash is the primary key used across the entire API. You’ll use it to:
- Fetch orders on a market
- Post and cancel orders
- Query your trade history
- Subscribe to orderbook updates via WebSocket
marketHash.
Outcomes
Every market has three outcome fields:| Field | Description |
|---|---|
outcomeOneName | The name of the first bettable outcome |
outcomeTwoName | The name of the second bettable outcome |
outcomeVoidName | The condition under which the market is voided |
| Market type | outcomeOneName | outcomeTwoName |
|---|---|---|
| Moneyline | Team/player one | Team/player two |
| Spread | Team A covering the spread | Team B covering the spread |
| Total | Over | Under |
| 1X2 | Team A wins | Team A does not win |
Market types
In addition to outcome names, each market has atype field. This numeric identifier tells you what kind of market it is. SX Bet supports over 30 market types — see the full list on the Market Types page. A few common examples:
type | Name | Description |
|---|---|---|
52 | 12 | Who will win the game (no draw) — e.g. "Lakers" vs "Celtics" |
1 | 1X2 | Who will win the game, including draw — e.g. "Man City wins" vs "Man City does not win" |
226 | 12 Including Overtime | Who will win the game including overtime |
3 | Asian Handicap | Who will win with a points handicap — e.g. "Lakers -3.5" vs "Celtics +3.5" |
2 | Under/Over | Will the total score be over or under a line — e.g. "Over 2.5" vs "Under 2.5" |
line field contains the relevant value:
Main lines and alternate lines
For spread and total markets, multiple lines are often available for the same fixture. For example, a soccer match might have totals at 1.5, 2.5, and 3.5 goals. ThemainLine field indicates whether a market is currently the primary line for its type:
Market status
Thestatus field tells you whether a market is currently open for trading.
| Status | Description |
|---|---|
ACTIVE | The market is open — orders can be posted and filled |
INACTIVE | The market is closed for trading |
GET /markets/active will always have status: ACTIVE. Once a game starts or a market is suspended, it will no longer appear in that endpoint.
Live markets
Many markets support in-play (live) betting. TheliveEnabled field indicates whether a market is available for live betting:
Full market object
Here’s a complete market object for reference:| Field | Description |
|---|---|
status | ACTIVE or INACTIVE |
marketHash | The unique identifier for the market |
outcomeOneName | Outcome one for this market |
outcomeTwoName | Outcome two for this market |
outcomeVoidName | Outcome void for this market |
teamOneName | The name of the first team/player participating |
teamTwoName | The name of the second team/player participating |
type | The type of the market |
gameTime | The UNIX timestamp of the game |
line | The line of the market. Only applicable to markets with a line |
sportXeventId | The unique event ID for this market |
liveEnabled | Whether or not this match is available for live betting |
sportLabel | The name of the sport for this market |
sportId | The ID of the sport for this market |
leagueId | The league ID for this market |
leagueLabel | The name of the league for this market |
mainLine | Whether this market is currently the main line. Not present on markets without multiple lines |
group1 | Indicator to the client of how to display this market |
group2 | Indicator to the client of how to display this market |
