# Compare market depth between exchanges

Market depth is a measure of how well a market can handle large orders without impacting asset prices. A "deep" market has enough volume on both sides - bids (buy orders) and asks (sell orders) - to handle large orders while keeping prices stable. Market depth varies between exchanges and over time, so traders often monitor it across different platforms to determine the best market on which to trade.&#x20;

<figure><img src="https://815309201-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzwO3AMVXsp37KK2FngVc%2Fuploads%2FDexNU2bMEfbst1K2oH6I%2FMarket%20Depth.png?alt=media&#x26;token=faffb4b1-2682-42fc-8f09-804631fddd2d" alt=""><figcaption><p>This chart shows the 1% market depth for all trading pairs with BTC as the base asset. It shows the USD value of all bids <code>(bid_volume_1)</code> and asks (<code>ask_volume_1</code>) within 1% of the mid-price.</p></figcaption></figure>

### <mark style="color:blue;">How to build the request</mark>

Use [Market Metrics](https://app.gitbook.com/s/ltAbhvgBfrAWlpUnC7ys/monitoring-solutions/kaiko-market-explorer/assets) (assets) with the following parameters to replicate this chart.

| Paramater   | Value                    |
| ----------- | ------------------------ |
| asset       | btc                      |
| start\_time | 2022-11-05T00:00:00.000Z |
| end\_time   | 2022-11-28T00:00:00.000Z |
| interval    | 1d                       |
| sources     | true                     |

Here's an example of a cURL string request using the values above:

{% code overflow="wrap" %}

```url
curl -X GET "https://us.market-api.kaiko.io/v2/data/analytics.v2/asset_metrics?asset=btc&start_time=2022-11-05T00:00:00.000Z&end_time=2022-11-28T00:00:00.000Z&interval=1d&sources=true" -H "accept: application/json" -H "X-Api-Key: YOUR_API_KEY"
```

{% endcode %}

When you receive your response, search for the following fields to find the data you need:

* `timestamp`&#x20;
* `buy_market_depths`:
  * exchange
  * volume\_usds: {bid\_volume\_0\_1}
* `sell_market_depth`s:&#x20;
  * exchange&#x20;
  * volume\_usds: {ask\_volume\_0\_1}
