Polymarket 5-minute settlement prices and backtest errors
A backtest of Polymarket crypto Up/Down markets needs the winning side of each market. A straightforward approach is to compare the Chainlink BTC/USD price at the close with the price to beat. However, these markets settle on a different price. In close markets, that difference can change the result.
We graded the BTC 5-minute markets of the free sample day (2026-11-29) three ways. We also measured how many seconds before the close the available data pointed to the final result.
The stream each market names
A market line carries its settlement configuration in raw.cryptoMarketConfig. On the sample day, all 292 BTC 5-minute markets with a strike had twapLookbackSeconds of 60: it settles on the Chainlink 60-second TWAP, comparing the last TWAP value inside the market window with strike_value. The rule, and how it has changed over time, is on How a market settles. Read the configuration from each market; do not infer it from the date.
Graded that way, 289 markets matched the outcome_prices Polymarket published, with none differing. Three more had no TWAP tick inside their window in the sample and were left out.
grading at the close against strike_value official 289/289 match outcome (0 differ; skipped: no tick 3, closing tick unusable 0) prices 275/289 match outcome (14 differ; skipped: no tick 0, closing tick unusable 0) |settlement close - strike| in USD: median 36.35, under $5: 17, under $20: 86 of 289 flipped by prices: settlement-vs-strike gap median 8.00 USD, max 29.13 k seconds before the close, using only what had been RECEIVED by then: k=60 settle: 252/288 87.5% prices: 267/288 92.7% mid: 266/288 92.4% k=30 settle: 266/288 92.4% prices: 279/288 96.9% mid: 282/288 97.9% k=10 settle: 282/288 97.9% prices: 276/288 95.8% mid: 287/288 99.7% k=5 settle: 284/288 98.6% prices: 275/288 95.5% mid: 288/288 100.0% k=2 settle: 285/288 99.0% prices: 273/288 94.8% mid: 288/288 100.0%
Abridged analysis output. It contains the figures quoted on this page.
Grade with the wrong price and some results flip
Keeping the strike and the window the same and only swapping the stream:
The flipped markets were close calls. With the instantaneous price, the settlement close of a flipped market sat a median $8.00 from the strike; the widest was $29.13. Close markets were common: 17 of the 289 markets closed within $5 of the strike and 86 within $20, against a median distance of $36.35. If a strategy concentrates on markets trading close to the strike, grading on the wrong stream can change its backtest by more than the market-level rate suggests; check its own fills market by market.
- Instantaneous Chainlink price: 14 of 289 outcomes flipped, 4.8%. It sits in the same archive as the 60-second stream, so it is an easy one to pick up by mistake.
Signals before the close
At k seconds before each close, we took the latest value received by that point. We filtered by recv_ms to exclude ticks that arrived later, regardless of their feed timestamp. We then checked whether the value pointed at the final result. For the two Chainlink streams that means its side of the strike; for the order book, whether the Up token's mid was above 0.5. Out of 288 markets with data at every cutoff:
The TWAP lags. A minute out, its value mostly describes the minute before, so it is the weakest of the three at the 60- and 30-second cutoffs. It was ahead of the instantaneous price at the 10, 5 and 2-second cutoffs, as it closes in on the number that will settle.
The instantaneous price, which is not the price the markets settle on, beat the TWAP at the 60- and 30-second cutoffs and trailed it at the later ones: of the cutoffs measured, its accuracy was highest at 30 seconds, 96.9%, and 94.8–95.8% at 10, 5 and 2 seconds, while the TWAP was higher at each later cutoff.
At the 30, 10, 5 and 2-second cutoffs, the Up mid picked the winner more often than either feed: the quotes already leaned the way the TWAP would land. At 60 seconds it was level with the instantaneous price. This table measures direction only. It does not measure the price you would have paid. A near-expiry strategy still needs to be backtested against the prices on the book at the time. An assumed fair value cannot replace those prices.
- 60s before the close: settlement TWAP 87.5%, instantaneous price 92.7%, Up mid 92.4%.
- 30s: TWAP 92.4%, instantaneous 96.9%, mid 97.9%.
- 10s: TWAP 97.9%, instantaneous 95.8%, mid 99.7%.
- 5s and 2s: TWAP 98.6% then 99.0%, instantaneous 95.5% then 94.8%, mid on the winning side in all 288 markets at both.
A checklist for grading Up/Down markets
- Read the stream off the market.
twapLookbackSecondson each market line, not a rule keyed on the date. - Compare fixed-point integers.
full_accuracy_valueagainststrike_value, both at 1e18, with greater-than-or-equal meaning Up. - Take the closing tick by timestamp. Frames are archived as they were received, so the last row of a file is not necessarily the last tick.
- Gate early signals by receive time. A tick stamped before your decision time may have arrived after it.
- Price near-expiry trades against the book. The mid picked the winner most of the time at the cutoffs measured here, which says nothing about profit: backtest the fill price, the markets where the direction was wrong, and the fees together.
Reproducing this
The figures come from the free sample day, 2026-11-29: BTC 5-minute markets, the two Chainlink streams and the best bid/ask file, with no key or signup, under CC BY 4.0, and also on Kaggle and Hugging Face. The sample day changes from time to time, so a newer one prints different numbers.
The grading step is the recompute script on How a market settles; point the file it reads for the 60-second stream at the instantaneous file to see the flips. For the early-knowledge figures, keep only rows whose recv_ms is at or before the cutoff, then take the latest of those by its own timestamp.
To run a strategy over these markets with the grading done for you, use the hosted backtester, or pip install outcometick and replay the sample locally.