CS2 closing odds are the last pre-match prices I recorded for a selection. Once a match is over, they let you compare what the market expected with the result. I started saving them in CS2Odds, a free passion project of mine. This Python walkthrough uses historical odds from 125 finished matches and 1,468 bookmaker-side quotes to count favourite wins and check how one finalist’s price moved before kickoff.
Start with the match as the unit of analysis
Download matches.csv and series-winner-quotes.csv to the same directory. The first table has one row per finished match. The second has a row per bookmaker market and side. They share match_slug. If you join the files and then count winners without grouping, each match gets counted as many times as it has quote rows. Versioned CSVs, schema and CC BY 4.0 licence
The match table’s favorite_side field identifies the team with the shorter of the two leading closing prices. The favorite_won field records whether that team won. The leading price for each side comes from the highest verified close, with the highest last-recorded pre-start price as a fallback. The two prices can come from different books.
import csv
from collections import defaultdict
from datetime import datetime
def read_csv(path):
with open(path, newline="", encoding="utf-8") as file:
return list(csv.DictReader(file))
matches = read_csv("matches.csv")
quotes = read_csv("series-winner-quotes.csv")
matches_by_slug = {row["match_slug"]: row for row in matches}
assert len(matches_by_slug) == len(matches)
counts = defaultdict(lambda: [0, 0])
for match in matches:
if match["favorite_won"] in {"0", "1"}:
result = match["favorite_won"]
total = counts[match["tournament"]]
total[0] += int(result)
total[1] += 1
for event, (wins, matches_with_a_favourite) in sorted(counts.items()):
print(f"{event}: {wins}/{matches_with_a_favourite}")
wins = sum(wins for wins, _ in counts.values())
total = sum(total for _, total in counts.values())
print(f"All events: {wins}/{total} ({wins / total:.1%})")
I get 77/125 (61.6%). The four counts are 8/13 for BLAST Rivals Fall, 28/41 for ESL Pro League Season 24, 18/30 for IEM Beijing and 23/41 for PGL Masters Bucharest.
Look up a finished match and keep the quote cutoff
Take the BLAST Rivals Fall 2026 final. FURIA won 3-0. The match table gives the leading closing prices of 1.67 for Team Spirit and 2.35 for FURIA. To find how one team’s price moved, use one bookmaker-side row, which already pairs its opening and closing prices. The finished Spirit vs FURIA match
Run this below the first block. It picks the longest closing price available for Spirit in this match and prints that same row’s opening price. It also verifies that both observations preceded the file’s cutoff for the quote.
def instant(value):
return datetime.fromisoformat(value.replace("Z", "+00:00"))
slug = "team-spirit-vs-furia-2026-11-15-blast-rivals-fall-2026"
match = matches_by_slug[slug]
spirit_quotes = []
for quote in quotes:
if quote["match_slug"] != slug or quote["team"] != "Team Spirit":
continue
opening = quote["opening_observed_at_utc"]
closing = quote["final_prestart_observed_at_utc"]
cutoff = quote["quote_cutoff_at_utc"]
if opening and closing and cutoff:
if instant(opening) <= instant(closing) < instant(cutoff):
spirit_quotes.append(quote)
row = max(spirit_quotes, key=lambda quote: float(quote["final_prestart_decimal_odds"]))
print(f"Winner: {match['winner']}")
print(f"Price: {row['opening_decimal_odds']} -> {row['final_prestart_decimal_odds']}")
print(f"Recorded changes: {row['recorded_price_change_count']}")
The output is FURIA as winner, 1.70 to 1.67 for Spirit at the same book, and nine recorded changes. In the release, the two price observations are around 14:38 UTC on 14 November and 07:08 UTC on 15 November. The quote cutoff is 08:00 UTC on 15 November. This is the opening and closing comparison, with a count of the changes. The CSV also gives the last observed change where usable.
For a bookmaker-level comparison of the two teams, group rows by the match, bookmaker and market ID, then require both team sides. Leave blank movement fields as missing. Check how far the closing observation was from the cutoff if you’re using it as a feature in a model. The release includes the timestamps and quality fields for that.
If you build something with these files, please credit CS2Odds and link to the data. I’d love to see what you make.
Jack
Top comments (0)