Real-Time Odds Aggregation Platform
Building the Bloomberg Terminal for prediction markets
The core Hunch platform — a real-time odds aggregation system that syncs data from multiple prediction market sources, maintains historical price data, and serves live updates to thousands of concurrent users.
The Challenge
Prediction markets are fragmented across multiple platforms with different APIs, data formats, and update frequencies. Users had no single source of truth for market probabilities. We needed to build infrastructure that could aggregate, normalize, and serve this data in real-time at scale.
Our Approach
- Architected a multi-source ingestion pipeline with configurable sync intervals
- Built a time-series storage system for historical price data with efficient querying
- Developed a category classification engine using keyword matching and AI verification
- Implemented server-side background sync with client-side polling for live updates
- Created a comprehensive API layer using tRPC for type-safe client-server communication
The Solution
The platform syncs 200+ markets every 5 minutes from Polymarket's Gamma API, storing price history, computing 24-hour changes, and categorizing markets into 7 categories. The frontend polls for updates every 60 seconds, showing live probability changes in a Bloomberg-style ticker. Historical data powers sparkline charts, trend analysis, and the 'Biggest Movers' leaderboard.
Results
- 99.97% uptime over 6 months of continuous operation
- 2M+ historical data points stored and queryable in under 100ms
- 5K+ concurrent users during peak events with zero degradation
- 5-minute sync frequency ensures data freshness across all markets
- Sub-second page loads through code splitting and optimized queries
Tech Stack
"Hunch is what I wished Bloomberg had for prediction markets. Everything in one place, always up to date, beautifully designed."