Get the taker buy and taker sell volume history of a spot trading pair on an exchange, returned by interval, in USD. Useful for observing the balance of buying and selling pressure in the spot market or calculating the taker buy/sell ratio.
| 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 is one interval, and time is the start time of the interval (milliseconds). Volumes are in USD.
Volumes May Be Numbers or StringsAmong the 3 records returned by the same request, some volumes were returned as numbers (e.g.,
23461495.6515) and some as strings. When parsing, convert them all to numbers before calculating, e.g., withfloat()in Python orNumber()in JavaScript.
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 intervals; each element is one interval |
data[].time | integer (int64) | Yes | Interval start time, timestamp in milliseconds (UTC) |
data[].taker_buy_volume_usd | string or number | Yes | Taker buy volume within the interval, in USD; may be a number or a string |
data[].taker_sell_volume_usd | string or number | Yes | Taker sell volume within the interval, in USD; may be a number or a string |
API Plans and Available Intervals
All API plans can call this endpoint; the difference is which 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) |
For how much historical data each interval can query, see Intervals.
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 |
|---|---|
| Gauge Spot Buying and Selling Pressure | When taker buy volume stays above taker sell volume, market buy orders in spot trading are more aggressive; the reverse means heavier spot selling pressure. |
| Calculate the Taker Buy/Sell Ratio | Divide buy volume by sell volume to get the taker buy/sell ratio; a value above 1 means taker buying dominates, which makes it suitable as a trend confirmation indicator. |
| Compare with Price Trends | Align it with Spot Pair Price OHLC History by time to see which side is in control when the price rises or falls on heavy volume. |
| Compare with Futures | Compare it with the futures Pair Taker Buy/Sell History to judge whether a price move is driven mainly by spot buying or by futures capital. |
Related Endpoints
| Endpoint | How It Differs |
|---|---|
| Spot Coin Taker Buy/Sell History | Spot taker buy/sell volume of a coin summed across multiple exchanges |
| Spot Cumulative Volume Delta (CVD) | Taker buy/sell volume of the same trading pair, plus the cumulative delta |
| Spot Footprint History | Taker buy/sell volume broken down by price range |
| Pair Taker Buy/Sell History | The same data for the futures market, with volumes returned as strings |
| Spot Supported Exchanges and Pairs | Look up valid values for exchange and symbol |
FAQ
What should I pass as symbol?
A spot trading pair, not a coin; for example, BTC spot on Binance is BTCUSDT. Exchanges write pairs differently, e.g., BTC-USDT on OKX and BTC-USD on Coinbase; go by what the Spot Supported Exchanges and Pairs endpoint returns. Note that spot and futures pairs are also written differently; for example, the OKX futures contract is BTC-USDT-SWAP, which cannot be passed to a spot endpoint.
Why are volumes sometimes numbers and sometimes strings?
A single response may mix both types, or contain only one of them. Both represent the volume in USD; when parsing, convert them all to numbers before calculating, and do not parse them as a fixed type.
I passed both start_time and end_time; why does the number of records differ from limit?
When both start and end times are passed, the time range determines which intervals are returned, and the count does not necessarily equal limit. For example, with interval=1h, limit=2 and a time range of 3 hours, 3 records were returned. If you only want a fixed number of records, omit the times (data is taken backward from the current time), or pass only start_time and limit.
Why does the value of the last record keep changing?
The last record corresponds to an interval that has not yet closed; its volume keeps accumulating with new trades, so the value may differ on every request.
Learn More: Spot Taker Buy/Sell Volume
What Are Spot Taker Buys and Taker Sells?
A taker buy uses a market order or an immediately filled limit order to take sell orders, while a taker sell takes buy orders. The taker side is willing to pay the spread to trade immediately, which better reflects how urgent traders are.
How Do Spot and Futures Taker Buys and Sells Differ?
Spot trades are actual purchases and sales of the coin: after buying, you get the coin itself. Futures trades buy and sell contracts, which are usually leveraged and can also be used to short directly. A surge in spot taker buying is usually seen as real demand, while futures taker buying may be just short-term activity by leveraged capital; looking at both together makes it easier to judge who is driving the market.
How Do I Get the Spot Total Across Multiple Exchanges?
Use the Spot Coin Taker Buy/Sell History endpoint and pass a coin and exchange_list to get the spot total across multiple exchanges.
