How nick6988/corner-rate-engine works
This is a Streamlit in-play football pricing and risk dashboard. Users enter match context, live statistics and market odds; the app calculates corner and goal probabilities, expected value and trade diagnostics, then presents metrics and signals. Corner pricing combines pace, shot heat and tactical modifiers with a Negative Binomial model; goal pricing uses a separate goal-rate model. League tiers provide risk controls and are stored in JSON. The excerpts show the corner calculation calls and league persistence; the app’s goal-engine invocation is not shown, so that relationship is marked unverified.
Main entry points: app.py Streamlit dashboard · league_filter.py League tiers · corner_engine.py Corner pricing · goal_engine.py Goal pricing
Components 6
Dashboard
- Streamlit dashboard
app.py
Pricing engines
- Corner pricing
corner_engine.py - Goal pricing
goal_engine.py
League risk
- League tiers
league_filter.py - League data
leagues.json
Other components
- Dashboard user
Connections 6
- Dashboard user → Streamlit dashboard: enters match data
README.md - Streamlit dashboard → Corner pricing: calculates corner signals
app.py - Streamlit dashboard → Goal pricing: uses goal pricing
app.py - Streamlit dashboard → League tiers: manages league tiers
app.py - Corner pricing → League tiers: gets league tier
corner_engine.py - League tiers → League data: reads and writes
league_filter.py