Spot Coin Aggregated Order Book Depth History (±Range)

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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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 Orders

Fields whose names contain bids are bid-side (buy) orders, and fields whose names contain asks are 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.

📘

range Is in %

range=1 means within 1% above and below the price, not 100%. Using different range values 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.

FieldTypeAlways ReturnedDescription
codestringYesBusiness status code; "0" means success
msgstringNoResult message
dataarray of objectYesArray of aggregated order book depth data, sorted from oldest to newest
data[].aggregated_bids_usdnumberYesTotal value of bid orders within the range across the selected exchanges, in USD
data[].aggregated_bids_quantitynumberYesTotal 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_usdnumberYesTotal value of ask orders within the range across the selected exchanges, in USD
data[].aggregated_asks_quantitynumberYesTotal 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[].timeinteger (int64)YesInterval 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 PlanAccessAvailable Intervals (interval Parameter)
Hobbyist✅ Yes4 hours and above: 4h, 6h, 8h, 12h, 1d, 1w
Startup✅ Yes30 minutes and above: 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 1w
Standard✅ YesAll intervals, minimum 1 minute (1m)
Professional✅ YesAll intervals, minimum 1 minute (1m)
Enterprise✅ YesAll 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.

Fetch data with Python
Have AI write a Python function that gets the combined BTC bid and ask depth of several major spot exchanges.
Plot bid/ask depth
Have AI write code that plots the aggregated bid and ask values as a comparison chart.
Understand this endpoint
Have AI explain the parameters and response fields in plain language.

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

ScenarioDescription
View Market-Wide Spot Buying SupportCombining 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 ExchangesCount only the exchanges you care about, e.g., just the combined total of Binance, OKX and Coinbase.
Liquidity MonitoringTrack changes in the aggregated order value, and flag that price may swing sharply when depth thins markedly.
Compare with Futures DepthCompare 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

EndpointHow 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 PairsLook 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.

Query Params
string
required
Defaults to Binance

Spot exchanges to include in the total; required; separate multiple exchanges with commas, e.g., Binance,OKX,Bybit; pass ALL in uppercase for all exchanges. Misspelled or unsupported names may simply be ignored without an error; for the exchanges you can query, see the Spot Supported Exchanges and Pairs endpoint.

string
required
Defaults to BTC

Coin symbol, required, e.g., BTC, ETH, SOL. For the coins you can query, see the Spot Supported Coins endpoint.

string
required
Defaults to 1d

Data interval, required, e.g., 4h. Options: 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 1w. The shortest interval you can use depends on your API plan: 4h for Hobbyist, 30m for Startup, and 1m for Standard and above.

int32
≤ 1000
Defaults to 1000

Number of data points to return; default 1000, accepts 1–1000. When both start_time and end_time are passed, the number of returned data points is determined by the time range and does not necessarily equal limit.

int64

Start time, timestamp in milliseconds (UTC), e.g., 1790812800000 (2026-10-01 00:00 UTC). The time of the returned data satisfies start_time ≤ time < end_time: the start time is included and the end time is excluded.

int64

End time, timestamp in milliseconds (UTC), e.g., 1792022400000 (2026-10-15 00:00 UTC). The time of the returned data satisfies start_time ≤ time < end_time: the start time is included and the end time is excluded. If the start and end times are omitted, the current time is used as the end point and the range is calculated backward by interval × limit; an end time later than the current time is treated as the current time.

string
Defaults to 1

Price range for counting orders (± percentage); optional, default 1, i.e., orders within 1% above and below the price; pass 2 for within 2% above and below. Which values return data depends on the range levels actually generated for that market; not every decimal value has data. For Binance BTCUSDT, 1, 2 and 5 all return data.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json