Prediction-Market Aggregator
What it does
Pulls markets and order books from Kalshi and Polymarket and normalizes them into one venue-independent model. It classifies which contracts are economically the same bet, with a written definition and a contract diff, and simulates routing a hypothetical order with a plain-English explanation. No real orders are ever placed.
- Kalshi + Polymarketmarkets, order books
- Fetch every 2 minscheduler writes to Postgres
- Normalizeone venue-independent model
- Match contractssame bet, with a contract diff
- Simulate routingwhere an order would fill
Engineering notes
- A scheduler collects a fetch round every 2 minutes. Pages read only from the database, so serving a page makes zero venue API calls, and a test enforces that.
- Pairs come from a pinned round so the demo stays stable, and every price shows its age.
Tools
Go, Postgres, Docker, Google Cloud Run, Cloud SQL
