Aggregated Open Interest OHLC History

Get a coin's total futures open interest across multiple integrated exchanges, returned as candles (open, high, low, close). Suited to watching leveraged capital flow into and out of the whole market, and whether open interest and price move in the same direction.

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 candle intervals you can query differ by API plan; see API Plans and Available Intervals below on this page.

Response Data

data is an array; each element is one candle, and time is the start time of the interval. Open interest values are mostly returned as strings; in the most recent candle, which has not yet closed, some fields may be returned as numbers. Convert them all to numbers before calculating.

📘

About the unit Parameter

Pass lowercase usd or coin. Currently, only lowercase coin returns coin quantities; omitting unit returns values in USD. Quantities returned with unit=coin involve contract face values and price conversions, and must not be treated uniformly as native coin quantities reported directly by each exchange.

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 candles; each element is one candle
data[].timeinteger (int64)YesInterval start time, timestamp in milliseconds (UTC)
data[].openstring or numberYesAggregated open interest at the start of the interval; the unit is determined by unit (usd for USD, coin for the number of coins)
data[].highstring or numberYesHighest aggregated open interest within the interval
data[].lowstring or numberYesLowest aggregated open interest within the interval
data[].closestring or numberYesAggregated open interest at the end of the interval; for an interval that has not yet closed, the latest value

API Plans and Available Intervals

All API plans can call this endpoint; they differ in the candle intervals they can query: the lower the plan, the longer the shortest available interval. For the price of each plan, see API Plans.

API PlanAccessAvailable Candle 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.

Fetch data with Python
Have AI write a Python function that fetches daily open interest candles for BTC over the last 30 days and returns a DataFrame.
Fetch data with JavaScript
Have AI write a Node.js function that fetches daily open interest candles for BTC over the last 30 days.
Understand this endpoint
Have AI explain the response fields and what changes in open interest and price mean, in plain language.

Want AI to query real-time data without writing code? Connect CoinGlass MCP in Claude or Cursor and ask in plain language, for example: “Has BTC's market-wide futures open interest increased or decreased over the last 7 days?”

Use Cases

ScenarioDescription
Judge Trend StrengthRising price with increasing open interest usually indicates new capital entering; rising price with falling open interest is more likely driven by shorts closing their positions.
Monitor Leverage RiskA rapid rise in open interest over a short time means leverage is building up; set up alerts together with Coin Liquidation History.
Build Quant FactorsUse the open interest rate of change and the degree of divergence between open interest and price as timing or risk-control factors, and run long-horizon backtests on the full daily history.
Generate Market ReportsShow market-wide open interest changes for major coins in daily and weekly reports to quickly convey the market's leverage level.

Related Endpoints

EndpointHow It Differs
Open Interest OHLC HistoryOpen interest candles for a single exchange and a single trading pair
Aggregated Stablecoin-Margined Open Interest (OHLC)Market-wide open interest of stablecoin-margined futures only
Aggregated Coin-Margined Open Interest (OHLC)Market-wide open interest of coin-margined futures only
Coin Open Interest by ExchangeDistribution of current open interest across exchanges
Funding Rate OHLC HistoryUse with open interest to judge how crowded longs or shorts are

FAQ

Which exchanges does aggregated open interest include?

It only sums markets that this endpoint has integrated and that have data; exchanges without a corresponding trading pair or without data are not counted, so the result does not necessarily include all markets on all exchanges. Supported exchanges and trading pairs: for futures, get the list of supported exchanges and trading pairs from the Supported Exchanges and Pairs endpoint; for spot, get it from the Spot Supported Exchanges and Pairs endpoint. To specify which exchanges are included, use Aggregated Stablecoin-Margined Open Interest (OHLC) or Aggregated Coin-Margined Open Interest (OHLC), which support filtering exchanges with exchange_list.

Why do the values of the last candle keep changing?

The last candle corresponds to an interval that has not yet closed; close is the latest open interest.

Why don't the values match the exchange's official website?

This endpoint is the total across multiple exchanges; for a single exchange's values, query Open Interest OHLC History. In addition, platforms may differ in the points in time at which they take their statistics and in their pricing methods.

Learn More: Bitcoin Open Interest

What Is Open Interest (OI)?

Open interest is the total number of contracts that have not yet been closed or delivered, reflecting how much capital in the market is still holding long and short positions. Rising open interest means more positions are being opened than closed; falling open interest means capital is leaving.

How Does Bitcoin Open Interest Relate to Price?

Price and open interest rising together is often seen as the trend being backed by new capital; rising price with falling open interest is mostly driven by shorts closing positions; falling price accompanied by a sharp drop in open interest often corresponds to concentrated liquidations.

How Do I Query Open Interest for Ethereum, SOL and Other Coins?

Just change symbol to a coin such as ETH, SOL or XRP. For the list of coins you can query, see the Supported Coins endpoint.

Query Params
string
required
Defaults to BTC

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

string
enum
required
Defaults to 1d

Candle interval. 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 candles to return; default 1000, accepts 1–1000. When you pass both start_time and end_time, the number of records returned 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 candles 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 candles satisfies start_time ≤ time < end_time: the start time is included and the end time is excluded. For example, with interval=1d, the two example times above return 14 candles, from October 1 to October 14.

string
Defaults to usd

Unit of the returned values: usd for USD and coin for coin quantities. Use lowercase; omitting this parameter returns values in USD.

Responses

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