About
Arbitrium is an independent auditor for two sports-pricing systems that never check each other's work.
Why it exists
Kalshi is a market; a sportsbook is a bookmaker. They price the same games from completely different mechanisms, and neither has any incentive to tell you when it disagrees with the other — or whether trusting it has historically paid off.
The interesting part was never picking winners. It was building something that grades its own accuracy honestly: reporting how often it was right, refusing to quote a rate before the sample supports one, and keeping a backtest visibly separate from a live record.
Most of the engineering effort went into the parts that make that possible — append-only history so closing-line value can be measured at all, a dedup trigger so a flat price isn't recorded as activity, and ingest monitoring that survives a crash loop.
Built with
- Ingestion
- Python, httpx, a plain polling loop — Kalshi and The Odds API on independent schedules
- Storage
- PostgreSQL, append-only snapshots with a dedup trigger
- API
- FastAPI
- Frontend
- Next.js App Router, TypeScript, Tailwind, TanStack Query, Recharts
Source
The code, the schema, and the reasoning behind each decision are on GitHub. The README covers the build order and what each phase deliberately left open.
↗ github.com/eshaan10/Arbitrium