Get the basis history of a futures trading pair on a given exchange relative to spot: the basis rate (%) at the start and end of each interval and the price difference between spot and futures. Useful for watching how the futures premium or discount changes and for spot-futures arbitrage research.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Available on all API plans: Hobbyist Startup Standard Professional Enterprise
Response Data
data is an array; each element is one interval, sorted from oldest to newest, and time is the start time of the interval (milliseconds). open_basis and close_basis are basis rates and are already percentage values: 0.0428 means 0.0428%. open_change and close_change are the price difference between spot and futures, in the quote currency of the trading pair (e.g., USDT), not percentages.
Direction of the Basis CalculationBasis rate = (spot price − futures price) ÷ futures price × 100, and price difference = spot price − futures price. A positive value means the spot price is above the futures price (futures at a discount), and a negative value means futures at a premium. This is the opposite of the common “futures price − spot price” direction, so pay attention to the sign when reading the values. For example, in the hour starting at 2026-10-20 01:00 UTC, the Binance BTCUSDT spot open was
81736.94and the futures open was81699.4; spot minus futures is37.54, which is exactly theopen_changeof that interval, and 37.54 ÷ 81699.4 × 100 ≈ 0.0459, matchingopen_basis.
open_changeandclose_changeAre Not Amounts of ChangeThese two fields are the difference between the spot price and the futures price at the start (end) of the interval, in the quote currency of the trading pair (e.g., USDT); they are neither percentages nor the amount of change from the previous interval.
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 basis data; each element is one interval, sorted from oldest to newest |
data[].time | integer (int64) | Yes | Interval start time, timestamp in milliseconds (UTC) |
data[].open_basis | number | Yes | Open basis: the basis rate at the start of the interval, in %; 0.0428 means 0.0428% |
data[].close_basis | number | Yes | Close basis: the basis rate at the end of the interval, in %; for an interval that has not yet ended, this is the latest value |
data[].open_change | number | Yes | Price difference at the start of the interval: spot price − futures price, in the quote currency of the trading pair (e.g., USDT); not an amount of change |
data[].close_change | number | Yes | Price difference at the end of the interval: spot price − futures price, in the quote currency; not an amount of change |
success | boolean | No | Whether the request succeeded; true |
API Plans
Endpoint access and available intervals are listed below. See API Plans for pricing.
| API Plan | Access | Available intervals (interval) |
|---|---|---|
| Hobbyist | ✅ Yes | 4h, 6h, 8h, 12h, 1d, 1w |
| Startup | ✅ Yes | 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 1w |
| Standard | ✅ Yes | All intervals supported by this endpoint, starting at 1m |
| Professional | ✅ Yes | All intervals supported by this endpoint, starting at 1m |
| Enterprise | As agreed in your authorization | As agreed in your authorization |
Choose only values listed in this page’s interval parameter; an arbitrary value above the minimum is not necessarily supported. These restrictions concern sampling or calculation intervals, not update frequency or available history length.
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 |
|---|---|
| Watch Futures Premium and Discount | Track how far the futures price deviates from spot to judge whether the market is chasing gains (futures premium widening) or seeking safety (futures at a discount). |
| Spot-Futures Arbitrage Research | When the basis rate deviates significantly, you can study the arbitrage opportunity of buying spot and selling futures (or the reverse), and use the price difference to estimate the return per unit. |
| Compare with Funding Rates | Look at it together with Coin Funding Rate by Exchange to judge whether the perpetual futures premium is reflected in the funding rate. |
| Quant Factors and Backtesting | Use the level and changes of the basis rate as a sentiment factor, and backtest after aligning it with price candles by time. |
Related Endpoints
| Endpoint | How It Differs |
|---|---|
| Pair Price OHLC History | Price candles for the same futures trading pair |
| Spot Pair Price OHLC History | Price candles for the corresponding spot trading pair |
| Coin Funding Rate by Exchange | Current funding rates on each exchange, related to the perpetual futures premium |
| Coinbase Premium Index | Premium of Coinbase spot relative to other exchanges |
| Supported Exchanges and Pairs | Look up valid values for exchange and symbol |
FAQ
Is a basis of 0.0428 0.0428% or 4.28%?
It is 0.0428%. open_basis and close_basis are already percentage values; there is no need to multiply by 100 when displaying them.
Is open_change the amount of change in the basis?
No. open_change and close_change are the spot price minus the futures price, in the quote currency (e.g., USDT). In the hour starting at 2026-10-20 01:00 UTC, the Binance BTCUSDT spot open was 37.54 USDT higher than the futures open, so the open_change of that interval is 37.54.
What should I pass as symbol?
A trading pair, e.g., BTCUSDT, and the pair must have both a futures market and a corresponding spot market. For valid values, go by what the Supported Exchanges and Pairs and Spot Supported Exchanges and Pairs endpoints return.
I passed start_time and end_time, so why does the number of records differ from limit?
When both start and end times are passed, the number of records returned is determined by the time range. For example, with interval=1h and limit=2, a time range covering 3 hours returned 3 records. If you want a fixed number of records, pass only limit, or trim the results yourself after you get them.
Learn More: Futures Basis
What Is Futures Basis?
Basis is the difference between the futures price and the spot price of the same asset. When the futures price is above spot, it is called a premium; when it is below spot, it is called a discount. The basis rate divides this difference by the price, which makes it easy to compare across coins and price levels.
What Does a Positive or Negative Basis Indicate?
A futures premium usually indicates stronger demand for longs and a heated market mood; a futures discount usually indicates stronger demand for shorting or hedging. Note that this endpoint calculates it as “spot price − futures price”: a positive value means the spot price is higher (futures at a discount), and a negative value means futures at a premium.
How Is Basis Related to the Funding Rate?
Perpetual futures use the funding rate to pull the futures price toward the spot price: when futures stay at a premium, the funding rate tends to be positive, and when they stay at a discount, it tends to be negative. Looking at both together is more reliable; you can query funding rates with Coin Funding Rate by Exchange or Funding Rate OHLC History.
