A production-grade, automated sports betting system powered by Airflow, PostgreSQL, and Kelly Criterion portfolio management.
# Clone the repository
git clone https://github.com/your-org/nhlstats.git
cd nhlstats
# Install dependencies
pip install -r requirements.txtVisualize model performance and lift/gain analysis.
./run_dashboard.shSee Dashboard Guide for details.
The system uses Airflow for daily data ingestion and betting.
docker compose up -dSee System Overview for architecture.
- Betting Strategy: The math behind the money (Elo, Kelly, Sharp Confirmation).
- Dashboard Guide: How to use the Streamlit interface.
- System Overview: Architecture, DAGs, and Data Flow.
- Troubleshooting: Fix common issues.
Located in .github/skills/
- DAG Task Data Flow: Complete task documentation with data sources/destinations
- Data Flow Quick Reference: Quick guide for monitoring and troubleshooting
- Integration Fixes 2026-01-29: Summary of critical data consistency fixes
- Database Schema: Updated with current data flow information
- Testing Patterns
├── dags/ # Airflow workflows (DAGs)
├── plugins/ # Core logic (Elo, Betting, API)
├── scripts/ # Utility scripts (Backfills, Analysis)
├── tests/ # Unit and Integration tests
├── docs/ # Detailed documentation
├── reports/ # Historical analysis and logs
├── data/ # Local data storage
└── dashboard_app.py # Streamlit entry point
Run the full test suite (including documentation integrity):
pytestSee Testing Patterns for more.