Skip to content
Product Documentation

prediction-market-results

The exchange counterpart of sportsbook-market-results: one row per side of every classified contract on a game, with its outcome and its closing prices. Roughly 100 to 2,000 rows per game.

Terminal window
betflux get prediction-market-results --game NBA_LAL_DET_20261108 --outcome WON
rows = bf.prediction_market_results.rows(
league="NFL", date_from="2026-11-01", date_to="2026-11-10", operator="POLYMARKET",
)

An exchange settles its own contracts, so the outcome comes from the exchange’s reported payout rather than from the game’s box score:

Payout per $1 contract outcome
1 WON
0 LOST
between 0 and 1 (a fair-price or 50-50 settlement) PARTIAL
not reported yet INDETERMINATE
  • stake_won_fraction is the payout itself, so a PARTIAL row says how much it paid. stake_refunded_fraction is always 0: an exchange pays out, it does not refund.
  • settlement_rule is operator_result, or fair_price for a Kalshi contract settled at its fair price. settlement_source is always operator_reported.
  • The exchange’s own fields ride along: payout, exchange_result (Kalshi), resolution_status and fallback_resolution_type (Polymarket) and exchange_settled_at.
  • An INDETERMINATE row is retried, and the game rebuilt, once the exchange settles the contract.

The closing columns (closing_odds, closing_implied, closing_mid, closing_microprice, closing_ts) are the close from prediction-market-closing-lines, null when the contract never had an executable quote before the start.

ColumnTypeNullableDescription
game_idstringno
leaguestringno
game_datestringnoCalendar date (Parquet date, YYYY-MM-DD).
game_startstringnoUTC timestamp (Parquet timestamptz).
home_teamstringyes
away_teamstringyes
operatorstringnoExchange code: KALSHI or POLYMARKET.
operator_event_idstringyesThe exchange event the binding names: the Kalshi game-winner ticker or the Polymarket event slug.
market_external_idstringnoKalshi contract ticker, or Polymarket condition id (`0x…`).
operator_market_typestringyes
operator_categorystringyesThe prediction-market family id the contract was classified under, e.g. `kalshi/NBA:1Q`.
market_typestringnoMarket type, classified as sportsbook-market-results classifies a book's market.
periodstringno
structurestringno
market_namestringyes
selection_external_idstringnoKalshi `<ticker>:yes` or `<ticker>:no`; Polymarket the outcome token id.
selection_namestringyes
sidestring[]yes
spreadnumberyes
totalnumberyes
market_metricstring[]yes
selection_metricstringyes
market_player_idsstring[]yes
selection_player_idsstring[]yes
market_team_idsstring[]yes
selection_team_idsstring[]yes
market_min_amountnumberyes
market_max_amountnumberyes
selection_min_amountnumberyes
selection_max_amountnumberyes
closing_oddsintegeryesAmerican form of the closing all-in price: the last executable quote before game_start; null when the contract never had one.
closing_impliednumberyesAll-in cost of one contract at the close: ask plus taker_fee.
closing_tsstringyesUTC timestamp (Parquet timestamptz).
closing_midnumberyes(bid + ask) / 2 of the closing book; null without a two-sided book.
closing_micropricenumberyesSize-weighted mid of the closing book; null without both sizes.
outcomestringnoWON, LOST or PARTIAL from the exchange's payout; INDETERMINATE when the exchange has not settled the contract.
settled_valuenumberyesThe payout the outcome was settled from, dollars per $1 contract.
settled_value_boolintegeryes
settled_atstringnoWhen this row was settled.
stake_won_fractionnumberyesThe exchange's payout per $1 contract: 1 won, 0 lost, between for a fair-price or 50-50 settlement.
stake_refunded_fractionnumberyesAlways 0: an exchange pays out, it does not refund.
settlement_rulestringyesoperator_result, or fair_price for a Kalshi contract settled at its fair price (`result` scalar).
settlement_sourcestringyesAlways operator_reported: the exchange's own settlement.
payoutnumberyesThe exchange's settlement value for this selection, dollars per $1 contract; null until settled.
exchange_resultstringyesKalshi `result` as reported (yes, no, scalar); null on Polymarket.
resolution_statusstringyesPolymarket UMA resolution status as reported; null on Kalshi.
fallback_resolution_typestringyesPolymarket fallback rule as reported, e.g. equal_split.
exchange_settled_atstringyesWhen the exchange settled the contract.
market_keystringnoGlobal market identity: `OPERATOR:market_external_id`, as in the sportsbook datasets.
is_mainlinebooleanyesThe closing quote's main-line flag, as prediction-market-lines sets it.
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 v2.
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 v2.
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 v2.
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 v5.
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. Null on games built before v6.
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.