This pipeline turns market data and probabilistic forecasts into executable orders by fusing rating inputs, Monte Carlo simulations, and Kalshi order book intelligence into a single automated run.
- Assemble Inputs – Pull team power ratings, load the win distribution tables published by Inpredict NFL to anchor game-level priors, and ingest the latest Kalshi win-total, exact-win, and futures order books.
- Run Season Simulations –
nfl/scripts/bash/simulate_win_totals_and_exact_wins_and_futuresruns a league-wide Monte Carlo that samples the Inpredict odds, applies custom tie-breaker logic for division and conference standings, and stores outcome frequencies for every team and market tenor. - Summarize Outputs – The simulator exports distributions for season win totals, exact win counts, and futures probabilities, which become the quantitative inputs for pricing edges against Kalshi markets.
- Refresh Position State –
scripts/bash/run_positions_pipeline.shsnapshots existing exposures, outstanding shares, and bankroll constraints so recommendations respect live risk limits. - Screen Markets –
scripts/generate_skip_list.pycomputes a MAD-based filter that marks teams or contracts where projections are unstable or books are illiquid, creating a skip list used by downstream logic. - Generate Trade Ideas –
scripts/generate_recommended_orders.pycompares simulated fair prices to Kalshi bid/ask ladders, net of the skip list and risk tolerances, and writes structured recommendations tooutputs/recommended_orders/*.json. - Validate Artifacts – The wrapper confirms the recommendation file path, ensuring a fresh JSON exists before attempting execution.
- Submit Orders –
scripts/place_recommended_orders.py --input <file>sends sized orders back to Kalshi, targeting the identified overlays while honoring current book depth and the skip constraints.