How jacksondorazio/kalshi-weather-bot works
The README’s primary product is a daily Kalshi weather-betting workflow: settle prior bets, recalibrate, find markets, rank and size picks, then email them. The tree also contains a separate, broader weather-trading application with scheduled collection, ensemble prediction, market analysis, risk checks, execution, persistence, and alerts. Edges reflect documented workflow steps or relationships visible in the supplied excerpts; unsampled implementations and wiring are not inferred.
Main entry points: daily_workflow.py Daily workflow · execution_engine.py Execution engine · ensemble_model.py Ensemble prediction · weather_collector.py Weather collection
Components 23
Daily Kalshi workflow
- Daily workflow
daily_workflow.py - Bet settlement
check_results.py - Pick recommendations
kalshi_recommender.py - Bet and calibration state
daily_workflow.py - Email picks
daily_workflow.py
Weather and prediction
- Weather collection
weather_betting/data/weather_collector.py - Weather APIs
- Feature building
weather_betting/models/feature_builder.py - Ensemble prediction
weather_betting/models/ensemble_model.py - LSTM model
weather_betting/models/lstm_model.py - XGBoost model
weather_betting/models/xgboost_model.py - Statistical model
weather_betting/models/statistical_model.py
Market trading
- Market client
weather_betting/trading/market_client.py - Polymarket weather discovery
weather_betting/trading/polymarket_weather_client.py - Signal strategy
weather_betting/trading/strategy_engine.py - Risk manager
weather_betting/risk/risk_manager.py - Execution engine
weather_betting/trading/execution_engine.py - Prediction market APIs
Persistence and operations
- Service entry point
weather_betting/main.py - Weather and trade database
weather_betting/data/database.py - Alert manager
weather_betting/monitoring/alert_manager.py - Email and Slack
Other components
- Operator
Connections 21
- Operator → Daily workflow: starts
README.md - Daily workflow → Bet settlement: settles bets
README.md - Daily workflow → Bet and calibration state: updates state
README.md - Daily workflow → Pick recommendations: requests picks
README.md - Daily workflow → Email picks: sends picks
README.md - Service entry point → Execution engine: starts pipeline
weather_betting/main.py - Service entry point → Alert manager: checks alerts
weather_betting/main.py - Execution engine → Weather collection: collects weather
weather_betting/trading/execution_engine.py - Weather collection → Weather APIs: fetches forecasts
weather_betting/data/weather_collector.py - Weather collection → Weather and trade database: stores readings
weather_betting/data/weather_collector.py - Execution engine → Market client: places orders
weather_betting/trading/execution_engine.py - Execution engine → Alert manager: reports failures
weather_betting/trading/execution_engine.py - Ensemble prediction → LSTM model: trains
weather_betting/models/ensemble_model.py - Ensemble prediction → XGBoost model: trains
weather_betting/models/ensemble_model.py - Ensemble prediction → Statistical model: combines
weather_betting/models/ensemble_model.py - Signal strategy → Risk manager: checks trade
weather_betting/trading/strategy_engine.py - Risk manager → Weather and trade database: records trades
weather_betting/risk/risk_manager.py - Execution engine → Weather and trade database: reads history
weather_betting/trading/execution_engine.py - Market client → Prediction market APIs: queries markets
weather_betting/trading/market_client.py - Polymarket weather discovery → Prediction market APIs: scans markets
weather_betting/trading/polymarket_weather_client.py - Alert manager → Email and Slack: sends alerts
weather_betting/monitoring/alert_manager.py