Inspiration

Fantasy AlphaPitch FPL was born to bridge the gap between financial quantitative modeling and sports analytics—turning raw Premier League metrics ($xG$, $xA$, $xP$, ICT Index) into actionable financial-grade arbitrage signals (BUY, SELL, WATCH) and solving for the mathematically optimal starting XI under tight budget constraints.

What it does

AlphaPitch FPL operates as a high-frequency valuation terminal for FPL assets:

Market Scanner & Arbitrage Engine: Scans 570+ active Premier League assets in real-time. It compares each player's market price $P_i$ with their intrinsic Fair Value $\hat{V}_i$, generating an arbitrage alpha score $\alpha_i$. Divergence & Fair-Value Frontier Visualizer: An interactive scatter plot mapping Expected Points ($xP$) against current market prices, featuring an dynamic fair-value regression line and a visual overvaluation/undervaluation spectrum gauge. Constrained Knapsack Squad Builder (Optimal XI): A mathematical solver that determines the optimal 11-man starting lineup and finds undervalued "Budget Gems" for any custom bank balance ($B \in [83.0\text{M}, 105.0\text{M}]$). Watchlist & Dual-Language Architecture: Real-time asset tracking with local persistence, full bilingual support (French & English), and a responsive UI tailored for mobile, tablet, and widescreen setups.

How we built it

Frontend & Architecture: Built with React 18 and TypeScript via Vite for rapid HMR and robust type safety. Styling & UI: Tailwind CSS with a dark, financial-terminal aesthetic inspired by Bloomberg Terminal and TradingView, using glassmorphism and animated badges. Data Visualizations: Built using Recharts, customized for financial divergence charts, regression trendlines, and dynamic risk bands. Data Ingestion & Normalization: Custom ingestion pipeline directly parsing official FPL endpoints (bootstrap-static), computing derived advanced statistics ($xP$, PPG per million, minutes stability, injury clearance flags). Internationalization (i18n): Zero-dependency contextual translation engine supporting dynamic language switching without page reloads.

Challenges we ran into

Real-Time Knapsack Resolution in Browser: Solving multi-constrained integer linear programs in client-side JavaScript without UI freezing required optimizing our heuristic branch-and-bound solver to run in $<15\text{ms}$.

Accomplishments that we're proud of

Successfully designed and deployed an end-to-end quantitative trading interface for sports fantasy assets.

What we learned

Successfully designed and deployed an end-to-end quantitative trading interface for sports fantasy assets. Achieved sub-second search and filtering across 570+ assets with live charting. Mastered constrained combinatorial optimization algorithms implemented purely in TypeScript.

What's next for AlphaPitch FPL

Live Automated FPL Team Sync: Direct OAuth integration with FPL accounts for 1-click team imports and transfer recommendations.

Built With

  • fantasy-premier-league
  • lucide-react
  • optimization-algorithms
  • quantitative-finance
  • react
  • tailwindcss
  • typescript
  • vite
Share this project:

Updates

Submission history