Futures Basis

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.

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

Update frequencyReal-time

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 Calculation

Basis 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.94 and the futures open was 81699.4; spot minus futures is 37.54, which is exactly the open_change of that interval, and 37.54 ÷ 81699.4 × 100 ≈ 0.0459, matching open_basis.

⚠️

open_change and close_change Are Not Amounts of Change

These 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.

FieldTypeAlways ReturnedDescription
codestringYesBusiness status code; "0" means success
msgstringNoResult message
dataarray of objectYesArray of basis data; each element is one interval, sorted from oldest to newest
data[].timeinteger (int64)YesInterval start time, timestamp in milliseconds (UTC)
data[].open_basisnumberYesOpen basis: the basis rate at the start of the interval, in %; 0.0428 means 0.0428%
data[].close_basisnumberYesClose 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_changenumberYesPrice 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_changenumberYesPrice difference at the end of the interval: spot price − futures price, in the quote currency; not an amount of change
successbooleanNoWhether the request succeeded; true

API Plans

Endpoint access and available intervals are listed below. See API Plans for pricing.

API PlanAccessAvailable intervals (interval)
Hobbyist✅ Yes4h, 6h, 8h, 12h, 1d, 1w
Startup✅ Yes30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 1w
Standard✅ YesAll intervals supported by this endpoint, starting at 1m
Professional✅ YesAll intervals supported by this endpoint, starting at 1m
EnterpriseAs agreed in your authorizationAs 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.

Fetch data with Python
Have AI write a Python function that gets the hourly basis of Binance BTCUSDT for the last 7 days.
Build a basis anomaly alert
Have AI write a script that alerts when the absolute value of the basis rate exceeds a threshold.
Understand this endpoint
Have AI explain the direction of the basis calculation and each returned field 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
Watch Futures Premium and DiscountTrack 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 ResearchWhen 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 RatesLook 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 BacktestingUse the level and changes of the basis rate as a sentiment factor, and backtest after aligning it with price candles by time.

Related Endpoints

EndpointHow It Differs
Pair Price OHLC HistoryPrice candles for the same futures trading pair
Spot Pair Price OHLC HistoryPrice candles for the corresponding spot trading pair
Coin Funding Rate by ExchangeCurrent funding rates on each exchange, related to the perpetual futures premium
Coinbase Premium IndexPremium of Coinbase spot relative to other exchanges
Supported Exchanges and PairsLook 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.

Query Params
string
required
Defaults to Binance

Futures exchange name, e.g., Binance, OKX. Supported: Binance, Bitget, Bybit, Crypto.com, Gate and OKX. For how to write exchange names, see the Supported Exchanges and Pairs endpoint.

string
required
Defaults to BTCUSDT

Trading pair used to calculate the basis, e.g., BTCUSDT. The pair must have both a futures market and a corresponding spot market; you can look it up with the Supported Exchanges and Pairs and Spot Supported Exchanges and Pairs endpoints.

string
required
Defaults to 1d

Data interval, e.g., 1h. Options: 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 1w.

Plan interval limits: Hobbyist starts at 4h, Startup at 30m, and Standard and Professional at 1m; Enterprise follows your actual authorization. Only intervals supported by this endpoint are available.

integer
≤ 1000
Defaults to 1000

Number of records to return; default 1000, maximum 1000. When both start_time and end_time are passed, 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 data satisfies start_time ≤ time < end_time: the start time is included and the end time is excluded. If omitted, there is no limit on the start time.

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 omitted, the current time is used.

Response

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