Educational Prediction Market Visualization with AI-Powered Learning
Prediction markets are powerful but intimidating. Users see "$0.65 for YES" without understanding risk, profit potential, or position sizing. We fix that.
Roly Poly makes prediction markets intuitive through 3D visualization and AI explanations. Explore real Polymarket data, adjust sliders, and instantly see outcomes. Poly, our AI guide, explains each section as you scroll. No trading, no risk—just learning.
| Feature | Description |
|---|---|
| 3D Risk Visualization | Interactive cube showing P10/P50/P90 outcomes in real-time |
| Live Market Data | WebSocket-powered real-time Polymarket prices |
| AI Explanations | What happened, why it matters, what to do next |
| Poly Avatar | Scroll-triggered educational hints with voice |
| Advanced Metrics | Kelly Criterion, Sharpe Ratio, VaR, EV calculations |
| Decision Workflow | Structured numeric reasoning for market decisions |
| Sponsor | Integration | Results |
|---|---|---|
| Arize Phoenix | LLM tracing + evaluation | +147% quality improvement via automated feedback loop |
| Token Company | Context compression | 40%+ prompt reduction, lower API costs |
| Wood Wide AI | Numeric reasoning | Kelly/Sharpe/VaR calculations, structured outputs |
| DevSwarm | Agent orchestration | 4-agent pipeline with timing visualization |
# Backend
cd backend && pip install -r requirements.txt && uvicorn main:app --reload
# Frontend
cd nexhacks && npm install && npm run dev- Dashboard - Browse live Polymarket data
- Select Market - Enter interactive Sandbox
- Meet Poly - AI avatar greets and guides you
- Adjust Sliders - Watch 3D visualization update
- Read Explanations - Understand EV, risk, recommendations
- View Metrics - Phoenix traces, compression stats, evaluation scores
Frontend (Vite + React 19 + Three.js)
│
▼
Backend (FastAPI)
├── /markets, /clob → Polymarket data
├── /sandbox → Risk calculations
└── /explain → AI explanations
│
├── Phoenix (tracing)
├── Token Company (compression)
├── Wood Wide AI (reasoning)
└── DevSwarm (agents)
│
▼
Supabase + Polymarket APIs (WebSocket)
| Layer | Stack |
|---|---|
| Frontend | Vite 7, React 19, TypeScript, TanStack, Zustand |
| 3D | Three.js, React Three Fiber, Recharts |
| Styling | Tailwind CSS 4, Framer Motion |
| Backend | FastAPI, Supabase, OpenTelemetry |
Automated LLM evaluation workflow showing before/after metrics:
| Metric | Baseline | Improved | Delta |
|---|---|---|---|
| Overall | 0.42 | 0.78 | +86% |
| Completeness | 0.35 | 0.87 | +149% |
| Has EV | 0.25 | 1.00 | +300% |
| Failure Rate | 70% | 15% | -79% |