Work / 05
EN Line
EN Line is a sports-betting analytics app. It models NFL, NBA, NCAAF and EPL player props and totals, and tracks every bet in a live ledger that logs, grades and analyzes it. You log a bet by uploading a screenshot of the sportsbook slip.
The problem
Bet tracking was manual and scattered, and there was no data-driven edge. A model is only as useful as the record of what it predicted and what happened. The scheduled jobs that kept odds current ran locally on a Mac, so they stopped whenever the Mac did.
The constraint
Logging has to take less effort than skipping it. If recording a bet means retyping a slip, it won’t happen. The data feeding the models also has to be visibly fresh, because stale odds produce confident wrong answers.
What I built
- Models. Python models for NFL, NBA, NCAAF and EPL player props and totals.
- Evaluation that can’t cheat. Walk-forward only, with strictly chronological splits and an embargo gap. Form, usage and prices are autocorrelated, so random k-fold would let the model see the future. The harness reports log loss, simulated ROI and closing-line value instead of accuracy, because a calibrated model that never disagrees with the book places zero bets.
- Odds math under test. Vig removal, per-market break-even, EV and Kelly sit in one small module with its own test suite. It checks that devigged probabilities sum to one, that the splits are chronological, and that a market-only baseline reproduces the market.
- Scheduling. Odds capture (ESPN and odds APIs) and daily health checks run in GitHub Actions.
- Ledger. A web app on Vercel with a Supabase backend (Postgres, realtime, storage). Bets are graded in real time and filterable by open, settled and trend.
- Screenshot intake. Upload a sportsbook slip, and the Claude API reads it into the ledger.
Results
- 52+ bets logged.
- Local jobs fully moved to the cloud. Logging and odds capture run with no manual work.
- Daily health alerts catch stale data.
The case that proves it
In one day, 41 bets went from FanDuel screenshots into the ledger, which can be filtered by open bets, settled bets, and trends.