A saved book needs an observable update history
A snapshot is a recorded starting state, not proof of the current market. Two book displays can disagree because their capture moments, subscribed depths or update histories differ. Before interpreting a difference, identify the venue, product, instrument and original records. A price screen alone cannot establish the path by which a local copy reached its state.
This expanded guide preserves the original checklist and blank downloads, and adds an executable audit of supplied identifier ranges. It answers where a particular recorded sequence stops supporting continuity. It does not reconstruct prices and quantities, simulate an order fill or decide which venue has better liquidity.
Choose one documented protocol
Binance Spot diff-depth messages expose first and final update identifiers. The official procedure distinguishes initial snapshot alignment from later continuity checks. The local audit uses that named convention as checked on 20 October 2026, not a generic rule for every market-data feed.
Coinbase Exchange level 2 instead describes snapshots and full replacement sizes at price levels. Kraken WebSocket v 2 has a documented checksum procedure over the top ten levels. Those references remain useful parts of the original guide, but their mechanisms are not simulated by this identifier-only tool. Select the actual provider documentation before transferring any conclusion to another product.
Sources: Binance official Spot API repository — WebSocket Streams, Coinbase Exchange — Level2 channel, Kraken — Book checksum, WebSocket v2.
The first retained range must bridge the snapshot
Let the supplied snapshot ID be 100. Buffered ranges ending at 100 or earlier are already covered by that snapshot and are discarded by this audit. The first retained range must contain 100 and extend beyond it under the currently documented initialization convention. A range 99–102 provides that bridge.
A first retained range 101–102 does not satisfy this particular snapshot-bridge test. The worksheet reports bridge missing and leaves the last accepted ID at 100. It does not assume that a plausible next number proves the buffering and snapshot steps were performed correctly. The source procedure describes acquiring an appropriate snapshot; this page performs no acquisition or retry.
Sources: Binance official Spot API repository — WebSocket Streams.
Keep the last accepted ID separate from the next received ID
After accepting 99–102, the last accepted ID is 102. A following 103–104 range continues the supplied chain and moves that value to 104. A later range beginning 106 leaves 105 unaccounted for. The local audit stops at that row and preserves 104 as its last accepted identifier.
The report labels later rows not processed after stop. It does not sort the file or use a subsequently received 105 row to rewrite what the earlier record established. You may separately investigate buffering or prepare another explicit record, but this report retains the original failure and its position. No missing price level is invented.
Preserved example with an explicit unprocessed tail
The original guide used snapshot 100 followed by 99–102,103–104 and a later event starting 106. This version keeps that example and makes the gap visible as an exact missing range:105 through 105. The first two applicable ranges advance the record; the third does not.
A fourth synthetic row 105–105 demonstrates why automatic repair would hide evidence. It arrives after the gap was already observed. The tool retains it in the exported report but does not apply it. The rows and timestamps below are invented to explain the method, not records from an exchange.
| Recorded row | Update range | Last accepted ID | Decision |
|---|---|---|---|
| Snapshot | 100 | 100 | Starting snapshot |
| 1 | 99–102 | 102 | First range bridges 100 |
| 2 | 103–104 | 104 | Continuing range |
| 3 | 106–107 | 104 | Stop: missing 105 |
| 4 | 105–105 | 104 | Not processed after stop |
Unknown, stale and non-advancing records have different meanings
A blank or explicitly unknown required identifier prevents continuity from being established beyond that point. It is not converted to zero. If all buffered rows are already covered by the snapshot, the result says that no bridging update evidence was supplied. An empty list does not demonstrate that nothing changed in the market.
After a bridge, a range ending before the last accepted ID does not advance the sequence. A range ending at exactly the same ID is also labelled non-advancing in this ID audit. That label does not prove two payloads are identical: their quantities are outside the calculation. Keep the raw messages if payload equality matters.
A passing identifier audit is only one layer
The original guide also asks what a quantity update means. Coinbase level 2 supplies the new size for a level, rather than an amount to add; zero indicates removal. Kraken specifies processing the levels in a message before checking its checksum and preserving decimal precision. An identifier chain cannot substitute for those checks.
The result therefore keeps quantity validation and checksum validation explicitly false, and live freshness unknown. Even a continuous supplied sequence may be truncated, belong to an incorrectly labelled instrument or contain bad level values. No positive result here certifies the saved book as complete or executable.
Sources: Coinbase Exchange — Level2 channel, Kraken — Book checksum, WebSocket v2.
Keep receipt dates without changing sequence order
The synthetic first row is received at 20 October 2026 15:59:59 UTC, which is 23:59:59 in Singapore. The next row at 16:00:00 UTC is 00:00:00 on 21 October in Singapore. Both still belong to the same entered update history. This is useful when a local log is split into daily files around Singapore midnight.
The UTC and SGT columns identify the same supplied instants. They do not establish exchange event times, clock accuracy or network latency. A backwards receipt timestamp generates a warning while preserving row order. Sorting by the displayed local date would neither manufacture missing 105 nor establish the correct sequence protocol.
| Synthetic receipt UTC | Same instant in Singapore | Sequence effect |
|---|---|---|
| 2026-10-20 15:59:59 Z | 2026-10-20 23:59:59+08:00 | Row 1 remains row 1 |
| 2026-10-20 16:00:00 Z | 2026-10-21 00:00:00+08:00 | Row 2 remains row 2 |
| Timestamp missing | Unknown | ID audit can continue if required IDs are known |
Sources: Singapore BCA — Site Management Data Standards v1.1, page65.
Keep the original six-question record
The blank CSV and TXT remain available. Record the venue, instrument and subscribed depth; snapshot identifier and capture time; each update’s sequence fields; whether a quantity replaces or increments a level; any gap or checksum failure; and the state justified by the evidence, such as rebuilt, stale or unknown.
The new tool input is a separate compact three-column audit format. It does not replace the broader blank record, which still has fields for quantity meaning and review notes. Preserve original identifiers as text. The worksheet accepts up to twenty digits without converting them to a binary floating-point number, so large neighbouring IDs remain distinct.
Export the boundary of what the record establishes
The local result CSV includes the snapshot, protocol label, instrument, every supplied range, before/after IDs, stop decision, missing-range bounds and UTC/SGT receipt columns. The manual-copy field exposes the same report; download and clipboard controls are conveniences. Formula-like user labels are escaped for spreadsheet use.
Keep this report beside its original source records and review the protocol again when documentation changes. An earlier gap should remain in the history even if a later independent snapshot supports a new observation. The optional Telegram offer remains separate from the complete guide, blank downloads and local audit.
Worked examples
Example 1
- protocol
- binance_spot_diff_depth_documented_20261020
- instrument
- DEMO spot book
- snapshot id
- 100
- snapshot observed at utc
- 2026-10-20T15:59:58Z
- csv
- first_id,last_id,received_at_utc 99,102,2026-10-20T15:59:59Z 103,104,2026-10-20T16:00:00Z 106,107,2026-10-20T16:00:01Z 105,105,2026-10-20T16:00:02Z
- status
- gap
- last accepted id
- 104
- stop row
- 3
- missing first id
- 105
- missing last id
- 105
- applied range count
- 2
- tail decision
- not_processed_after_stop
Preserved original example, extended with a late row that cannot silently erase the recorded gap.
Questions before you use the result
Does a continuous result mean the book is current?
No. It establishes only the supplied identifier-range sequence under the named convention. Freshness, level quantities, checksums and source completeness remain unverified.
Why not sort updates to fill the gap?
That would change the recorded arrival history. This report preserves the first break; any separately investigated reconstruction needs its own explicit record.
Can I paste Kraken or Coinbase messages into this audit?
No. Their protocol rules and fields differ. The guide keeps those references, but the executable subset is explicitly Binance Spot diff-depth ID ranges.
Primary sources and scope
- Binance official Spot API repository — WebSocket StreamsChecked 2026-10-20. Snapshot/buffer initialization and range continuity rules for Spot diff-depth; no live feed was requested.
- Coinbase Exchange — Level2 channelChecked 2026-10-20. Snapshot followed by level replacement sizes; zero removes a price level. Not implemented by the ID-only audit.
- Kraken — Book checksum, WebSocket v2Checked 2026-10-20. Checksum over top10 levels, processing all updates in a message, precision and deletion rules. Not calculated here.
- Singapore BCA — Site Management Data Standards v1.1, page65Checked 2026-10-20. +08:00 Singapore Standard Time timestamp notation only; no market-access rule inferred.
Prepared from the sources listed above. Examples and calculations explain a method; they do not predict prices or certify an investment. Geographic time references do not establish where a trading service is available. Dated schedules can change: consult the named publisher before relying on a future event.