Crypto data

Crypto price API

Live quotes, OHLCV history and coin profiles for Bitcoin, Ethereum and other cryptocurrencies, in USD, EUR or BTC, over the same API key as stocks.

Symbol format
BTC-USD: the coin, a hyphen, the currency it is priced in
Trading hours
Around the clock, weekends included
Quote freshness
About a minute, at any hour
Daily history
From each coin's first day at the source: BTC-USD from September 2014
Intraday bars
1-minute for 7 days, up to 90-minute for 59 days, hourly for 729 days

Symbol format

A coin is its ticker, a hyphen and the currency it is priced in: BTC-USD is bitcoin in US dollars and BTC-EUR the same coin in euros. The quote side can be another coin, as in ETH-BTC. Stablecoins and tokens follow the same pattern.

  • BTC-USDBitcoin in US dollars
  • ETH-USDEther in US dollars
  • SOL-USDSolana in US dollars
  • USDT-USDTether in US dollars
  • BTC-EURBitcoin in euros
  • ETH-BTCEther priced in bitcoin

Example request

Send your key in the x-api-key header. A symbol the API has not seen before is fetched on the first call.

curl -H "x-api-key: $KEY" \
  "https://api.stockdataapi.com/v6/finance/quote?symbols=BTC-USD,ETH-USD,BTC-EUR"
Response, trimmed
{
  "quoteResponse": {
    "result": [
      {
        "symbol": "BTC-USD",
        "shortName": "Bitcoin USD",
        "quoteType": "CRYPTOCURRENCY",
        "currency": "USD",
        "fromCurrency": "BTC",
        "marketState": "REGULAR",
        "regularMarketPrice": 75803.57,
        "regularMarketChangePercent": 0.1989,
        "regularMarketVolume": 26833031168,
        "marketCap": 1524237860864,
        "circulatingSupply": 20108684,
        "regularMarketTime": 1794024434
      }
    ],
    "error": null
  }
}
json

Good to know

  • Crypto never closes, so a quote's marketState reads REGULAR at any hour and the one-minute refresh window always applies.
  • Volume is a traded value, not a number of coins: for BTC-USD it is in US dollars.
  • A daily bar runs from 00:00 UTC, and the bar for the day in progress is drawn from the live quote, so the last candle tracks the market.

Questions

Anything else is covered in the documentation, or on this page as Markdown for an AI assistant.

Which cryptocurrencies can I get prices for?

Any coin or token the source quotes, in US dollars and other currencies. A symbol nobody has asked for before is fetched on the first request, and the search endpoint finds a coin's symbol from its name.

Does crypto data update on weekends?

Yes. Crypto trades around the clock, so a quote older than about a minute is refreshed whenever you ask, weekends included. Daily bars roll over at 00:00 UTC.

How far back does crypto price history go?

To each coin's first day at the source: September 2014 for Bitcoin (BTC-USD) and November 2017 for Ether (ETH-USD). Intraday bars cover the last 7 days at one minute and about two years at one hour.

Can I get crypto prices in euros or in bitcoin?

Yes. Change the currency in the symbol: BTC-EUR prices bitcoin in euros and ETH-BTC prices ether in bitcoin.

Is crypto data included in the free plan?

Yes. Every plan includes every endpoint and every market, with full history.