Get historical data for the Coinbase Bitcoin Premium Index: the BTC price difference (USD) between Coinbase Pro and Binance, the premium rate and the Coinbase close price, returned per interval. Commonly used to gauge buying and selling pressure in the US market.
| 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 holds the data for one interval, sorted from oldest to newest. time is the start time of the interval, in seconds. This endpoint only provides data for bitcoin (BTC) and has no coin parameter.
Returned times are in seconds
start_timeandend_timetake 13-digit millisecond timestamps, but the returnedtimeis a 10-digit timestamp in seconds; multiply it by 1000 before using a returned time in another query.
The premium rate is already a percentage value
premium_rateis in %:-0.1267means -0.1267% and0.0261means 0.0261%; there is no need to multiply by 100.
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 sorted by time; each element is one interval |
data[].time | integer | Yes | Interval start time, timestamp in seconds (UTC) |
data[].premium | number | Yes | Premium amount in USD: the Coinbase price minus the Binance price; a positive value means Coinbase is more expensive (premium), a negative value means it is cheaper (discount) |
data[].premium_rate | number | Yes | Premium rate in %; equals premium ÷ (coinbase_price − premium) × 100, i.e., the premium amount as a percentage of the Binance price |
data[].coinbase_price | number | Yes | Coinbase BTC close price for the interval, in USD |
success | boolean | No | Whether the request succeeded; returns 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 |
|---|---|
| Track US Capital Flows | Coinbase users are mainly US investors and institutions; a positive premium is often read as strong US buying, while a discount indicates heavier selling pressure. |
| Market Analysis Aid | If the price rises while the premium widens, the rally is supported by spot buying; if the price rises but the premium turns negative, be cautious. |
| Unusual Premium Alerts | Push alerts when the premium rate changes sharply within a short time, to catch large capital moving in or out. |
| Build Quant Factors | Use the premium rate as a timing or risk-control factor and backtest it together with price, funding rates and more. |
Related Endpoints
| Endpoint | How It Differs |
|---|---|
| Bitcoin ETF Flows History | Daily net inflows and net outflows of US bitcoin ETFs |
| Bitfinex Margin Long/Short Positions | Quantities of BTC and ETH margin longs and shorts on Bitfinex |
| Spot Pair Price OHLC History | Price candlesticks for spot trading pairs on each exchange |
| Funding Rate OHLC History | Long/short sentiment indicator for the futures market |
FAQ
What does a premium_rate of -0.1267 mean?
It means -0.1267%. premium_rate is already a percentage value: it equals the premium amount divided by the Binance price, multiplied by 100; e.g., -103.53 ÷ 81736.94 × 100 ≈ -0.1267.
Why is time a 10-digit number?
The returned time is a timestamp in seconds, while the time parameters take milliseconds. For how to convert, see Timestamps and Pagination.
Can I query ETH or other coins?
No. This endpoint only provides Coinbase premium data for bitcoin (BTC) and has no coin parameter.
Can I write the time parameter as startTime?
No. The parameter names use underscores: start_time and end_time. The endpoint does not recognize camelCase forms such as startTime or endTime; passing them has no effect.
Learn More: Coinbase Premium Index
What Is the Coinbase Premium Index?
It measures the difference between the price of bitcoin on Coinbase Pro and on Binance at the same moment. Coinbase users are mainly US investors, so the premium is often used to gauge buying and selling pressure in the US market.
What Does a Positive Coinbase Premium Indicate?
It indicates that the price on Coinbase is higher than on Binance and US buyers are willing to pay more, which is usually seen as US capital actively buying; a persistently negative premium indicates heavier selling pressure in the US market.
How Does the Premium Relate to the Bitcoin Price?
The premium reflects differences in supply and demand between markets. A price rise accompanied by a widening premium indicates that the rally is supported by spot buying; if the price rises but the premium weakens, the rally may be driven mainly by other markets or by futures.
