Skip to content
DocsChartsOrder book depthLast updated Nov 2, 2026

Order book depth

Buy and sell orders stacked away from the price. Sample data: an order book around a mid of 64,210.

Open in
Market depthBTC / USDT order book within ±1% of the mid price 64,210: cumulative bids reach 112 BTC at 63,610, cumulative asks 98 BTC at 64,810.12080400MID 64,21063.6K63.9K64.5K64.8KBIDSASKS
Market depth
SidePriceCumulative size (BTC)
Bid64,17010
Bid64,13021
Bid64,09024
Bid64,05027
Bid64,01040
Bid63,97043
Bid63,93049
Bid63,89056
Bid63,85067
Bid63,81082
Bid63,77086
Bid63,73090
Bid63,69097
Bid63,650100
Bid63,610112
Ask64,2503
Ask64,2907
Ask64,33014
Ask64,37017
Ask64,41021
Ask64,45038
Ask64,49041
Ask64,53046
Ask64,57052
Ask64,61055
Ask64,65064
Ask64,69084
Ask64,73088
Ask64,77094
Ask64,81098
Market depthBTC / USDT order book within ±1% of the mid price 64,210: cumulative bids reach 112 BTC at 63,610, cumulative asks 98 BTC at 64,810.12080400MID 64,21063.6K63.9K64.5K64.8KBIDSASKS
Market depth
SidePriceCumulative size (BTC)
Bid64,17010
Bid64,13021
Bid64,09024
Bid64,05027
Bid64,01040
Bid63,97043
Bid63,93049
Bid63,89056
Bid63,85067
Bid63,81082
Bid63,77086
Bid63,73090
Bid63,69097
Bid63,650100
Bid63,610112
Ask64,2503
Ask64,2907
Ask64,33014
Ask64,37017
Ask64,41021
Ask64,45038
Ask64,49041
Ask64,53046
Ask64,57052
Ask64,61055
Ask64,65064
Ask64,69084
Ask64,73088
Ask64,77094
Ask64,81098

Installation

  1. 1

    Set up the registry once

    This chart is free in Hearth and MIT licensed: no token. Add @chartory to components.json once (the URL alone, no headers), or skip this when another chart is already installed.

    Installation guide
  2. 2

    Add the chart

    One command adds the Order book depth component to your project.

    npx shadcn add @chartory/order-book-depth
  3. 3

    Use it

    Pass your rows. The props are the Figma properties.

    usage.tsx
    import { OrderBookDepth }  from "@/components/chartory/order-book-depth"<OrderBookDepth  data={btcDepth}  size="m"  legend/>

Props

<OrderBookDepth>

Every prop but data is a Figma property with the same name and values.

PropTypeDefault
data: The chart's data. The tables below list every field.OrderBookDepthDataRequired
size: The size class. Each one is laid out again from the data."xs" | "s" | "m" | "l""m"
legend: Shows the legend row under the plot.booleantrue

OrderBookDepthData

The data prop: one object for the whole chart.

PropTypeDefault
bids: The bids: [price, quantity].[number, number][]Required
asks: The asks: [price, quantity].[number, number][]Required
mid: The mid price.numberRequired
min: The bottom of the value scale.numberRequired
max: The top of the value scale.numberRequired
qmax: The top of the quantity scale.numberRequired
ticks: The axis tick labels.string[]Required
midText: The mid price's label.stringRequired
xt: The x axis ticks: [value, label] pairs.[number, string][]Required

The data as a JSON Schema: schemas/order-book-depth.json

Order book depth chart: a React and Figma chart in four sizes

What does an order book depth chart show?

An order book depth chart shows cumulative bids on one side of the mid price and asks on the other, so you see how much the price could move before it hits a wall. Use it for exchanges, trading desks and liquidity reviews.

Chartory ships it as a Figma component and a React component with the same name. The code installs from the shadcn registry with one command and lands in your project as a file you own.

What is the Order book depth component?

It is one <OrderBookDepth> component. Its props are the Figma properties with the same names and values, and the props table above lists them. The data is bids and asks with price and cumulative size.

Sizes XS, S, M and L re-lay the chart out from the data instead of scaling it, so labels stay readable at every size.

When should I use it?

  • Are bids and asks shown? Yes means the order book depth fits.
  • Is it now, not over a day? Yes means the order book depth fits.
  • Is it one pair? Yes means the order book depth fits.

When does another type fit better?

  • Price over time. Use Candlestick instead.
  • Volume by price over time. Use Volume profile instead.
  • Many pairs compared. Use Correlation triangle instead.

Depth chart questions

Installing, data, Figma and plans.

  • Yes. It installs through the shadcn registry with the shadcn CLI, and the file lands in your project.

Stay in the loop

New charts, by email.

Get an email when new chart types and releases ship.

Unsubscribe any time.