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.

Name
MetricID
Unit
Interval

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 Percent From Midprice, Ask, USD

USD

1h

Order Book Depth, 1.5 Percent From Midprice, Ask, USD

USD

1h

Order Book Depth, 2 Percent From Midprice, Ask, USD

USD

1h

Order Book Depth, 3 Percent From Midprice, Ask, USD

USD

1h

Order Book Depth, 4 Percent From Midprice, Ask, USD

USD

1h

Order Book Depth, 5 Percent From Midprice, Ask, USD

USD

1h

Order Book Depth, 6 Percent From Midprice, Ask, USD

USD

1h

Order Book Depth, 7 Percent From Midprice, Ask, USD

USD

1h

Order Book Depth, 8 Percent From Midprice, Ask, USD

USD

1h

Order Book Depth, 9 Percent From Midprice, Ask, USD

USD

1h

Order Book Depth, 10 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 Percent From Midprice, Bid, USD

USD

1h

Order Book Depth, 1.5 Percent From Midprice, Bid, USD

USD

1h

Order Book Depth, 2 Percent From Midprice, Bid, USD

USD

1h

Order Book Depth, 3 Percent From Midprice, Bid, USD

USD

1h

Order Book Depth, 4 Percent From Midprice, Bid, USD

USD

1h

Order Book Depth, 5 Percent From Midprice, Bid, USD

USD

1h

Order Book Depth, 6 Percent From Midprice, Bid, USD

USD

1h

Order Book Depth, 7 Percent From Midprice, Bid, USD

USD

1h

Order Book Depth, 8 Percent From Midprice, Bid, USD

USD

1h

Order Book Depth, 9 Percent From Midprice, Bid, USD

USD

1h

Order Book Depth, 10 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:

  • Midprice=Best Bid Price+Best Ask Price2 \text{Midprice} = \frac{\text{Best Bid Price} + \text{Best Ask Price}}{2}

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:

  • Liquidity DepthX%=pPmid(1X%)Vbid(p)(for bids) \text{Liquidity Depth}_{X\%} = \sum_{p \geq P_{\text{mid}} (1 - X\%)} V_{\text{bid}}(p) \quad \text{(for bids)}

  • Liquidity DepthX%=pPmid×(1+X%)Vask(p)(for asks) \text{Liquidity Depth}_{X\%} = \sum_{p \leq P_{\text{mid}} \times (1 + X\%)} V_{\text{ask}}(p) \quad \text{(for asks)}

The total volume available on the order book at or within X% of the midprice, expressed in U.S. dollars for spot markets:

  • Liquidity DepthX%,USD=pPmid×(1X%)Vbid(p)×Pbid(for bids) \text{Liquidity Depth}_{X\%, USD} = \sum_{p \geq P_{\text{mid}} \times (1 - X\%)} V_{\text{bid}}(p) \times P_{\text{bid}} \quad \text{(for bids)}

  • Liquidity DepthX%,USD=pPmid×(1+X%)Vask(p)×Pask(for asks) \text{Liquidity Depth}_{X\%, USD} = \sum_{p \leq P_{\text{mid}} \times (1 + X\%)} V_{\text{ask}}(p) \times P_{\text{ask}} \quad \text{(for asks)}

Futures markets follow a modified formula that takes into account the contract size:

  • Liquidity DepthX%,USD=pPmid×(1X%)Vbid(p)×Contract Size×PContractSizeAsset,USD(for bids) \text{Liquidity Depth}_{X\%, USD} = \sum_{p \geq P_{\text{mid}} \times (1 - X\%)} V_{\text{bid}}(p) \times \text{Contract Size} \times P_{\text{ContractSizeAsset,USD}} \quad \text{(for bids)}

  • Liquidity DepthX%,USD=pPmid×(1+X%)Vask(p)×Contract Size×PContractSizeAsset,USD(for asks) \text{Liquidity Depth}_{X\%, USD} = \sum_{p \geq P_{\text{mid}} \times (1 + X\%)} V_{\text{ask}}(p) \times \text{Contract Size} \times P_{\text{ContractSizeAsset,USD}} \quad \text{(for asks)}

API Endpoints

Liquidity order book depth metrics can be accessed using the following endpoints:

  • timeseries/market-metrics

curl --compressed "https://api.coinmetrics.io/v4/timeseries/market-metrics?markets=coinbase-btc-usd-spot&metrics=liquidity_depth_2_percent_ask_volume_units&frequency=1h&limit_per_market=1&api_key=<your_key>"

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:

{
  "data" : [ {
    "market" : "coinbase-btc-usd-spot",
    "time" : "2023-05-04T20:00:00.000000000Z",
    "liquidity_depth_2_percent_ask_volume_units" : "9866859.984315595"
  }, {
    "market" : "coinbase-btc-usd-spot",
    "time" : "2023-05-04T21:00:00.000000000Z",
    "liquidity_depth_2_percent_ask_volume_units" : "10170729.085314134"
  }, {
    "market" : "coinbase-btc-usd-spot",
    "time" : "2023-05-04T22:00:00.000000000Z",
    "liquidity_depth_2_percent_ask_volume_units" : "10909944.294472648"
  }, {
    "market" : "coinbase-btc-usd-spot",
    "time" : "2023-05-04T23:00:00.000000000Z",
    "liquidity_depth_2_percent_ask_volume_units" : "10983104.902848331"
  }, {
    "market" : "coinbase-btc-usd-spot",
    "time" : "2023-05-05T00:00:00.000000000Z",
    "liquidity_depth_2_percent_ask_volume_units" : "11103789.859471431"
  } ]
}
  • 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?