Spot Pair Taker Buy/Sell History

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.

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 is one interval, and time is the start time of the interval (milliseconds). Volumes are in USD.

📘

Volumes May Be Numbers or Strings

Among 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., with float() in Python or Number() in JavaScript.

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 intervals; each element is one interval
data[].timeinteger (int64)YesInterval start time, timestamp in milliseconds (UTC)
data[].taker_buy_volume_usdstring or numberYesTaker buy volume within the interval, in USD; may be a number or a string
data[].taker_sell_volume_usdstring or numberYesTaker 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 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)

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.

Calculate the taker buy/sell ratio
Have AI write a Python function that fetches hourly taker buy/sell volume for Binance BTCUSDT spot over the last 7 days and calculates the buy/sell ratio.
Compare spot and futures
Have AI write code that plots the taker buy/sell difference of the same coin's spot and futures on one chart.
Understand this endpoint
Have AI explain the parameters, the response fields and what taker buy/sell means 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
Gauge Spot Buying and Selling PressureWhen 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 RatioDivide 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 TrendsAlign 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 FuturesCompare 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

EndpointHow It Differs
Spot Coin Taker Buy/Sell HistorySpot 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 HistoryTaker buy/sell volume broken down by price range
Pair Taker Buy/Sell HistoryThe same data for the futures market, with volumes returned as strings
Spot Supported Exchanges and PairsLook 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.

Query Params
string
required
Defaults to Binance

Spot exchange name, required, e.g., Binance, OKX. For the exchanges you can query, see the Spot Supported Exchanges and Pairs endpoint.

string
required
Defaults to BTCUSDT

Spot trading pair symbol, required, e.g., BTCUSDT. Pass a trading pair here, not a coin; exchanges write pairs differently, e.g., BTC-USDT on OKX and BTC-USD on Coinbase; for the pairs you can query, see the Spot Supported Exchanges and Pairs 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.

Responses

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