Weather price backtests
What did the forecast say when a contract traded? Match your price history to the forecast available at that moment, then compare it with the high measured at the station.
Matched price history
Download joined CSV Download daily weather for each contract period (CSV.gz)
| Contract / price time (UTC) | Price kind | YES price | YES bid / ask | GFS | NWS grid | NWS point | Observed high |
|---|
Get historical prices
For your own Kalshi trading research, download the price history collector (Python). Run it on your computer for a station and a range of contract dates, then select its output above. The default is hourly candles for daily highs. Add --metric daily_low for lows. For multi-day markets use --metric period with a UTC price date range.
python3 fetch-weather-prices.py --city knyc --start 2026-10-25 --end 2026-10-31 --output knyc-prices.csv.gz
You can also import timestamped trades, candles or quotes you already have permission to use. Kalshi historical data guide · Exchange data terms
Supported price columns
For CSV, include ticker, price_ts_utc with a UTC offset, and price_kind (trade, quote or candle_close).
Use yes_price_dollars for a trade or candle close, and yes_bid_dollars and yes_ask_dollars for quotes. Write 35¢ as 0.35. You can also use native Kalshi trade and candle JSON responses. A timestamped price is required on every row.
Read the joined file
- The ticker identifies the contract and its local weather date. The price timestamp determines which forecasts qualify. For a candle, that timestamp is the end of the interval.
- Forecast columns beginning with
asof_use the archive availability or publication cutoff recorded for that source. A blank means no eligible vintage was found. GFS archive copies can postdate a forecast’s original issuance. - Columns beginning with
label_contain information for evaluating the result afterward, including the observed high and the exchange result when supplied. The observed high can come from sampled airport readings. A daily high supplies context for low-temperature contracts. For a multi-day contract with verified bounds, a second download lists each day in its period alongside the original price time. Those daily highs are weather context. The exchange result comes from the contract’s own settlement rule. - A candle-close signal can be tested against the next price observation. A trade records an execution. A candle close or quote alone does not establish the price or quantity your bot could have filled. Preserve the bid and ask, trade size, fees and contract rules when evaluating a strategy.