How to Use ‘Market Depth’ to Study Cryptocurrency Order Book Dynamics (2024)

How to Use ‘Market Depth’ to Study Cryptocurrency Order Book Dynamics (1)

Published in

Kaiko

·

6 min read

·

Jan 21, 2020

--

Written by Clara Medalie, Research by Anastasia Melachrinos

Over the next few weeks, we will be introducing a series of API tutorials to better explain our recently launched suite of order book API endpoints. These tutorials are designed to give real-world demonstrations for how our order book data can be used by traders and researchers to better understand cryptocurrency market dynamics.

What is market depth?

As a reminder, market depth is broadly defined as the market’s ability to sustain relatively large market orders without impacting the price of the asset. Market depth considers the overall level and breadth of open orders and is calculated from the number of buy and sell orders at various price levels on each side of the mid price. The market depth for a given pair indicates the “Volume at Stake,” or the order volume present on an exchange’s order book with a non-negligible probability of being executed as a trade.

Typically, market depth is closely associated with liquidity (the degree to which an asset can be quickly bought or sold on a marketplace at stable prices). If market depth is “deep” for a given currency pair, this means that there is sufficient volume of open orders on either the bid or ask side, which ultimately makes it easier to exchange the asset at prices reflecting its intrinsic value. The weaker a market’s depth, the easier it is for larger market orders to move the price, which negatively impacts traders.

It is important to have an idea of a market’s depth before trading because relying on trade volume alone is often not sufficient for understanding a market’s liquidity (especially in cryptocurrency markets). Order book data allows traders to gain insights about cryptocurrency market dynamics not immediately apparent from trade data.

Calculation

The calculation for market depth is simply the cumulative volume of the base asset at various percentages from the mid price. For example, the “Bid Volume 10%” for BTC/USD on Coinbase would represent the volume of all bids for BTC falling within 10% of the mid price at which the order book snapshot was taken. To calculate the depth, we would add up the volume of all bids placed within this 10% price range. Conversely, the “Ask Volume 10%” would be the volume of all asks within 10% of the mid price.

API Usage

Endpoints: Order Book Snapshots: Full, Order Book Snapshots: Depth, Order Book Aggregations: Depth

Parameters:

Instrument: The market you are interested in (e.g. for BTC/USD)

Exchange: The exchange you are interested in (e.g. Coinbase)

Start_time : the date you want to begin receiving data from

End_time: The date until which you want to receive data

Interval (only ‘Aggregations: Depth’): the time interval of the aggregation ranging from 1 minute to 1 day. The data returned will be the simple average of our order book snapshots over the specified period.

Example request: https://us.market-api.kaiko.io/v1/data/order_book_snapshots.v1/exchanges/cbse/spot/btc-usd/snapshots/depth?page_size=1

Response: Ask Volume and Bid Volume ranging from .1% to 10%

How to Use ‘Market Depth’ to Study Cryptocurrency Order Book Dynamics (3)

Examples

Below, we have several examples of the types of research that can be done using our Market Depth API endpoints for 8 selected exchanges:

Bitfinex, Bitflyer, Bittrex, Bitstamp, Coinbase, Gemini, Itbit, Kraken

  1. We look at the Bid and Ask Volume 10% from January 3 -17 for a chosen pair (we choose BTC/USD because of historically high traded volumes). We observe different and sometimes contrasting volume trends over the same period on some exchanges. The market depth can be used as an indicator of a market’s liquidity, allowing investors to compare exchanges and pick which markets will give them the highest profitability.
How to Use ‘Market Depth’ to Study Cryptocurrency Order Book Dynamics (4)

2. Bid-Ask Spread across exchanges for BTC/USD and ETH/USD from January 3–17. The spread is available through Order Book Snapshots: Full, and is calculated by taking the difference between the best bid and best ask of an order book snapshot. To compare BTC/USD and ETH/USD, we divide the spread by the midprice to obtain a standardized unit of measurement that can be applied to both pairs, which normalizes price differences between them. Spread/midprice makes it easier to compare liquidity between different markets.

Typically, the smaller the spread the more liquid the market is. Bid-Ask spread is a reflection of the demand and supply for an asset, with the bids reflecting demand and the asks reflecting supply. The market depth can impact the spread — if the Ask Volume significantly outweighs the Bid Volume or the combined Bid/Ask Volume is weak, this frequently correlates with a wider spread.

How to Use ‘Market Depth’ to Study Cryptocurrency Order Book Dynamics (5)
How to Use ‘Market Depth’ to Study Cryptocurrency Order Book Dynamics (6)
How to Use ‘Market Depth’ to Study Cryptocurrency Order Book Dynamics (7)

We can visually observe correlations between market depth and spread on the charts above. For example, the Bid and Ask Volume 10% for BTC/USD on Coinbase between January 6–7 were nearly equal. By looking at the BTC/USD spread during this time, we can note that the spread decreased. When the difference between Bid and Ask Volume widened, the spreads widened as well.

3. For a comparison in whole volume units, we can use the sum of both Bid and Ask Volume 10% across exchanges from Order Book Snapshots: Depth. The unit in the two graphs below is in ETH and BTC, respectively.

How to Use ‘Market Depth’ to Study Cryptocurrency Order Book Dynamics (8)
How to Use ‘Market Depth’ to Study Cryptocurrency Order Book Dynamics (9)
How to Use ‘Market Depth’ to Study Cryptocurrency Order Book Dynamics (10)

*Gemini and Bittrex order book snapshots are not 10% (the snapshots we collect), thus can be disregarded in the charts above. All other depth calculations are accurate.

4. Hourly aggregations for Bid-Ask Volume 10% from January 3–17 using Order Book Aggregations: Depth. The charts below take the average market depth for each hour of the day over the course of two weeks. With this type of aggregation, traders can identify the average time of day where order book volume is highest or lowest. In the below figures, there is no significant change in market depth over the course of the day. However, small differences can be noted between the time of ETH/USD trading on Itbit. Many cryptocurrency markets are global and highly automated, with consistent trading during the day and night, which is why there may be no significant changes.

Some exchanges restrict user access (such as the South Korean exchanges); thus, there may be more observable differences in market depth over the course of the day when traders are confined to a particular geographic location.

How to Use ‘Market Depth’ to Study Cryptocurrency Order Book Dynamics (11)
How to Use ‘Market Depth’ to Study Cryptocurrency Order Book Dynamics (12)

Conclusion

The above charts are designed to demonstrate how our order book endpoints can be used to study cryptocurrency order book dynamics. We tried not to draw conclusions from the charts, opting to only display the data visually to allow our readers and API users a chance to draw their own insights. Studying cryptocurrency market dynamics is a complex undertaking that requires access to granular and normalized market data. We have designed our API endpoints to make it easier to work with massive datasets that would otherwise be inaccessible to the average trader.

Want to test our order book API endpoints? Reach out at hello@kaiko.com!

Additional Information:

Website: www.kaiko.com

Documentation: https://docs.kaiko.com/#introduction

API: https://www.kaiko.com/pages/market-data-api

Historical Data: https://www.kaiko.com/pages/historical-data

Newsletter: http://eepurl.com/c7WUVv

Blog: https://blog.kaiko.com/

Twitter: https://twitter.com/KaikoData

Contact Form: https://www.kaiko.com/pages/contact-1

How to Use ‘Market Depth’ to Study Cryptocurrency Order Book Dynamics (2024)

FAQs

How to calculate orderbook depth? ›

For example, the “Bid Volume 10%” for BTC/USD on Coinbase would represent the volume of all bids for BTC falling within 10% of the mid price at which the order book snapshot was taken. To calculate the depth, we would add up the volume of all bids placed within this 10% price range.

How do you analyze order book crypto? ›

An order book consists of three main elements: the bid (buy orders), the ask (sell orders), and the spread (the difference between the bid and ask prices). Understanding these components is important for interpreting crypto market actions.

How do you read market depth crypto? ›

In a typical market depth chart, buy orders are presented on the left side in green, forming what is commonly referred to as a “buy wall.” Conversely, sell orders are on the right side in red, creating a “sell wall.” The midpoint of the chart corresponds to the current market price of the cryptocurrency being analyzed.

What is the depth of the order book market? ›

Depth of Market, aka the Order Book, is a window that shows how many open buy and sell orders there are at different prices for a security. Let's say the current price is $1, the DOM will show how many orders there are at $0.90, $1.10, etc.

How to analyze market depth? ›

Market depth can be evaluated by looking at the order book of a security, which consists of a list of pending orders to buy or sell at various price levels. On any given day, there may be an imbalance of orders large enough to create high volatility, even for stocks with the highest daily volumes.

How to interpret market depth chart? ›

Here are the critical elements of a market depth chart:
  1. Price levels: The chart displays prices at which purchase and sell orders are placed. ...
  2. Bid and ask prices: The chart displays the bid price. ...
  3. Quantity of orders: The chart displays the purchase and sale orders at each price level.

How to interpret order book data? ›

The top of the book is where you'll find the highest bid and lowest ask prices. These point to the predominant market and price that need to get an order executed. The book is often accompanied by a candlestick chart, which provides useful information about the current and past state of the market.

What is the order flow strategy in crypto? ›

Here is a simple order flow analysis strategy that you can use to trade cryptocurrencies: Identify an order flow imbalance. Place a trade in the direction of the imbalance. Set a stop loss order below the imbalance to protect yourself from losses.

What is the order book indicator in crypto? ›

Identify market trends: The order book can be used to identify market trends by looking at the distribution of buy and sell orders. If there are more buy orders than sell orders at a certain price level, then this suggests that there is buying pressure and that the price is likely to move up.

What is the depth of a crypto orderbook? ›

The depth chart is a graphical representation of the order book. It visualizes the present supply and demand of a cryptocurrency on the market. The x-axis displays prices, and the y-axis shows the total of coins/tokens from all submitted orders up to that price.

What is market depth in cryptocurrency? ›

Market depth, also known as Depth of Market (DOM), is a term used in trading to represent the volume of limit orders in real-time. It's a significant indicator of a trading platform's ability to sustain relatively large market orders without impacting the price, thus serving as a measure of liquidity.

What is crypto market depth data? ›

The depth of the market is represented by the cumulative quantity of orders at various price levels. The order book constantly changes as new orders are placed and existing orders are fulfilled. Traders use this information to gauge market sentiment.

What is the difference between an order book and a market order? ›

If a particular order is placed as a market order then it gets executed immediately, assuming there are market volumes which is a normal assumption in liquid stocks. Then it shows in the order book as an executed order.

How do you calculate total depth? ›

It depends on how you are defining “depth ”.
  1. For example, if you have a rectangular box which is 2m wide and 3m long, you will need to know the volume to calculate the depth;-
  2. Volume = length x width x depth.
  3. Therefore;-
  4. Depth = Volume / (length x width)
Aug 24, 2016

How to calculate order book? ›

How to calculte it?
  1. Retrieve the buy and sell orders data from your source. ...
  2. Iterate through the data and separate the buy orders from the sell orders. ...
  3. Calculate the total volume of buy orders and sell orders. ...
  4. Compare the total volume of buy orders to the total volume of sell orders.
Dec 19, 2022

What is 2% depth crypto? ›

The "+2% depth" refers to a feature found on cryptocurrency exchange platforms that displays the order book depth for a particular trading pair. In simpler terms, it shows the volume of buy and sell orders within a 2% range of the current market price.

Top Articles
Latest Posts
Article information

Author: Arielle Torp

Last Updated:

Views: 6161

Rating: 4 / 5 (41 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Arielle Torp

Birthday: 1997-09-20

Address: 87313 Erdman Vista, North Dustinborough, WA 37563

Phone: +97216742823598

Job: Central Technology Officer

Hobby: Taekwondo, Macrame, Foreign language learning, Kite flying, Cooking, Skiing, Computer programming

Introduction: My name is Arielle Torp, I am a comfortable, kind, zealous, lovely, jolly, colorful, adventurous person who loves writing and wants to share my knowledge and understanding with you.