Skip to content
Product Documentation

sportsbook-market-results

Every market a book offered on a game, settled against what actually happened: one row per offer (one selection at one line, named by offer_key) carrying the settled outcome and the pre-game closing price when one was observed. Typically ≈ 12,000 rows per game — the dataset for answering “would this bet have won?” at scale.

Where a book moved the line on one selection id (FanDuel main and period lines, team totals, player and team over/unders; Pinnacle player props), each line it held is settled with its own closing price. An offer quoted only in play settles on the book’s live rules, with null closing_odds, closing_implied and closing_ts. offer_key matches the offer’s rows in sportsbook-lines and, for a selection quoted on one line before the start, its sportsbook-closing-lines row.

Terminal window
curl -s "https://api.betflux.ai/v1/games/MLB_BOS_NYY_20260715/sportsbook-market-results" \
-H "Authorization: Bearer $BETFLUX_API_KEY" -o results.parquet

One Parquet file per game. The CLI/SDK also accept a date range and filter locally (--operator, --market-type, --team, --side, --outcome):

Terminal window
betflux get sportsbook-market-results --league MLB \
--date-from 2026-07-01 --date-to 2026-07-07 --outcome WON

NCAAM and NCAAF files are available. Their stats feeds supply box-score facts, including final scores and period totals, but no play-by-play. Full-game player props can use available box totals; period player props and questions about drive or scoring order need evidence these feeds do not supply. Missing facts and questions requiring unavailable play evidence remain INDETERMINATE. A game whose final box score the stats provider is still reviewing settles nothing: every market is INDETERMINATE until the review is done, and the game is rebuilt then. College football games can stay in review for weeks. College overtime and operator-specific settlement coverage have not been comprehensively verified; the documented NBA/NFL second-half overtime policy does not establish a NCAAM or NCAAF policy. Provider finality and historical fact gaps also remain validation limits. Treat file availability separately from a promise that every selection can be settled.

  • outcome is one of:

    • WON / LOST: settled against the result.
    • PUSH: the bet had action and the stake is returned (the value landed on a whole-number line, or a two-way market ended level).
    • VOID: the bet never had action and the stake is returned (for example, a player who did not take part).
    • PARTIAL: part of the stake won or was returned (a dead heat, a split line); read the stake fractions.
    • INDETERMINATE: we cannot settle it from the sources we trust.

    Settlement never guesses: every outcome but INDETERMINATE is produced from a concrete fact traced to an authoritative source (box scores, play-by-play, or the official score); anything the sources can’t answer exactly is INDETERMINATE rather than a coin flip.

  • stake_won_fraction is the share of the stake settled as a win at the quoted price, and stake_refunded_fraction the share returned: 1/0 for WON, 0/0 for LOST, 0/1 for PUSH and VOID. A bet’s return is stake × (stake_won_fraction × decimal_odds + stake_refunded_fraction). Both are null on INDETERMINATE rows.

  • settlement_rule names the term that decided the outcome: result (the ordinary result), tie, no_winner (nobody reached a race-to target), player_dnp, and, as more venue rules are applied, dead_heat, split_line, not_started, early_exit, game_incomplete, period_incomplete, market_void, fair_price, operator_result.

  • settlement_source is derived (BetFlux settled it from official game facts) or operator_reported (the operator’s own result).

  • The outcome model starts at dataset_version v10. Games built at earlier versions keep their earlier outcomes (a void appears as INDETERMINATE, the new columns are null) until they are rebuilt.

  • settled_value is the concrete value the outcome was computed from (the player’s points, the final total, …) for numeric questions; settled_value_bool (1/0) is set instead for yes/no questions. Both are null on INDETERMINATE rows.

  • closing_odds / closing_implied / closing_ts come from the latest eligible quote strictly before game_start, using the same active-status, valid-price, and recognized-market completeness rules as sportsbook-closing-lines. Both market and selection must be explicitly active. The quote’s price, threshold and timestamp stay together; a later suspension does not replace an eligible quote.

  • All three closing fields are null when no eligible pre-game quote exists, including live-only, all-suspended, or missing-status histories. The row remains present; settlement still depends on a supported selection and sufficient result evidence. Exclude null closing_odds from closing-price ROI calculations.

  • From dataset_version v8, a book with no observation for the game in the 24 hours before game_start has no closing fields, as in sportsbook-closing-lines: its last quote is stale, not a close. Its selections are still settled.

  • From dataset_version v9, that test is per operator event, so a book’s deleted and relisted event for one game no longer lets the old event’s quote close (sportsbook-closing-lines).

  • settled_at timestamps the settlement run.

  • From dataset_version v11, each book’s own settlement rules apply where books differ:

    • Player props are VOID (player_dnp) when the player did not take part: absent from the complete final box score, or no minutes, snaps, time on ice or plate appearances and no recorded stat. A book’s start rule makes a non-starter VOID (not_started): MLB starters and pitchers, FanDuel home runs since its 2026 starting-lineup rule. Earlier versions settle these on the zero, or leave them INDETERMINATE.
    • DraftKings MLB: a starting pitcher who faced fewer than 5 batters, or a starting batter with fewer than 2 plate appearances, voids the Over (early_exit); the Under stands. DraftKings’ basketball and football injury exit is not applied: it needs an official injury statement we do not have, so those Overs settle on the player’s stats.
    • MLB full-game markets need the book’s game length (5 innings for moneylines, 9 for totals, run lines and props, with the home-leading half inning). A game cut short is VOID (game_incomplete), except a total already passed where the book lets it stand.
    • Second halves include overtime, college included. Fourth quarters follow each book’s rule. Full-game three-way moneylines and FanDuel NBA team three-pointers count regulation only.
    • A race-to that nobody reaches follows the book (no_winner): DraftKings basketball LOST, DraftKings elsewhere PUSH, BetMGM singles VOID.
    • Pinnacle quarter lines (x.25, x.75) are two half stakes on the neighbouring lines: PARTIAL (split_line) when the halves differ.
    • A market that closed pregame settles on the book’s pregame rules. Where a book’s rules do not say how a case settles, or settle singles and parlay legs differently, the selection is INDETERMINATE.

    Windows needing unavailable overtime timing or incomplete scoring evidence stay INDETERMINATE.

  • From dataset_version v12:

    • Tied leaders in a player most-stat market are PARTIAL (dead_heat), by the book’s rule. Most books pay 1/n of the stake at full odds and lose the rest. DraftKings pays 1/n at full odds and returns the rest. A tie in a two-selection market stayed INDETERMINATE until v13.
    • A listed player who did not take part is VOID. DraftKings voids the whole most-stat market when a player still listed at the close did not (market_void). A player pulled earlier voids only his own selection.
    • First-basket and first-field-goal nonstarters are VOID (not_started), and the rest of the field settles.
    • In a “both halves” or “all quarters” market, a half or quarter landing on the line loses the bet.
    • In method-of-score markets, a first score of a method nobody listed loses the listed methods, and “Other” loses when nothing was scored.
  • From dataset_version v13:

    • A DraftKings tie between the two selections of a two-selection market is a PUSH.
    • Rows carry outcome_key and settlement_key (Comparing venues).
  • market_key is OPERATOR:market_external_id, the same market key sportsbook-closing-lines and sportsbook-lines carry; use it for market-level joins. To match a result to its closing line, join on offer_key, never on (game_id, market_key, selection_external_id): from v17 a row is one offer, and a selection id on which the book moved the line has a result per line it held, so the selection id pairs a close at one line with a result at another. A sportsbook-closing-lines row exists only for a selection quoted on one line before game_start (from sportsbook-closing-lines v15), and selections first listed at or after game_start (live-only, null closing fields) have none from sportsbook-closing-lines v6; join with a LEFT JOIN when you need those results. Games built before v16 carry no offer_key.

  • side is a list column (a selection can carry multiple side tokens); the SDK’s side filter does membership matching.

The nullable close is the v3 sportsbook-market-results contract. Historical v2 artifacts could fall back to a live observation when no pre-game quote existed, placing a timestamp at or after game_start in these pre-game fields. During the rebuild and serving cutover, apply closing_ts < game_start when reading v2 data; once v3 or later is served, the equivalent live-only rows have all three closing fields null.

The v4 rebuild retains the v3 nullable-close contract and adds these overtime and tied-leader corrections, plus the MLB eligibility checks above. Earlier artifact versions require rebuilding; changing a client-side filter cannot repair their settlement outcomes.

ColumnTypeNullableDescription
game_idstringno
leaguestringno
game_datestringnoCalendar date (Parquet date, YYYY-MM-DD).
game_startstringnoUTC timestamp (Parquet timestamptz).
home_teamstringno
away_teamstringno
operatorstringno
market_external_idstringno
market_typestringnoMarket type, e.g. SPREAD, MONEYLINE, TOTAL, PLAYER_METRIC_OVER_UNDER.
periodstringno
structurestringno
market_namestringno
selection_external_idstringnoOperator's selection id. From v17 a row is one offer (`offer_key`: this id at one line), so an id on which the book moved the line (FanDuel, Pinnacle player props) carries a row per line it held. Before v17 it was one row, at the line of its close.
selection_namestringyes
sidestring[]yes
spreadnumberyes
totalnumberyes
market_metricstring[]yes
selection_metricstringyes
market_player_idsstring[]yes
selection_player_idsstring[]yes
closing_oddsintegeryesAmerican odds of the last eligible active quote strictly before game_start; null when no eligible pre-game quote exists.
closing_impliednumberyesImplied probability (vig included, 0-1) of the last eligible active quote strictly before game_start; null when no eligible pre-game quote exists.
closing_tsstringyesTimestamp of the last eligible active quote strictly before game_start; null when no eligible pre-game quote exists.
outcomestringnoWON, LOST, PUSH (the bet had action; stake returned), VOID (the bet never had action, e.g. the player did not take part; stake returned), PARTIAL (part won or refunded, see the stake fractions), or INDETERMINATE (we cannot settle it). From v12, tied leaders in a most-of market are PARTIAL (settlement_rule dead_heat) by the book's dead-heat rule, and from v13 a DraftKings tie between the two selections of a two-selection market is a PUSH; a tie the book's rules do not settle stays INDETERMINATE.
settled_valuenumberyes
settled_value_boolintegeryes
graded_atstringnoDeprecated: the same value as settled_at. Will be removed in a future breaking version.
market_keystringnoGlobal market identity: `OPERATOR:market_external_id` — the operator code plus the operator's own market id. Join key across sportsbook-closing-lines, sportsbook-market-results and sportsbook-lines.
is_mainlinebooleanyesTrue when the settled selection belongs to the operator's primary (non-alternate) full-game spread, moneyline or total at its closing quote. Period lines, team totals and props are false. Null on games built before v5.
settled_atstringyesWhen the row was settled. Null on games built before v10 (use graded_at there).
stake_won_fractionnumberyesShare of the stake settled as a win at the quoted price: 1 for WON, 0 for LOST, PUSH and VOID, between for PARTIAL. Null when INDETERMINATE and on games built before v10.
stake_refunded_fractionnumberyesShare of the stake returned: 1 for PUSH and VOID, 0 for WON and LOST, between for PARTIAL. Null when INDETERMINATE and on games built before v10.
settlement_rulestringyesWhich settlement term decided the outcome: result, tie, no_winner, player_dnp, dead_heat, split_line, not_started, early_exit, game_incomplete, period_incomplete, market_void, fair_price, operator_result. Null when INDETERMINATE and on games built before v10.
settlement_sourcestringyesWho determined the result: derived (BetFlux, from official game facts) or operator_reported. Null when INDETERMINATE and on games built before v10.
outcome_keystringyesSame-result key: a 16-character hash shared by every quote, at any book or exchange, that pays on the same game result (same game, player or team, stat, period, clock window, and the range in outcome_min, outcome_max and outcome_push, or the parity in outcome_parity). Null for markets without a single range of results: either-team margin bands, quarter lines (x.25, x.75), Tie No, and first-scorer, most-of, race-to and method markets. Null on games built before v13.
settlement_keystringyesSame-price key: outcome_key plus the venue's rules for the unusual cases that can change this bet (overtime, a player who does not take part, a shortened game, a result on the line), read for a straight bet at the time of the quote. Quotes sharing it are the same contract, so their prices compare directly. Null when outcome_key is null, when a rule it needs is not stated (terms_status unknown), and for venues without registered rules. Null on games built before v13.
outcome_minnumberyesThe lowest result that wins, in whole steps of the stat: Over 25.5 is 26. For moneylines, spreads and winning margins the result is the score margin between the game's two teams, ordered by team id. For overtime markets the result is the number of overtime periods (extra innings in MLB) played: 'reaches overtime' Yes is 1, No has outcome_max 0. Null when unbounded below or unkeyed.
outcome_maxnumberyesThe highest result that wins, as outcome_min. Null when unbounded above or unkeyed.
outcome_pushnumberyesThe result that neither wins nor loses: a whole-number line, or a level score on a two-way moneyline. Null when there is none.
terms_statusstringyesHow the rules in settlement_key are known: verified (the venue's own text), inferred (a general clause or other venues' text), unknown (a needed rule is not stated; settlement_key is null). Null on games built before v13.
outcome_paritystringyesFor odd/even markets, the result that wins: odd or even, on the game's combined score or the one team's score (0 counts as even). outcome_min, outcome_max and outcome_push are then null. Null for every other market and when unkeyed. Null on games built before v15.
offer_keystringyesSame-offer key: a 16-character hash of market_key, selection_external_id and the line the venue quoted (its own line field, else spread, else total), so it names one bet at one line at one venue. Some books keep a selection id while the line moves under it (FanDuel main and period lines, team totals and player over/unders; Pinnacle player props); each line is then a new offer_key under one selection_external_id. From v17 each row is one offer, and this joins it to sportsbook-lines, and to sportsbook-closing-lines for a selection quoted on one line before game_start. In v16 it is the settled quote's offer: the closing quote, or the last one for a selection quoted only in-game. Null on games built before v16.
dataset_versionstringyesVersion of the dataset this game's file was built at, e.g. `v5`. Games in one pull can differ: versions of a compatibility line only add columns or carry documented changes (see `versions` on /v1/datasets). Columns added after a game's version read null for it. Files built before this column existed lack it entirely (null when read with DuckDB `union_by_name = true`); the `X-Betflux-Dataset-Version` response header still names their version.