Get the combined depth history of a coin across the spot order books of multiple exchanges: the total value and total quantity of bid and ask orders within a specified price range (±range%). Use exchange_list to choose which exchanges are included in the total.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Available on all API plans: Hobbyist Startup Standard Professional Enterprise
The shortest interval you can use differs by API plan; see API Plans and Available Intervals below on this page.
Response Data
data is an array; each element holds the aggregated order book statistics for one point in time: the combined bid and ask orders of the exchanges in exchange_list within the range price range. time is the start time of the interval (in milliseconds); the data is an order book snapshot taken at that moment, not a cumulative or average value over the interval.
Bids Are Buy Orders, Asks Are Sell OrdersFields whose names contain
bidsare bid-side (buy) orders, and fields whose names containasksare ask-side (sell) orders. The “long” and “short” in the example comments also refer to bid and ask orders; these are buy and sell orders on the spot order book, not long or short positions.
rangeIs in %
range=1means within 1% above and below the price, not 100%. Using differentrangevalues lets you compare how thick the orders are near the price and farther away.
200 · application/json · See the response example in the right panel.
| Field | Type | Always Returned | Description |
|---|---|---|---|
code | string | Yes | Business status code; "0" means success |
msg | string | No | Result message |
data | array of object | Yes | Array of aggregated order book depth data, sorted from oldest to newest |
data[].aggregated_bids_usd | number | Yes | Total value of bid orders within the range across the selected exchanges, in USD |
data[].aggregated_bids_quantity | number | Yes | Total quantity of bid orders within the range across the selected exchanges; when only Binance is selected, it is a number of coins and equals the bids_quantity of Binance BTCUSDT |
data[].aggregated_asks_usd | number | Yes | Total value of ask orders within the range across the selected exchanges, in USD |
data[].aggregated_asks_quantity | number | Yes | Total quantity of ask orders within the range across the selected exchanges; when only Binance is selected, it is a number of coins and equals the asks_quantity of Binance BTCUSDT |
data[].time | integer (int64) | Yes | Interval start time, timestamp in milliseconds (UTC) |
API Plans and Available Intervals
All API plans can call this endpoint; they differ in the data intervals they can use: the lower the plan, the longer the shortest available interval. For the price of each plan, see API Plans.
| API Plan | Access | Available Intervals (interval Parameter) |
|---|---|---|
| Hobbyist | ✅ Yes | 4 hours and above: 4h, 6h, 8h, 12h, 1d, 1w |
| Startup | ✅ Yes | 30 minutes and above: 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 1w |
| Standard | ✅ Yes | All intervals, minimum 1 minute (1m) |
| Professional | ✅ Yes | All intervals, minimum 1 minute (1m) |
| Enterprise | ✅ Yes | All intervals, minimum 1 minute (1m) |
Use This Endpoint with AI
Pick a task and click Open in ChatGPT or Open in Claude: the AI reads this page first and then gives you the result. You can also click Copy and paste the full prompt into the AI tool you use.
This endpoint provides data through the REST API. Use the prompts above to have AI write the request code. For the tools available through MCP, see CoinGlass MCP.
Use Cases
| Scenario | Description |
|---|---|
| View Market-Wide Spot Buying Support | Combining the spot bid and ask orders of multiple exchanges reflects overall buying support and selling pressure better than looking at a single exchange. |
| Choose Your Exchanges | Count only the exchanges you care about, e.g., just the combined total of Binance, OKX and Coinbase. |
| Liquidity Monitoring | Track changes in the aggregated order value, and flag that price may swing sharply when depth thins markedly. |
| Compare with Futures Depth | Compare with the futures version, Coin Aggregated Order Book Depth History (±Range), to judge whether the spot or the futures order books have the stronger bids or asks. |
Related Endpoints
| Endpoint | How It Differs |
|---|---|
| Spot Pair Order Book Depth History (±Range) | Order book depth for a single spot trading pair on a single exchange |
| Spot Order Book History (Heatmap) | Spot order details for each individual price level |
| Coin Aggregated Order Book Depth History (±Range) | Futures version of the same data |
| Spot Supported Exchanges and Pairs | Look up the exchange names you can use in exchange_list |
FAQ
How do I fill in exchange_list?
Separate multiple exchanges with commas, e.g., Binance,OKX,Coinbase; to include all exchanges, pass ALL in uppercase. Misspelled or unsupported names may simply be ignored without an error, so it is a good idea to check the names with the Spot Supported Exchanges and Pairs endpoint first.
If I select only one exchange, is the result the same as the pair order book depth?
For example, the values returned with exchange_list=Binance and symbol=BTC are exactly the same as the values for Binance BTCUSDT at the same point in time in Spot Pair Order Book Depth History (±Range). When you need the depth of a specific trading pair on a given exchange, just use that endpoint.
Do bids and asks mean longs and shorts?
They are not long and short positions. aggregated_bids_* is the total of bid orders and aggregated_asks_* is the total of ask orders; they count the buy and sell orders within the range on the spot order book. The “long” and “short” in the example comments on this page simply mean bid and ask orders.
Why did I get 3 data points when I passed limit=2?
When both start_time and end_time are passed, the number of returned data points follows the time range and can exceed limit. With interval=1h, a 3-hour time range and limit=2, 3 data points were returned. If you only want a fixed number of data points, pass only limit, or trim the results yourself after you receive them.
Learn More: Multi-Exchange Spot Order Book Depth
Why Look at Aggregated Depth Across Multiple Exchanges?
The spot liquidity of a coin is spread across multiple exchanges, so looking at only one platform can easily overestimate or underestimate the real capacity to absorb orders. Aggregated depth is closer to the buy and sell volume the whole market can absorb.
What Does Thinning Aggregated Depth Mean?
When there are fewer orders near the price, even modest trades can move the price sharply; this often happens before major data releases or before sharp market swings.
How Do I View the Depth of a Single Exchange?
Use Spot Pair Order Book Depth History (±Range) to query by exchange and trading pair.
