Hourly collector for season-long football odds, feeding the chart at markhaghani.com/odds.
collector.pypulls Premier League title and top-4 odds from Polymarket, gates each snapshot for quality (untraded books are flagged, never charted), stores everything indata/odds.sqlite, and exportsdata/epl.json..github/workflows/collect.ymlruns it hourly and commits the result.- The site fetches
data/epl.jsonfrom raw.githubusercontent.com at page load, so data updates without rebuilding the site.
EFL Championship promotion is planned via a Betfair adapter (Polymarket's promotion market is untraded - the book sums to ~11 against a target of 3).
- Bump
SEASONincollector.py. - Replace the
MARKETSslugs with the new season's Polymarket event slugs (search gamma-api/public-searchfor "EPL champion" etc). - Add promoted teams to
CANON- the collector fails loudly on unknown names. - Old rows keep their season tag; the export only serves the current season, so series from different seasons never join into one line.