historical-closing-odds-sample / DATA_DICTIONARY.md
odds-api-io's picture
Upload 8 files
7c36a9b verified
|
Raw History Blame Contribute Delete
5 kB
# Data dictionary
Historical Closing Odds Sample: Premier League, NBA and NHL 2025-26. Source: [Odds-API.io](https://odds-api.io/historical-odds-api), CC BY 4.0.
All times are UTC. All prices are decimal odds. Missing values are empty in CSV and null in Parquet.
## closing_odds (closing_odds.csv, closing_odds.parquet)
One row per match, bookmaker and market. 51,866 rows. Unique key: `event_id`, `bookmaker`, `market`.
| Column | Type | Example | Description |
|---|---|---|---|
| `event_id` | integer | 61300815 | Odds-API.io event id. Joins to `events.event_id` and works with the API's historical endpoints. |
| `sport` | string | Football | `Football`, `Basketball` or `Ice Hockey`. |
| `league` | string | England Premier League | `England Premier League`, `NBA` or `NHL`. |
| `league_slug` | string | england-premier-league | League slug as used by the API (`england-premier-league`, `usa-nba`, `usa-nhl`). |
| `season` | string | 2025-26 | Season label. |
| `kickoff_utc` | string (ISO 8601) | 2025-12-13T20:00:00Z | Scheduled start time in UTC. |
| `home_team` | string | Arsenal FC | Home team. Names are consistent across the whole file. |
| `away_team` | string | Wolverhampton Wanderers | Away team. |
| `home_score` | integer | 2 | Final home score. NBA and NHL include overtime; NHL shootout goals are not included. |
| `away_score` | integer | 1 | Final away score, same rules as `home_score`. |
| `result` | string | home | Match winner: `home`, `draw` or `away`. `draw` only occurs in the Premier League. NHL shootout winners are counted as the winner. |
| `bookmaker` | string | Bet365 | Bookmaker name, exactly as the API names it. |
| `market` | string | ML | `ML`, `Totals` or `Spread`. See the market table below. |
| `line` | float | -2.25 | Empty for `ML`. For `Totals`, the total (goals or points). For `Spread`, the handicap applied to the home team: negative means the home team gives that many. |
| `price_home` | float | 1.125 | Price on the home team. `ML` and `Spread` rows. |
| `price_draw` | float | 9.0 | Price on the draw. Premier League `ML` rows only. |
| `price_away` | float | 21.0 | Price on the away team. `ML` and `Spread` rows. |
| `price_over` | float | 1.9 | Price on over `line`. `Totals` rows only. |
| `price_under` | float | 1.95 | Price on under `line`. `Totals` rows only. |
### Markets
| `market` | Premier League | NBA | NHL |
|---|---|---|---|
| `ML` | 1X2 at full time (90 minutes plus stoppage time) | Moneyline including overtime | Moneyline including overtime and shootout |
| `Totals` | Main total goals line | Main total points line | Main total goals line |
| `Spread` | Main Asian handicap line | Main point spread | Puck line, ±1.5 |
The main line is the line on which the bookmaker's two prices are closest to each other. NHL spread rows always use the ±1.5 puck line. How a shootout counts towards NHL totals and the puck line differs between bookmakers, so the `events` file gives regulation scores, final scores and a `shootout` flag to apply the rule you need.
Closing odds are each bookmaker's last pre-match price before the scheduled start.
## events (events.csv, events.parquet)
One row per match. 2,123 rows. Unique key: `event_id`.
| Column | Type | Example | Description |
|---|---|---|---|
| `event_id` | integer | 61300815 | Odds-API.io event id. |
| `sport` | string | Football | Sport. |
| `league` | string | England Premier League | League. |
| `league_slug` | string | england-premier-league | League slug as used by the API. |
| `season` | string | 2025-26 | Season label. |
| `kickoff_utc` | string (ISO 8601) | 2025-12-13T20:00:00Z | Scheduled start time in UTC. |
| `home_team` | string | Arsenal FC | Home team. |
| `away_team` | string | Wolverhampton Wanderers | Away team. |
| `home_score` | integer | 2 | Final home score (overtime included for NBA and NHL, shootout goals not included). |
| `away_score` | integer | 1 | Final away score. |
| `home_score_regulation` | integer, nullable | 2 | Home score at the end of regulation: 90 minutes, 4 quarters or 3 periods. Empty for 19 NHL matches where the period breakdown is incomplete. |
| `away_score_regulation` | integer, nullable | 1 | Away score at the end of regulation. |
| `overtime` | boolean | False | True if an NBA or NHL match went to overtime. Always false for the Premier League. |
| `shootout` | boolean | False | True if an NHL match was decided by a shootout. |
| `result` | string | home | `home`, `draw` or `away`, as in `closing_odds`. |
## coverage.csv
Share of matches (%) with a row for each bookmaker, per league and market, plus `any_market_all_leagues`, the share of all 2,123 matches that have at least one row from that bookmaker.
## Period covered
| League | First match | Last match | Matches |
|---|---|---|---|
| England Premier League | 2025-12-08 | 2026-05-24 | 231 |
| NBA (regular season and playoffs) | 2025-12-09 | 2026-06-14 | 963 |
| NHL (regular season and playoffs) | 2025-12-09 | 2026-06-15 | 929 |