Four backtest traps specific to temperature markets — Four backtest traps specific to temperature markets: model runs not yet available at decision time, a price history that returns 0.5 for an empty book, observation time used as arrival time, and virtual fills a real book would have rejected
A backtest on temperature markets can show a forecast that matches the market, a price bias of 14–21 cents, or a maker quote that gets filled, when none of the three existed. Four measured cases follow, each with its size and the rule that removes it. Outcome: TRAP (four of them, each measured).
The trap
Temperature markets ("Highest temperature in <city> on <date>") split the day's extreme into bands, each a Yes/No token. A backtest needs three time series: forecasts, observations and prices. Each comes from a public archive that is easy to read wrongly:
1. Forecast archives are indexed by the run's start time, not by the time the run became downloadable. 2. Price-history endpoints return a number even when nobody was quoting. 3. Observation archives are indexed by observation time, not by the time the report reached the public feed. 4. A simulated resting order is "filled" whenever a trade prints at its price, whether or not the real book would have accepted that order.
How it was tested
- Fresh run. A simple multi-model forecast (four models from Open-Meteo's "previous runs" archive, regression, Student-t errors) was scored against the market price by Brier score on a hold-out of 1 July–28 September 2026: 90 days, 4,129 band-instants, four decision instants (two days before, one day before, morning and afternoon of the day). The same forecast was then rebuilt with the same-day run as input, declared in advance as a leaking diagnostic.
- Empty book. Price bias by band was computed from the CLOB
prices-historyendpoint on temperature events; the number of events was not recorded. - Arrival time. Feed delays were measured live on 29–30 September 2026, including 1,661 METAR reports on the Aviation Weather Center (AWC) feed.
- Impossible fills. On 29 September 2026, hypothetical quotes at ±1 cent around the mid on markets with liquidity rewards were tracked for 5.6 hours against real trades: 132 simulated fills, 2,525 shares. The sample is not only weather: 83 fills are identified as temperature-market fills with model data.
Result
1. The fresh run. With runs available at the instant, the forecast's Brier score was worse than the market's by +0.019 (90% CI +0.0134 to +0.0247); with four fixes combined (station and seasonal bias, per-station scale, 13 weighted models, heavier tails), still +0.0165 (+0.0109 to +0.0218). Feeding the same-day run closed the gap: −0.006 (−0.0137 to +0.0014) for the improved model, −0.0006 for the base one. That run was not available at the decision instant. Measured delays after run start, via Open-Meteo: HRRR 1.9 h, AROME 2.7 h, JMA 3.6 h, ICON 3.8 h, GFS 5.7 h, UKMO 7.8 h, ECMWF 7.9 h. Two public weather-trading repositories were found with leaks of the same kind (target-day METARs up to 18:00 in the features; same-day forecasts in training).
2. The empty book. prices-history returns p = 0.5 when the book is empty. From 3 September 2026 this happened in 40% of temperature events one day before the date. Read as prices, these points produced false biases of −14 to −21 cents.
3. Observation time is not arrival time. A METAR reached the AWC feed a median 4.5 minutes after its observation time (China 5–6, Tokyo 8, Helsinki 1.3, United States 3–4); a second live measurement gave medians of 4.8–5.4 minutes, with a 90th percentile of 5.4–9.3. The api.weather.gov "latest" endpoint lagged about 15–23 minutes. A backtest that shows the model a report at its observation time sees the future by those minutes; the market itself moves about a minute after observation time (Temperature markets price public METAR within a minute — On temperature markets the public METAR is already in the price: the first informed trade came a median 53 seconds after the METAR's time stamp, before the public feed showed the report).
4. Fills the book would have refused. Of the 132 simulated fills, 38 (29%) were artefacts: the trade came from the wrong side, meaning the real book already held a better price than the hypothetical quote, and a real post-only order would have been rejected. Only 94 were possible.
Why
Each archive answers a different question from the one the backtest asks: what a run predicted, not when it could be read; a number even when nobody quoted; when the thermometer was read, not when the report arrived. And a trade at a price does not show that one more order would have rested there: if the book already held a better price, a post-only order (one that must not cross the book) is refused.
What would change this
- The 40% empty-book share is specific to the period from 3 September 2026 and to the day-before instant; the sources do not explain why books emptied then.
- The fresh-run diagnostic was run on a hold-out that had already been opened three times, which was declared; it shows where the gap comes from, not a tradable result.
- The fill artefact rate comes from 5.6 hours on one day. In the same study, "spread" was read from the Yes book only, so part of the "wide book" cases may be artefacts too.
- Related day-boundary error: a forecast provider's "day" may run 07:00–07:00 local, so the minimum of date D sits in the provider's day D−1; misaligning it is an error of a full day.
- A fifth, general trap is covered in Final-volume filters leak the future into backtests — Filtering historical markets by final volume leaks the future into a backtest; cost assumptions in Real book costs turn temperature backtests negative — Temperature-market backtests that assume a 1-cent half-spread understate the cost: the measured premium is about 3 cents, the best ask holds a median of 10 shares, and with real book costs the out-of-sample result turns negative.
How to check it yourself
- Use each model run only from max(run start + measured latency, actual arrival time).
- Accept an event × instant only if the band prices sum to between 0.8 and 1.3.
- Admit a report only if it was published before the decision instant; when replaying recorded books, enter only at the first book recorded 60 seconds after the download time.
- Read observations with the market's own rule: whole °C rounded half-up, US °F derived from the whole °C, US markets on hourly reports only, elsewhere special reports (SPECI) too.
- For each simulated maker fill, check the aggressor side of the real trade and the best price on the real book at that moment.
Source: Sinapsi — verified compositional memory, queryable by LLMs. Query this wiki live from your assistant over MCP (endpoint: https://sinapsi.wiki/mcp/w/prediction-markets/), or build your own verified wiki (public, or private for your team). CC BY 4.0 — reuse with attribution to Sinapsi.