What Matters: A historical candle can change without a new trade occurring inside its original interval. Compare retained versions of the same source, market and bar before calling the difference a correction. A developing candle, an omitted interval and a different price stream require different explanations.
The Signal: DN retrieved the same twenty-minute OKX BTC-USDT spot window twice on 27 November 2026. Both responses contained twenty completed one-minute candles and identical bytes. This is a reproducible observation of no differences in one pair, not an estimate of how often candles are revised.
DN Alpha Thesis: Preserve what changed, what remained unknown and what the source actually promised. A small comparison with raw evidence is more useful than an unsupported assurance that historical data are final.
This 2027 research edition uses documentation and public responses checked on 27 November 2026. The downloadable capture is observed data; the worksheet defaults and the positive-change fixture are fictional. None of the calculations estimates trading performance.
Define the record before comparing its values
“BTC, one minute” is an incomplete identity. A candle record also needs the venue or provider, product, exact instrument, endpoint, price basis, volume unit, opening timestamp and interval alignment. Record any adjustment or aggregation setting that changes its meaning. Two values can differ correctly because they describe different things.
A perpetual mark-price candle is not the spot trade candle for the same underlying asset. OKX exposes separate trade, index and mark-price candle histories in its API documentation. Likewise, provider-constructed bars can reflect a different collected trade stream from exchange-reported bars: Coin Metrics documents construction from its own collected trades.
Make identity a gate. If the price basis changed, retain the comparison as a source-definition difference. Do not count it as a revision of one history. If identity is unknown, keep it unresolved instead of averaging the observations into a new series.
There are also two useful comparisons within a matching identity. A byte comparison asks whether the response files changed. A semantic comparison asks whether keyed records changed after harmless formatting and ordering differences are removed. The strings 101.0 and 101.000 represent the same decimal value. A different response hash alone cannot distinguish that formatting change from a new closing price.
Completion, publication and correction are separate states
A bar boundary tells you which interval a candle describes. It does not establish when a particular version became available or whether that version can ever change. Interpret the source’s completion evidence for the exact record you saved.
| Source and scope | Documented behavior | Rule for the audit |
|---|---|---|
| OKX history candles | confirm=0 means uncompleted; confirm=1 means completed. | Store both flags. Do not infer permanent immutability from completion. |
| Kraken OHLC | The last entry is the current, uncommitted interval and is returned regardless of since; history is limited to the latest 720 entries. | Separate the developing row and check retention before diagnosing an absent older interval. |
| Coinbase Exchange candles | Intervals without ticks are omitted; the documentation also warns that historical rates can be incomplete. | An absent row alone establishes neither an outage nor a no-trade interval. |
| Coin Metrics CEX spot and futures | Initial publication follows close by a few seconds; recent candles are rechecked over roughly three hours. The documentation also calls an approximately twenty-minute replacement finalized. | Retain receipt time and version. Those timing statements do not support a universal immutable deadline. |
Coin Metrics’ ordinary gapless candles carry forward prior values with zero trading activity when no trades occur; its prediction-market candles instead omit no-trade intervals. That product distinction prevents a single “fill every missing minute” rule from being applied across its coverage.
Documentation itself has versions. A 12 December 2024 announcement described changes planned for January 2025, and 5 May 2025 release notes recorded candles being served without the old delay. This article uses the current documentation for present behavior. An archived statement about a twenty-minute publication delay should not silently become today’s initial-publication rule.
What DN actually observed
The bounded capture uses /api/v5/market/history-candles, instId=BTC-USDT and bar=1m. Its target window is 19:12:00 UTC inclusive through 19:32:00 UTC exclusive on 27 November 2026. That defines twenty opening-time slots.
For this spot endpoint, the documented opening timestamp is in Unix milliseconds, OHLC prices use the quote asset, vol uses base units, and the two retained quote-volume fields use quote units. The script preserves all seven numerical fields and the completion flag. It does not apply a derivatives contract multiplier.
| Evidence | Earlier response A | Later response B |
|---|---|---|
| Receipt on 27 November 2026, UTC | 19:34:26.844577 | 19:39:16.687754 |
| Observed HTTP / application status | 200 / code 0 | 200 / code 0 |
| In-window rows | 20 | 20 |
| Completed / provisional rows | 20 / 0 | 20 / 0 |
| Absent opening-time slots | 0 | 0 |
| Exact response size | 2,224 bytes | 2,224 bytes |
The executed comparison found zero changed OHLCV rows, zero changed auxiliary volume fields, zero completion-flag changes and no added or disappeared rows. Both raw responses have SHA-256 e87ce86401cadf0e04b35faf9a91e54ffecde4a0e02571be14da93b631359db0.
This is an intentionally narrow result. Every requested slot being present proves grid coverage in these responses. It does not prove every underlying trade was captured correctly. Two equal retrievals cannot reveal a change that occurred before A, an intervening change that reverted before B, or a later correction. Reporting a general “0% revision rate” would overstate the experiment.
Reproduce the window comparison
Download the reproduction bundle, which contains the two exact response bodies, selected request/response metadata, the stream manifest, the comparator, synthetic fixtures and executed results. The file manifest records hashes. No account or new API request is needed to repeat the saved comparison.
Extract the files together and run python diff_candles.py --output reproduced.json. The script uses Python’s standard library. It checks the retained response hashes, request identity and receipt ordering, rejects duplicate opening keys and malformed rows, and filters an explicitly bounded grid. It then sorts by opening time and compares decimal strings exactly.
Row ordering and insignificant decimal zeros do not count as value revisions. Opening times outside the window are reported separately. A duplicate is rejected rather than resolved by whichever row happened to appear last. Missing slots remain missing; the script never invents candles to make the grid look complete.
This adapter understands the documented nine-field OKX history schema and specified fixed intraday intervals. A Coinbase response, a calendar-month bar or an undocumented schema needs its own adapter and evidence. Changing a filename is insufficient to make the interpretation portable.
Inspect one interval with the worksheet
The worksheet below concentrates the same distinctions into one reader-supplied interval. Start by declaring stream identity and coverage for each response, then enter presence, opening key, completion state and OHLCV values. Coverage means you checked request bounds and pagination; it does not mean the underlying trade tape is complete.
Its defaults are fictional completed records: high 103 becomes 104, close 101 becomes 102 and volume 5 becomes 6. They intentionally show a change that did not occur in DN’s observed capture. Reset or replace the values when inspecting your own case.
DN Candle Revision and Completeness Diff
Hypothetical example, ready to edit. Use values and evidence from one consistent context. Blank optional records remain unknown.
All defaults are fictional: two declared completed records for one interval, with high 103→104, close 101→102 and volume 5→6. They are not the observed OKX capture. This local worksheet compares one interval and trusts your stream, coverage, finality and trade-evidence declarations; it does not fetch or authenticate data. Prices and volumes use one shared unit per field, nonnegative plain decimals up to 12 places and 1000000000000. This exact-decimal worksheet limit is not a venue precision guarantee. Blank remains unknown. Fields for absent or uninspected rows are ignored, not treated as zero. It does not infer finality from elapsed time, fill missing candles, identify a revision cause or evaluate returns.
Blank fields remain unknown. An absent row’s numerical fields are ignored rather than treated as zero. For comparable known fields, the difference is later minus earlier, retaining the sign. The worksheet accepts plain nonnegative decimals with up to twelve fractional places; this is its arithmetic limit, not a venue precision guarantee.
Four fictional outcomes that deserve different names
1. Two completed records contain different values
In the fictional default, both opening keys and stream definitions match. Three fields differ: high by 1, close by 1 and volume by 1. The result is “Changed after reported completion.” This establishes a record difference after the earlier completion declaration. It does not identify late trades, an exchange correction, a provider collection problem or a changed methodology as the cause.
2. A provisional record becomes completed
Keep those same fictional numbers but change A’s state to provisional. The classification becomes “Provisional-to-completed transition.” The arithmetic is unchanged, but the interpretation differs: the earlier bar was still developing. Mixing these cases into a post-completion revision count would answer the wrong question.
3. A previously absent row appears
Declare A absent and B present. The result is a newly observed row, with no fictitious difference from zero. A backfill is one possible explanation. Incomplete earlier pagination, differing request coverage or a retention issue may also require investigation. If earlier coverage is unresolved, the worksheet says so explicitly.
4. Both responses omit an interval
A dense policy expects a row for each covered grid slot; an absent row then remains an unresolved gap even if no trades occurred. A sparse policy may legitimately omit no-trade intervals. That explanation requires both the applicable policy and independent evidence of no relevant trades. Selecting a sparse policy alone does not supply the evidence.
The synthetic whole-window result also demonstrates a disappearing row and an unchanged zero-volume row. Every price and quantity in that fixture is invented. A zero-volume row is present data; an absent row is a missing observation. Neither state should silently replace the other.
Carry the result into research without overwriting history
Retain A and B as separate evidence objects. Store the exact request, receipt time, source definition, raw hash and comparator version alongside the result. The later file can be the preferred current view while the earlier file remains the input that a past process actually consumed.
Keep a small change ledger with the opening key, changed fields, old and new values, both completion states and the reason for any manual reconciliation. Record a reason as unknown until evidence resolves it. Calling every added row a confirmed backfill creates certainty the comparison did not produce.
Check dependent calculations only after establishing which records changed. An indicator may use a changed high even when the close is unchanged; an aggregation may depend on an added minute. Recompute the affected output under an explicitly retained transformation. A changed input does not by itself show a changed trade or a gain or loss.
For the separate question of which version a historical model was allowed to use, continue to DN’s historical-data leakage workflow. For the age of the exact input behind a signal, use the signal timing inspector. A candle diff supplies evidence to those processes; it does not reconstruct an unrecorded receipt time.
Methodology and limits
DN made two unauthenticated public candle requests and one public server-time request. The selected window ended before the most recent completed minute. Raw body bytes were retained unchanged. Published metadata includes request and receipt timestamps plus selected response headers; those timestamps describe this collection, not when every underlying trade first became available.
The comparator’s semantic representation sorts opening keys and normalizes insignificant decimal zeros while preserving numerical precision. It compares OHLCV, both additional quote-volume fields and the completion flag separately. Exact hashes verify agreement with retained files, not the truth of the market data or an authenticated historical timestamp.
Local validation passed 15 offline comparator cases and 34 worksheet cases. Those checks include duplicates, mismatched identity, grid boundaries, unknown fields, completion transitions, exact small decimal changes and invalid OHLC ranges. Passing those cases establishes tested behavior within the stated model; it does not validate every exchange feed.
No independent trade tape, paid provider dataset, full revision history or strategy execution was collected. The two retrievals were not a randomized sample. Conclusions remain specific to the documented interfaces, saved interval and supplied assumptions. Source links are evidence references; no affiliate recommendation is included.
Frequently asked questions
Does a completed candle mean its values can never change?
Only if the applicable source contract makes that stronger commitment. A completion flag reports a state; it is not automatically an immutable-history guarantee. Preserve the exact payload and check the source’s correction and recalculation rules.
Can I replace a missing candle with zero volume?
Only under an explicit, justified transformation for that source and purpose. Absence alone does not prove no trades. Preserve the missing observation and the rule used to create any derived replacement so that the original evidence remains recoverable.
Why can two providers disagree without either revising a candle?
They may aggregate different collected trade streams, use different instruments or apply different interval boundaries. Establish matching definitions first. Comparing two different streams is a cross-source reconciliation, not a two-version revision test.
Does the unchanged OKX pair show that this feed has no revisions?
No. It shows identical responses for one twenty-minute spot window at two recorded retrievals. Earlier, intervening or later changes and other markets remain outside the observation. No general revision frequency is estimated.
Does the worksheet find the cause of a changed price?
No. It classifies supplied differences and evidence states. Establishing a cause requires additional records, such as a dated correction notice or appropriately matched trade data. The worksheet also does not estimate the financial effect of using either version.
Download the source register and example
Keep the reviewed source register (JSON) and the hypothetical worked example (JSON). The worksheet buttons also download your entered scenario and its source register.




