# Events and Markets (https://docs.predictorsdk.com/concepts/events-and-markets)

The shape of a matched game, what each field means, and which ID goes to which endpoint.

A matched game is an **event**. Inside it, each bet is a **submarket**, and
each submarket lists the **venue markets** that offer that bet. This page walks
through that shape and the IDs in it. The
[API reference](https://docs.predictorsdk.com/api-reference/getSportsMatchingMarkets) lists every field.

## Events [#events]

An event is one game. Its `event_id` reads
`<league>-<away>-<home>-<YYYY-MM-DD>`, for example `nba-okc-sas-2026-10-20`,
with the date in US Eastern time. Each event also carries:

- `participants`: the two teams, each with a `key`, a `name` and a `role`
  (`away` or `home`).
- `scheduled_date`: the game's day, in US Eastern time. Always present.
- `scheduled_start`: the start time in UTC, from the league's schedule, and
  `null` when no start is known. It says when the game is scheduled, not
  whether it has started.

## Submarkets [#submarkets]

A submarket is one bet within the game, named by its `key`, such as
`spread|full|spread:hou|8.5`:

| Field | Meaning |
|---|---|
| `key` | The bet's canonical ID within the event |
| `market_type` | `moneyline`, `spread`, `total` (points in the game), `team_total` (one team's points) or `player_prop`. Treat it as text: an unfamiliar value is a new kind of market |
| `segment` | `full`, `half:1`, `half:2`, or `quarter:1` to `quarter:4` |
| `line` | The number the bet turns on. Left out on moneylines, signed on spreads (negative means that team gives the points), positive on totals and props |
| `subject` | Whose line it is: the team on a spread or team total, the player on a prop. Left out on moneylines and game totals, which belong to the whole game |
| `display_name` | A readable label, such as `Houston Rockets -8.5` or `1H Total 111.5` |
| `rules` | Settlement notes, when they decide what can match. See below |

A half or a quarter means regulation play. The exception is a second half or
fourth quarter whose venues count overtime: its `key` ends its detail in
`:incl_ot` (`spread|half:2|spread:hou:incl_ot|8.5`), its `rules.settlement` is
`incl_ot`, and its `display_name` ends in "(incl. OT)". It joins only other
lines that count overtime. A full-game total also states `rules.settlement`,
because venues differ on whether its overtime counts.

### Outcomes [#outcomes]

Each submarket defines its canonical outcomes, and every venue's sides map to
them: `winner:okc` and `winner:sas` on a moneyline, `cover:hou` and
`not_cover:hou` on a spread, `over` and `under` on a total.

### Team totals [#team-totals]

A team total is one team's own points, such as the Eagles over 24.5
(`market_type` `team_total`). Its `subject` is the team and its key names the
team (`team_total|full|team_total:phi:incl_ot|24.5`), so two teams' lines at
the same number stay separate. Its `display_name` names the team
(`Philadelphia Eagles Total 24.5`) and its outcomes are `over` and `under`.
Team totals match for the NFL, on Kalshi and Polymarket, for the full game and
the first half.

## A full example [#a-full-example]

Here is one game with two submarkets: the full-game winner, listed by Kalshi
(twice, once per team) and Polymarket, and a spread. A real response lists at
least two venues on every submarket; this one shows only SX Bet's spread to
keep it short.

```json
{
  "data": [
    {
      "event_id": "nfl-sea-den-2026-10-15",
      "sport": "football",
      "league": "nfl",
      "title": "Seattle Seahawks vs. Denver Broncos",
      "scheduled_start": "2026-10-16T00:15:00.000Z",
      "scheduled_date": "2026-10-15",
      "participants": [
        { "key": "sea", "name": "Seattle Seahawks", "role": "away" },
        { "key": "den", "name": "Denver Broncos", "role": "home" }
      ],
      "submarkets": [
        {
          "key": "moneyline|full|winner",
          "market_type": "moneyline",
          "segment": "full",
          "display_name": "Winner",
          "outcomes": [
            { "key": "winner:sea", "label": "Seattle Seahawks win", "side": "win" },
            { "key": "winner:den", "label": "Denver Broncos win", "side": "win" }
          ],
          "source_markets": [
            {
              "provider": "kalshi",
              "event_id": "KXNFLGAME-26OCT15SEADEN",
              "market_id": "KXNFLGAME-26OCT15SEADEN-DEN",
              "market_name": "Denver wins",
              "outcomes": [
                { "canonical_outcome_key": "winner:den", "label": "Yes", "outcome_id": "yes", "side": "yes" },
                { "canonical_outcome_key": "winner:sea", "label": "No", "outcome_id": "no", "side": "no" }
              ]
            },
            {
              "provider": "kalshi",
              "event_id": "KXNFLGAME-26OCT15SEADEN",
              "market_id": "KXNFLGAME-26OCT15SEADEN-SEA",
              "market_name": "Seattle wins",
              "outcomes": [
                { "canonical_outcome_key": "winner:sea", "label": "Yes", "outcome_id": "yes", "side": "yes" },
                { "canonical_outcome_key": "winner:den", "label": "No", "outcome_id": "no", "side": "no" }
              ]
            },
            {
              "provider": "polymarket",
              "event_id": "nfl-sea-den-2026-10-16",
              "market_id": "4212356",
              "market_name": "Seahawks vs. Broncos",
              "market_slug": "nfl-sea-den-2026-10-16",
              "outcomes": [
                { "canonical_outcome_key": "winner:sea", "label": "Seahawks", "outcome_id": "61085243734073593459419955931627362545950081431149347585770687210061098950896" },
                { "canonical_outcome_key": "winner:den", "label": "Broncos", "outcome_id": "78653414984017864835330593213700943479354040352698721042453780387223265497055" }
              ]
            }
          ]
        },
        {
          "key": "spread|full|spread:den|3.5",
          "market_type": "spread",
          "segment": "full",
          "display_name": "Denver Broncos -3.5",
          "line": -3.5,
          "subject": { "type": "participant", "key": "den", "name": "Denver Broncos" },
          "outcomes": [
            { "key": "cover:den", "label": "Denver Broncos covers -3.5", "side": "cover" },
            { "key": "not_cover:den", "label": "Denver Broncos does not cover -3.5", "side": "not_cover" }
          ],
          "source_markets": [
            {
              "provider": "sxbet",
              "event_id": "L19431555",
              "market_id": "0x4703010fbb76917d799c0df6c2886d52b863d04c1578157f431b9684b13bdaa0",
              "market_name": "Denver Broncos -3.5 vs Seattle Seahawks +3.5",
              "outcomes": [
                { "canonical_outcome_key": "cover:den", "label": "Denver Broncos -3.5", "outcome_id": "outcomeOne" },
                { "canonical_outcome_key": "not_cover:den", "label": "Seattle Seahawks +3.5", "outcome_id": "outcomeTwo" }
              ]
            }
          ]
        }
      ]
    }
  ]
}
```

A few things to notice:

- Kalshi and Pred list each side of a market as `Yes` or `No`, the way market
  detail names them. The market's own name is in `market_name`.
- An SX Bet market is named by its two outcome labels, because the venue's own
  market name is the game's team pair, the same on every bet in the game.
- Polymarket's `event_id` above ends in `2026-10-16`, the UTC date of a
  Thursday-night kickoff, while the canonical key uses the Eastern date. That is
  why matching reads each venue's own fields rather than parsing its slugs, and
  why you should match on the canonical `event_id` too.

## Which identifier goes where [#which-identifier-goes-where]

Every venue market carries the same references:

| Field | What it names | Where it goes |
|---|---|---|
| `event_id` | The venue's parent event | [`GET /v1/events/{event_id}`](https://docs.predictorsdk.com/api-reference/getEvent) |
| `market_id` | The market itself | [`GET /v1/markets/{market_id}`](https://docs.predictorsdk.com/api-reference/getMarket) |
| `outcomes[].outcome_id` | One side of that market | The same `outcomes[].outcome_id` on market detail |

To find the game again, send any of `event_id`, `market_id` or `market_slug`
as `source_id={provider}:{id}` to
[`GET /v1/matching-markets/sports/lookup`](https://docs.predictorsdk.com/api-reference/lookupSportsMatchingMarkets).
A Polymarket, Predict, AlphaArcade or Hyperliquid `outcome_id`, or a Polymarket
condition ID, works there too.

Kalshi lists a game winner as one yes/no market per team ("Tampa Bay wins" and
"Dallas wins"), so a Kalshi moneyline appears once per team. Group by
`provider` if you want one entry per venue.

A venue's `event_id` is never a market ID, even where it looks like one. A
Kalshi event ticker answers `404` on market detail, and SX Bet and ProphetX
event IDs answer `400`.

SX Bet lists a fixture's markets only while the fixture is trading. Once a game
has been played, its SX Bet `event_id` answers `404` on
`GET /v1/events/{event_id}`, while its `market_id` still works on market
detail, with status `settled`. To read a finished SX Bet game, use the
`market_id`.

### Always send the provider [#always-send-the-provider]

Pass the venue market's `provider` with either call. It is the same lowercase
value the `provider` parameter takes, so you can pass it straight through:

```txt
GET /v1/events/{event_id}?provider={provider}
GET /v1/markets/{market_id}?provider={provider}
```

The composite `{provider}:{id}` form works on both endpoints too:
`GET /v1/markets/predict:1607914` goes straight to Predict.

Without a provider, the API guesses from the ID's shape. That works for Kalshi
tickers and SX Bet IDs, but a bare number or slug could belong to Polymarket or
Predict, and the two really do share numbers. The API then checks both venues
and answers only if exactly one has the ID. If both do, it returns
`409 Conflict` with the candidates rather than picking one.
`GET /v1/markets/1607914` is such a number:

```json
{
  "code": "ambiguous_identifier",
  "message": "market_id \"1607914\" resolves on polymarket and predict, which are different markets. Retry with ?provider= naming the one you want, or use the composite {provider}:{id} form.",
  "status_code": 409,
  "param": "market_id",
  "candidates": ["polymarket", "predict"]
}
```

`GET /v1/events/{event_id}` checks the same way, with `param` set to
`event_id`, but collides less often, because Polymarket numbers its events and
its markets separately.

Sending the provider every time is the one rule that works for all ten
venues. It is also faster and more reliable: guessing needs both venues to
answer, so it fails when either has an outage. AlphaArcade, Hyperliquid,
Limitless, ProphetX, Pred and Polymarket US IDs are never guessed at all and
always need the provider or the composite form.

### Outcome IDs [#outcome-ids]

An `outcome_id` is the venue's own name for a side, never a universal ID. It is
the same string market detail returns for that market, on every venue.

- Polymarket, Predict, AlphaArcade and Hyperliquid use tokens that are unique
  on the venue, so `source_id=polymarket:<token>` finds the game from the token
  alone (send a Hyperliquid token's leading `#` as `%23`).
  AlphaArcade game lines reuse the token of the Polymarket market they mirror,
  so key a cross-venue map by provider and token, never by token alone.
- Kalshi, Pred, Limitless, Polymarket US, SX Bet and ProphetX name sides within
  one market: `yes` and `no` on Kalshi, Pred, Limitless and Polymarket US, `outcomeOne` and `outcomeTwo` on SX Bet, small
  numbers such as `4` and `5` on ProphetX. They only mean something next to the
  `market_id`, and they are not lookup IDs: `source_id=kalshi:yes` answers
  `400` pointing you to the market's `market_id`.

This page is about identity. For a market's current status, quotes and
liquidity, send its IDs to market detail. The matching response carries no
prices or order books.