Datasets:
|
Download README.md from odds-api-io/historical-closing-odds-sample: direct link, hf CLI and curl.
- Browser
- Download file 11 kB
-
https://huggingface.co/datasets/odds-api-io/historical-closing-odds-sample/resolve/main/README.md
- Command line
-
hf download hf://datasets/odds-api-io/historical-closing-odds-sample/README.md
-
curl -L -o README.md https://huggingface.co/datasets/odds-api-io/historical-closing-odds-sample/resolve/main/README.md
11 kB
| license: cc-by-4.0 | |
| pretty_name: "Historical Closing Odds Sample: Premier League, NBA and NHL 2025-26" | |
| language: | |
| - en | |
| tags: | |
| - sports | |
| - sports-betting | |
| - betting-odds | |
| - closing-odds | |
| - closing-line-value | |
| - football | |
| - soccer | |
| - premier-league | |
| - nba | |
| - basketball | |
| - nhl | |
| - ice-hockey | |
| - sports-analytics | |
| - tabular | |
| task_categories: | |
| - tabular-classification | |
| - tabular-regression | |
| size_categories: | |
| - 10K<n<100K | |
| configs: | |
| - config_name: closing_odds | |
| default: true | |
| data_files: | |
| - split: train | |
| path: closing_odds.parquet | |
| - config_name: events | |
| data_files: | |
| - split: train | |
| path: events.parquet | |
| dataset_info: | |
| - config_name: closing_odds | |
| features: | |
| - name: event_id | |
| dtype: int64 | |
| - name: sport | |
| dtype: string | |
| - name: league | |
| dtype: string | |
| - name: league_slug | |
| dtype: string | |
| - name: season | |
| dtype: string | |
| - name: kickoff_utc | |
| dtype: string | |
| - name: home_team | |
| dtype: string | |
| - name: away_team | |
| dtype: string | |
| - name: home_score | |
| dtype: int64 | |
| - name: away_score | |
| dtype: int64 | |
| - name: result | |
| dtype: string | |
| - name: bookmaker | |
| dtype: string | |
| - name: market | |
| dtype: string | |
| - name: line | |
| dtype: float64 | |
| - name: price_home | |
| dtype: float64 | |
| - name: price_draw | |
| dtype: float64 | |
| - name: price_away | |
| dtype: float64 | |
| - name: price_over | |
| dtype: float64 | |
| - name: price_under | |
| dtype: float64 | |
| splits: | |
| - name: train | |
| num_examples: 51866 | |
| - config_name: events | |
| features: | |
| - name: event_id | |
| dtype: int64 | |
| - name: sport | |
| dtype: string | |
| - name: league | |
| dtype: string | |
| - name: league_slug | |
| dtype: string | |
| - name: season | |
| dtype: string | |
| - name: kickoff_utc | |
| dtype: string | |
| - name: home_team | |
| dtype: string | |
| - name: away_team | |
| dtype: string | |
| - name: home_score | |
| dtype: int64 | |
| - name: away_score | |
| dtype: int64 | |
| - name: home_score_regulation | |
| dtype: int64 | |
| - name: away_score_regulation | |
| dtype: int64 | |
| - name: overtime | |
| dtype: bool | |
| - name: shootout | |
| dtype: bool | |
| - name: result | |
| dtype: string | |
| splits: | |
| - name: train | |
| num_examples: 2123 | |
| # Historical Closing Odds Sample: Premier League, NBA and NHL 2025-26 | |
| Closing odds from 11 bookmakers for 2,123 matches in the English Premier League, the NBA and the NHL, with final scores. Each row is one bookmaker's last pre-match price for one market: match result (ML), the main totals line, and the main spread or handicap line. | |
| This is a free sample of the historical odds archive from [Odds-API.io](https://odds-api.io/historical-odds-api). The full archive, with 450+ bookmakers and many more sports, leagues and markets, is available through the [Odds-API.io historical odds API](https://odds-api.io/historical-odds-api) ([documentation](https://docs.odds-api.io)). | |
| ## At a glance | |
| | | | | |
| |---|---| | |
| | Leagues | English Premier League, NBA, NHL | | |
| | Season | 2025-26 | | |
| | Period covered | 8 December 2025 to 15 June 2026 (end of each season, playoffs included) | | |
| | Matches | 2,123 (Premier League 231, NBA 963, NHL 929) | | |
| | Odds rows | 51,866 | | |
| | Bookmakers | 11: 1xbet, 888Sport, Bet365, Betano, CloudBet, DraftKings, eFortuna PL, FanDuel, Norsk Tipping, Stake, Superbet | | |
| | Markets | ML (1X2 for football, moneyline for NBA and NHL), Totals (main line), Spread (main line) | | |
| | Odds format | Decimal | | |
| | Time zone | UTC | | |
| | License | CC BY 4.0 (attribution required) | | |
| The sample starts on 8 December 2025 because that is where closing lines for these leagues begin in the archive, so the Premier League part covers matchdays 15 to 38 and the NBA and NHL parts cover the second half of the regular season plus the playoffs. | |
| ## Files | |
| | File | Rows | Size | Contents | | |
| |---|---|---|---| | |
| | `closing_odds.parquet` | 51,866 | 0.2 MB | One row per match, bookmaker and market, with match details and the final result | | |
| | `closing_odds.csv` | 51,866 | 7.3 MB | Same as above, CSV | | |
| | `events.parquet` | 2,123 | 0.05 MB | One row per match: kickoff, teams, final and regulation scores, overtime and shootout flags | | |
| | `events.csv` | 2,123 | 0.3 MB | Same as above, CSV | | |
| | `coverage.csv` | 11 | 1 KB | Share of matches each bookmaker covers, per league and market | | |
| | `DATA_DICTIONARY.md` | | | Every column, its type and its meaning | | |
| Join `closing_odds` to `events` on `event_id`. The `event_id` is the same id the Odds-API.io API uses, so you can fetch more markets or bookmakers for any match in this sample from the API. | |
| ## Quick start | |
| ```python | |
| import pandas as pd | |
| odds = pd.read_parquet("closing_odds.parquet") | |
| ml = odds[(odds.league == "NBA") & (odds.market == "ML")].copy() | |
| ml["implied_home"] = 1 / ml.price_home | |
| ml["implied_away"] = 1 / ml.price_away | |
| ml["overround"] = ml.implied_home + ml.implied_away | |
| print(ml.groupby("bookmaker").overround.median().sort_values()) | |
| ``` | |
| With the Hugging Face `datasets` library: | |
| ```python | |
| from datasets import load_dataset | |
| odds = load_dataset("odds-api-io/historical-closing-odds-sample", "closing_odds", split="train") | |
| events = load_dataset("odds-api-io/historical-closing-odds-sample", "events", split="train") | |
| ``` | |
| ## Markets | |
| | Market | Premier League | NBA | NHL | Price columns | | |
| |---|---|---|---|---| | |
| | `ML` | 1X2 after 90 minutes plus stoppage time | Moneyline, overtime included | Moneyline, overtime and shootout included | `price_home`, `price_draw` (football only), `price_away` | | |
| | `Totals` | Main goals line | Main points line | Main goals line | `price_over`, `price_under` | | |
| | `Spread` | Main Asian handicap line | Main point spread | Puck line (±1.5) | `price_home`, `price_away` | | |
| For `Totals` and `Spread`, the main line is the line whose two prices are closest to each other at that bookmaker. For the NHL the spread is always the ±1.5 puck line. `line` on a `Spread` row is the handicap applied to the home team, so `-1.5` means the home team gives 1.5. | |
| Closing odds are each bookmaker's last pre-match price before the scheduled start. | |
| ## Coverage by bookmaker | |
| Share of matches in each league that have a row for that bookmaker and market (%). | |
| | Bookmaker | EPL ML | EPL Spread | EPL Totals | NBA ML | NBA Spread | NBA Totals | NHL ML | NHL Spread | NHL Totals | Any market, all matches | | |
| |---|---|---|---|---|---|---|---|---|---|---| | |
| | DraftKings | 98.3 | 99.6 | 99.1 | 98.4 | 99.0 | 99.1 | 98.5 | 61.1 | 63.3 | 99.3 | | |
| | FanDuel | 94.8 | 0 | 69.7 | 99.1 | 94.5 | 0 | 99.8 | 0 | 0 | 99.2 | | |
| | Superbet | 97.4 | 97.4 | 97.4 | 99.1 | 99.3 | 99.3 | 99.4 | 0 | 0 | 99.1 | | |
| | Bet365 | 100 | 87.4 | 100 | 95.4 | 97.4 | 96.7 | 95.7 | 92.6 | 96.3 | 97.3 | | |
| | Betano | 98.3 | 0 | 94.8 | 99.4 | 50.1 | 98.9 | 32.0 | 0 | 93.6 | 97.0 | | |
| | eFortuna PL | 96.5 | 0 | 0 | 93.0 | 40.5 | 93.5 | 0 | 81.1 | 97.5 | 96.9 | | |
| | Stake | 81.4 | 81.0 | 81.0 | 94.4 | 94.8 | 74.2 | 94.2 | 69.0 | 70.0 | 93.4 | | |
| | 888Sport | 99.6 | 0 | 73.6 | 91.7 | 90.2 | 90.2 | 85.1 | 25.7 | 85.1 | 90.2 | | |
| | CloudBet | 99.6 | 99.6 | 99.6 | 80.3 | 98.8 | 98.8 | 75.1 | 73.6 | 75.1 | 88.5 | | |
| | Norsk Tipping | 99.1 | 0 | 99.1 | 96.9 | 97.4 | 97.3 | 72.4 | 71.8 | 72.8 | 86.9 | | |
| | 1xbet | 94.4 | 96.1 | 92.2 | 11.6 | 11.6 | 9.0 | 96.6 | 94.0 | 95.0 | 58.1 | | |
| The median match has ML prices from 10 bookmakers, and 89% of matches have ML prices from 8 or more. | |
| ## Quality checks | |
| Every row in this sample passed these checks: | |
| - No duplicate matches and no duplicate match, bookmaker and market rows. | |
| - Every price is above 1.01 in decimal odds. | |
| - The bookmaker margin (sum of implied probabilities) is between 0.995 and 1.25 for 1X2 and between 0.995 and 1.20 for two-way markets. The median is 1.04 to 1.06 depending on league and market. | |
| - Home and away prices agree with the other bookmakers' consensus for the same match, so no market is mirrored, and no ML price is more than 15 percentage points of implied probability away from that consensus. | |
| - Spread signs agree with the favourite, and main lines are close to the consensus line for the match. | |
| - Team names are consistent within each league (20 Premier League clubs, 30 NBA teams, 32 NHL teams). | |
| - Kickoff times are in UTC (ISO 8601 with a `Z` suffix). | |
| Where one bookmaker failed these checks on more than 5% of matches for a league and market, that whole league and market was left out for that bookmaker instead of keeping a partial series. That is why some cells in the coverage table are 0. Two NHL playoff matches whose final result could not be confirmed were removed. | |
| ## Results and scores | |
| - `home_score` and `away_score` are final scores. For the NBA and NHL they include overtime. NHL shootouts are not added to the score, so a match decided by a shootout shows a tied score with `shootout = true`; `result` still names the winner. | |
| - `home_score_regulation` and `away_score_regulation` (in `events`) are the scores after regulation time: 90 minutes, 48 minutes or 60 minutes. | |
| - `result` is `home`, `draw` or `away`. Draws only occur in the Premier League. For the NBA and NHL it is the winner of the match, which is what the ML market settles on. | |
| ## Use cases | |
| - Backtesting betting models and measuring closing line value (CLV) | |
| - Comparing bookmaker margins across leagues and markets | |
| - Building market-implied probabilities as features or as a baseline for forecasting models | |
| - Teaching probability and calibration with real market prices | |
| ## License and attribution | |
| This dataset is licensed under [Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/). You can share and adapt it for any purpose, including commercially, as long as you give credit. | |
| Please attribute it as: | |
| > Closing odds data from [Odds-API.io](https://odds-api.io/historical-odds-api), licensed under CC BY 4.0. | |
| In a paper or report, cite: | |
| ``` | |
| Odds-API.io (2026). Historical Closing Odds Sample: Premier League, NBA and NHL 2025-26. | |
| https://odds-api.io/historical-odds-api. Licensed under CC BY 4.0. | |
| ``` | |
| ## Full history through the API | |
| This sample covers three leagues, three markets and 11 bookmakers for part of one season. The [Odds-API.io historical odds API](https://odds-api.io/historical-odds-api) returns closing odds for every settled match across the sports and leagues we cover, from 450+ bookmakers, with many more markets (player props, period markets, alternative lines, corners, cards and more). See the [historical odds documentation](https://docs.odds-api.io) for the endpoints, and the [betting markets reference](https://odds-api.io/markets) and [bookmaker list](https://odds-api.io/sportsbooks) for what is covered. | |
| Bookmaker names are the bookmakers' trademarks and are used only to identify the source of each price. This dataset is not affiliated with or endorsed by any bookmaker or league. | |