Skip to main content
Skip to content
Crypto Trading

Crypto Order Book Depth in 2027: Avoid Counting the Same Liquidity Twice

Normalize order book depth by side, price distance and quantity unit. A captured Coinbase book and exact worksheet expose two common double-counting errors.

Concentric cobalt glass bands on orange with an ivory divider, captioned Measuring Depth.
Reading options: audio, text size & sections

What Matters

A depth number needs a side, price-distance rule, quantity unit and snapshot identity. Without those definitions, two large-looking totals may describe different things. Two common mistakes are especially avoidable: multiplying an already aggregated price-level size by its order count, and adding cumulative bands that contain the same levels.

The Signal

In DN’s captured Coinbase BTC-USD book, the best bid row contained 0.27728055 BTC across eight orders. Its correct quote notional was 16623.8063597610 USD. Multiplying again by eight would report 132990.4508780880 USD. Separately, almost all the observed ask depth inside 2% was already inside 1%; adding those totals would count that inner liquidity twice.

DN Alpha Thesis

Normalize the measurement before interpreting the market. Exact arithmetic can identify duplicated size, unmatched conventions and limited coverage. It cannot turn displayed orders into guaranteed fills or separate exchange snapshots into one simultaneously executable pool.

2027 edition; evidence checked 27 November 2026. The historical book below was captured through a public, unauthenticated endpoint. The interactive worksheet uses a separate four-row hypothetical example. Neither represents a funded execution test, a current depth quote or a venue ranking.

Define the metric before comparing totals

For a continuous, uncrossed book, this article uses the midpoint of the best bid and ask. A level belongs to a band when its absolute price distance from that midpoint is no greater than the specified percentage. One hundred basis points equals 1%. Boundary prices are included.

That definition is a measurement choice, not the only possible one. A dashboard might measure distance from the best ask, last trade or another reference. Even if both dashboards label a result “1% depth,” their eligible levels can differ. Record the reference price and inclusion rule alongside the total.

Conventions needed for a reproducible depth figure
ConventionThis article’s choiceWhy it matters
DirectionAsks for buy-direction depth; bids for sell-direction depth.Opposing sides are not interchangeable inventory.
DistanceInclusive midpoint-relative basis points.Changing the anchor changes which levels qualify.
ValuationEach included level’s own price and documented quantity unit.One last price need not reproduce level-by-level notional.
CoverageReturned or entered levels, with limitations stated.A row limit is not proof of complete coverage through a price band.
IdentityOne venue, instrument, snapshot and quote unit.Similar tickers and currency labels do not establish equivalence.

For base-asset quantities, quote notional is the sum of price multiplied by size at each included level. A displayed ask total describes offers in the chosen band. It does not subtract trading fees, predict cancellations or establish how much a specific account can trade.

Do not multiply aggregated size by order count

The Coinbase Exchange book specification distinguishes aggregated and individual-order responses. Its Level 2 size already sums orders at that price. The accompanying order count describes how many orders contribute; it is not another size multiplier.

DN’s response, received at 19:44:27.414974 UTC on 27 November, had sequence 140417366464 and reported auction_mode=false. The first bid row was price 59953.02, size 0.27728055 and order count 8. These are preserved in the downloadable raw record.

Correct: 59953.02 × 0.27728055 = 16623.8063597610 USD.
Incorrect: 59953.02 × 0.27728055 × 8 = 132990.4508780880 USD.

The second calculation invents seven additional copies of the already aggregated quantity. The mistake can survive a superficial check because every input is an authentic field. The error is in their relationship.

The same caution applies when combining different representations of a book. If an aggregate row and the individual orders underneath it describe the same price and snapshot, summing both representations duplicates the same source population. Select one representation and retain its transformation history.

Cumulative bands are nested, not separate buckets

Depth inside 1% is normally part of depth inside 2% when both use the same snapshot, side, midpoint and inclusion convention. Adding the two cumulative totals counts the inner levels twice. The non-overlapping outer portion is the 2% total minus the 1% total.

Consider the worksheet’s hypothetical book: bids of 10 units at 99 and 5 at 98; asks of 20 units at 101 and 8 at 102. The midpoint is 100. Under inclusive boundaries, the first ask sits exactly at 1% and the second exactly at 2%.

Synthetic ask-side arithmetic with base-unit quantities
MeasurementCalculationQuote units
Cumulative 1% depth101 × 202020
Cumulative 2% depth(101 × 20) + (102 × 8)2836
Outer-only portion2836 − 2020816
Incorrect addition of cumulative totals2020 + 28364856

The overcount is 2020, precisely the inner-band total. A correct partition is inner depth plus the outer-only portion: 2020 + 816 = 2836. When both band widths are identical, the outer-only portion is zero.

This subtraction is only valid for nested bands built from the same underlying record and definition. Subtracting a later 2% snapshot from an earlier 1% snapshot mixes changes in orders with changes in distance. That result is not a clean outer band.

What the captured Coinbase book actually contained

The returned record contained 11,724 bid levels and 25,616 ask levels. Best prices were 59953.02 and 59953.03 USD/BTC, giving a midpoint of 59953.025. We summed each qualifying price times its aggregated BTC size, without using order count as a multiplier.

Observed cumulative midpoint-band notional, rounded to cents for display
BandBid levelsBid notional, USDAsk levelsAsk notional, USD
0.5%3108,753,295.492759,165,855.66
1%40515,135,563.7536615,362,599.20
2%66819,618,172.2556515,772,418.44

The exact ask-side 1%-to-2% portion was 409819.2361641460 USD; the bid-side portion was 4482608.4992966686 USD. Their difference describes the distribution of this returned book under the stated convention. It is not a forecast of price direction or evidence that either amount would remain available when an order arrived.

The endpoint returned a full aggregated book according to its documented Level 2 scope. Our verification checked the saved bytes and recalculated the rows. It did not independently audit every underlying exchange order or maintain a continuously reconciled book. The distinction matters even when all the arithmetic agrees.

Normalize quantity units before adding notional

A field named size can represent base units, quote notional or contracts. The OKX API specification, for example, distinguishes base-currency spot quantities from derivative contract counts and documents contract-value fields. A symbol name alone is insufficient to choose the conversion.

The worksheet’s four supported quantity definitions
Entered quantityQuote-notional calculationRequired evidence
Base assetLevel price × base quantity.Price is quote units per base unit.
Already normalized quote notionalUse the entered quote amount.It is already valued in the selected quote unit.
Linear contract countLevel price × contracts × effective base units per contract.Applicable contract specification and effective multiplier.
Inverse contract countContracts × effective quote units per contract.Fixed quote-denominated face value for this mapping.

For an invented linear contract representing 0.01 base units, 2,000 contracts at 101 normalize to 2,020 quote units. For an invented inverse contract representing 100 quote units, 20 contracts normalize to 2,000 quote units; multiplying again by 101 would be a dimensional error.

Resolve the effective value from the applicable instrument specification. If a quoted value already incorporates a multiplier, applying it again creates another duplication. The worksheet does not infer the specification, and it cannot normalize a contract quantity while its effective value is unknown.

These are notional mappings, not margin requirements, cash needed to open a leveraged position or settlement payments. Options, quanto structures and other contracts need their own verified mapping. Changing USD to USDT or USDC in a label also does not establish parity; this worksheet performs no currency conversion.

Use the DN Depth Metric Normaliser

The default uses the invented four-level book above, with asks selected, base quantities and inclusive 100/200-basis-point bands. Its initial coverage selection is limited illustrative rows. Reset restores that example, not the historical Coinbase snapshot.

DN Depth Metric Normaliser

Hypothetical example, ready to edit. Use values and evidence from one consistent context. Blank optional records remain unknown.

Midpoint of the entered best prices: 100 quote / base Selected-side cumulative inner-band depth: 2020 quote units Selected-side cumulative outer-band depth: 2836 quote units Outer-only band: outer minus inner: 816 quote units Amount double counted if inner and outer totals are added: 2020 quote units Scope of the result: Partial entered-book totals only; do not label them complete band depth.

Four illustrative price rows from one continuous-market book, one snapshot and one quote currency. Best bid and ask quantities must be positive; a zero second-level quantity represents an empty row and contributes nothing. Each entered quantity must already have the same documented unit definition. Contract value means the effective base or quote units per contract, including any applicable multiplier. Precision is exact to eight input decimals; prices on the band boundary are included. The tool does not fetch data, verify trading mode, infer missing levels, price fees, validate venue access, merge venues or promise simultaneous fills.

Change the side to bids and the example returns 990 quote units inside 1%, 1480 inside 2%, and 490 in the outer-only portion. Selecting both sides returns a descriptive total of 4316 inside 2%. That is not the amount available to buy or sell in one direction.

Prices must be positive and correctly ordered, with distinct levels on each side. Both best-price quantities must be positive because an empty row cannot establish the midpoint. A second-level quantity may be zero to represent an empty illustrative row. A band narrower than the spread can correctly contain no displayed levels.

The worksheet retains up to eight decimal places per input and uses exact integer arithmetic for band membership and products. A midpoint can need a ninth decimal. It rejects excess precision rather than rounding a level onto a boundary. Selecting complete coverage is a reader declaration, not an independent test of the source.

A correct sum still needs the correct book state

Limited-depth responses require a coverage qualification. If the returned rows stop before the outer boundary, missing levels cannot be filled with zeros. The known total describes the observed portion. It should not be relabeled complete band depth merely because the calculation succeeded.

A maintained book also depends on source-specific update semantics. The Binance Spot depth instructions require snapshot/update reconciliation, replace a price level’s quantity with the new quantity, remove zero-sized levels and warn about unseen levels beyond a limited initial snapshot. Summing successive replacement quantities would count book states as if they were additional liquidity.

Trading mode is another dependency. Coinbase documents indicative quotes during auctions, including circumstances in which the book can appear crossed. This worksheet assumes continuous-market interpretation and rejects locked or crossed input. An uncrossed appearance alone does not establish that auction mode is off; check the source record before entering it.

The captured Coinbase response explicitly reported false for auction mode. That observation belongs to its particular record. It does not certify every future response from the same endpoint or make the worksheet a trading-mode detector.

Separate books do not create one guaranteed pool

After normalizing units and bands, a researcher may sum descriptive venue totals for a clearly stated study. That sum still combines separate order books, capture times, access conditions and execution paths. Available funding, fees, transfer constraints and changes before an order arrives can prevent the displayed sum from becoming a usable fill.

Do not automatically subtract supposed duplication because the same market maker might quote on two venues, either. These snapshots do not establish participant identity, shared inventory or cancellation responses. Report the descriptive aggregation and its assumptions; do not invent an independence adjustment.

This measurement problem is narrower than the execution choices in DN’s large-position execution guide or the protocol structures in its perpetual-market architecture comparison. A normalized depth figure is an input to those decisions, not their conclusion.

Methodology, evidence and reproduction

The capture returned HTTP 200 through Coinbase’s public Level 2 endpoint. The receipt records the request and response times, provider timestamp, sequence, source headers and SHA256. Independent offline Decimal recomputation matched all six side/band totals, the included-level counts and the aggregated-size example. No live orders or account requests were made.

Download the original book JSON (lossless gzip), capture receipt and exact analysis. The offline reproduction script recalculates the saved record without network access. The separate capture script requests a new snapshot if run; it cannot recreate the historical book. See the reproduction notes.

Disclosure: The sources are public documentation and public book data. This article contains no affiliate links. The worksheet does not fetch markets, connect an account, infer hidden liquidity or simulate fills. Exact source-string arithmetic is not evidence of executable precision or future availability.

Frequently asked questions

Should I multiply a Level 2 size by its order count?

Only a source definition could justify such a conversion; Coinbase’s documented Level 2 definition explicitly does not. Its size already aggregates the orders at the price. In the saved example, multiplying by the count of eight would turn one combined quantity into eight copies.

Can I add 1% depth and 2% depth?

Not as a unique cumulative total when both describe nested bands of the same book. The inner 1% is already included in the 2% amount. Use the larger cumulative total directly, or split it into inner depth and the outer-only difference, keeping snapshot and conventions identical.

Which side measures buying capacity?

For buy-direction displayed depth, examine asks. Bid depth describes the opposite direction. Adding the two is a descriptive two-sided measure; it is not the quantity available to one buy order. For derivative modes, the quote-notional result does not imply delivery of the underlying asset.

Why can the worksheet show zero inside a narrow band?

The closest displayed price can lie outside the selected midpoint distance. With best bid 99 and best ask 101, a band narrower than 1% excludes both. That result follows from the chosen anchor and spread; it does not establish that the venue has no orders.

Does a complete snapshot guarantee the reported depth can be traded?

No. A complete returned representation still describes one state under an endpoint’s rules. Orders can change, access and account conditions matter, and fees and execution sequencing are separate. This study verified saved-data arithmetic; it did not demonstrate a fill against the displayed totals.

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.

Get the most talked about stories directly in your inbox

Join the Decentralised News briefing for independent crypto, DeFi and AI analysis. No spam, unsubscribe anytime.