Order Book Depth
Definition
Liquidity depth metrics measure the available order book liquidity at different percentage levels from the midprice. These metrics provide measure the market depth and assess how much volume is available for trading at different price levels. The metrics are computed in both the native units of the base asset for spot markets and in contract values for futures markets, and their equivalent value in USD.
Order Book Depth, 0.1 Percent From Midprice, Ask, Native Units
Native Units
1h
Order Book Depth, 0.2 Percent From Midprice, Ask, Native Units
Native Unit
1h
Order Book Depth, 0.3 Percent From Midprice, Ask, Native Units
Native Unit
1h
Order Book Depth, 0.4 Percent From Midprice, Ask, Native Units
Native Unit
1h
Order Book Depth, 0.5 Percent From Midprice, Ask, Native Units
Native Unit
1h
Order Book Depth, 0.6 Percent From Midprice, Ask, Native Units
Native Unit
1h
Order Book Depth, 0.7 Percent From Midprice, Ask, Native Units
Native Unit
1h
Order Book Depth, 0.8 Percent From Midprice, Ask, Native Units
Native Unit
1h
Order Book Depth, 0.9 Percent From Midprice, Ask, Native Units
Native Unit
1h
Order Book Depth, 1 Percent From Midprice, Ask, Native Units
Native Units
1h
Order Book Depth, 1.5 Percent From Midprice, Ask, Native Units
Native Units
1h
Order Book Depth, 2 Percent From Midprice, Ask, Native Units
Native Units
1h
Order Book Depth, 3 Percent From Midprice, Ask, Native Units
Native Units
1h
Order Book Depth, 4 Percent From Midprice, Ask, Native Units
Native Units
1h
Order Book Depth, 5 Percent From Midprice, Ask, Native Units
Native Units
1h
Order Book Depth, 6 Percent From Midprice, Ask, Native Units
Native Units
1h
Order Book Depth, 7 Percent From Midprice, Ask, Native Units
Native Units
1h
Order Book Depth, 8 Percent From Midprice, Ask, Native Units
Native Units
1h
Order Book Depth, 9 Percent From Midprice, Ask, Native Units
Native Units
1h
Order Book Depth, 10 Percent From Midprice, Ask, Native Units
Native Units
1h
Order Book Depth, 0.1 Percent From Midprice, Ask, USD
USD
1h
Order Book Depth, 0.2 Percent From Midprice, Ask, USD
USD
1h
Order Book Depth, 0.3 Percent From Midprice, Ask, USD
USD
1h
Order Book Depth, 0.4 Percent From Midprice, Ask, USD
USD
1h
Order Book Depth, 0.5 Percent From Midprice, Ask, USD
USD
1h
Order Book Depth, 0.6 Percent From Midprice, Ask, USD
USD
1h
Order Book Depth, 0.7 Percent From Midprice, Ask, USD
USD
1h
Order Book Depth, 0.8 Percent From Midprice, Ask, USD
USD
1h
Order Book Depth, 0.9 Percent From Midprice, Ask, USD
USD
1h
Order Book Depth, 1.5 Percent From Midprice, Ask, USD
USD
1h
Order Book Depth, 0.1 Percent From Midprice, Bid, Native Units
Native Units
1h
Order Book Depth, 0.2 Percent From Midprice, Bid, Native Units
Native Units
1h
Order Book Depth, 0.3 Percent From Midprice, Bid, Native Units
Native Units
1h
Order Book Depth, 0.4 Percent From Midprice, Bid, Native Units
Native Units
1h
Order Book Depth, 0.5 Percent From Midprice, Bid, Native Units
Native Units
1h
Order Book Depth, 0.6 Percent From Midprice, Bid, Native Units
Native Units
1h
Order Book Depth, 0.7 Percent From Midprice, Bid, Native Units
Native Units
1h
Order Book Depth, 0.8 Percent From Midprice, Bid, Native Units
Native Units
1h
Order Book Depth, 0.9 Percent From Midprice, Bid, Native Units
Native Units
1h
Order Book Depth, 1 Percent From Midprice, Bid, Native Units
Native Units
1h
Order Book Depth, 1.5 Percent From Midprice, Bid, Native Units
Native Unit
1h
Order Book Depth, 2 Percent From Midprice, Bid, Native Units
Native Units
1h
Order Book Depth, 3 Percent From Midprice, Bid, Native Units
Native Units
1h
Order Book Depth, 4 Percent From Midprice, Bid, Native Units
Native Units
1h
Order Book Depth, 5 Percent From Midprice, Bid, Native Units
Native Units
1h
Order Book Depth, 6 Percent From Midprice, Bid, Native Units
Native Units
1h
Order Book Depth, 7 Percent From Midprice, Bid, Native Units
Native Units
1h
Order Book Depth, 8 Percent From Midprice, Bid, Native Units
Native Units
1h
Order Book Depth, 9 Percent From Midprice, Bid, Native Units
Native Units
1h
Order Book Depth, 10 Percent From Midprice, Bid, Native Units
Native Units
1h
Order Book Depth, 0.1 Percent From Midprice, Bid, USD
USD
1h
Order Book Depth, 0.2 Percent From Midprice, Bid, USD
USD
1h
Order Book Depth, 0.3 Percent From Midprice, Bid, USD
USD
1h
Order Book Depth, 0.4 Percent From Midprice, Bid, USD
USD
1h
Order Book Depth, 0.5 Percent From Midprice, Bid, USD
USD
1h
Order Book Depth, 0.6 Percent From Midprice, Bid, USD
USD
1h
Order Book Depth, 0.7 Percent From Midprice, Bid, USD
USD
1h
Order Book Depth, 0.8 Percent From Midprice, Bid, USD
USD
1h
Order Book Depth, 0.9 Percent From Midprice, Bid, USD
USD
1h
Order Book Depth, 1.5 Percent From Midprice, Bid, USD
USD
1h
Details
The liquidity depth metrics follow a structured naming convention:
liquidity_depth_{X}_percent_ask_volume_units
: Order book depth on the ask side at X% of midprice in base asset units.liquidity_depth_{X}_percent_bid_volume_units
: Order book depth on the bid side at X% of midprice in base asset units.liquidity_depth_{X}_percent_ask_volume_usd
: Order book depth on the ask side at X% of midprice converted to USD.liquidity_depth_{X}_percent_bid_volume_usd
: Order book depth on the bid side at X% of midprice converted to USD.
Each liquidity depth metric represents the cumulative volume available on either the bid or ask side of the order book at a specified percentage away from the midprice.
The midprice is defined as the average of the best bid and best ask prices:
The total volume available on the order book at or within X% of the midprice, expressed in the base asset’s native units for spot markets and contract units for futures markets:
The total volume available on the order book at or within X% of the midprice, expressed in U.S. dollars for spot markets:
Futures markets follow a modified formula that takes into account the contract size:
API Endpoints
Liquidity order book depth metrics can be accessed using the following endpoints:
timeseries/market-metrics
Returns metrics for specified markets. Results are ordered by tuple (market, time)
. To fetch the next page of results use next_page_url
JSON response field.
Comma separated list of markets or market patterns like exchange-*
or exchange-*-spot
or *USDT-future
. Use the /catalog-all/markets endpoint for the full list of supported markets.
Comma separated metrics to request time series data for. Use the /catalog-all/market-metrics endpoint for the full list of supported metrics per exchange-asset combination.
["liquidations_reported_future_buy_units_1d","liquidations_reported_future_sell_units_1d"]
Frequency of the market metrics. Supported values are 1m
, 5m
, 1h
, 1d
.
1d
Start of the time interval. This field refers to the time
field in the response. Multiple formats of ISO 8601 are supported: 2006-01-20T00:00:00Z
, 2006-01-20T00:00:00.000Z
, 2006-01-20T00:00:00.123456Z
, 2006-01-20T00:00:00.123456789Z
, 2006-01-20
, 20060120
. Inclusive by default. UTC timezone by default. Z
suffix is optional and timezone
parameter has a priority over it. If start_time
is omitted, response will include time series from the earliest time available.
End of the time interval. This field refers to the time
field in the response. Multiple formats of ISO 8601 are supported: 2006-01-20T00:00:00Z
, 2006-01-20T00:00:00.000Z
, 2006-01-20T00:00:00.123456Z
, 2006-01-20T00:00:00.123456789Z
, 2006-01-20
, 20060120
. Inclusive by default. UTC timezone by default. Z
suffix is optional and timezone
parameter has a priority over it. If end_time
is omitted, response will include time series up to the latest time available.
Inclusive or exclusive corresponding start_*
parameters.
true
Inclusive or exclusive corresponding end_*
parameters.
true
Timezone name for start_time
and end_time
timestamps. This parameter does not modify the output times, which are always UTC
. Format is defined by TZ database.
UTC
Example: America/New_York
Number of items per single page of results. The value of this parameter is ignored if the endpoint supports the format
parameter and its value is set to json_stream
.
100
Where does the first page start, at the start of the interval or at the end. The value of this parameter is ignored if the endpoint supports the format
parameter and its value is set to json_stream
.
end
Possible values: How results will be sorted. Metrics are sorted by (market, time)
by default. If you want to sort 1d
metrics by (time, market)
you should choose time
as value for the sort
parameter. Sorting by time
is useful if you request metrics for a set of markets.
market
Possible values: How many entries per market result should contain. It is useful when multiple markets are requested.
Human-readable formatting of JSON responses.
false
Format of the response.
json
Possible values: Token for receiving the results from the next page of a query. Should not be used directly. To iterate through pages just use next_page_url
response field.
Examples
A sample of the Order Book Depth, 2 Percent From Midprice, Ask, Native Units for the Coinbase BTC-USD spot market is shown below:
market
: The id of the markets.time
: The time in ISO 8601 date-time format.liquidity_depth_2_percent_bid_volume_usd
: The sum of all bid orders with price within 2 percent from midprice in native units.
Frequently Asked Questions
Why are some of the values for some order book depth metrics and observations missing?
Coin Metrics calculates order book depth metrics from order book snapshots obtained from centralized exchanges. Coin Metrics will obtain the deepest and most complete order book snapshot that the exchange offers — however, the order book depth allowed varies by exchange.
If the order book depth for a market is insufficient to calculate a particular order book depth metric at X% from midprice, Coin Metrics will assign a null value to the observation. The null value was chosen instead of using the available depth to calculate a value (even if the order book depth is insufficient to calculate a value at X% from midprice) to provide transparecy to the user that the order book depth is too shallow. If a non-null value is desired, it is recommended to select a metric with a smaller X% from midprice.
For more information on the available order book depth by exchange, please see Are there any limitations to the order book depth provided by each exchange? Please note that some exchanges only provide an order book with very shallow depth, such as the top 100 levels. Therefore, a large number of nulls can be expected from markets from these exchanges.
How often are the metrics calculated?
The depth metrics are calculated once an hour.
Release History
Release Version. Market Data Feed v2.8 on May 2023.
Last updated
Was this helpful?