BitcoinDatabase.com

Query the chain · OHLC API

Bitcoin OHLC API for OHLCV candles and price history

OHLC data, the open, high, low and close of each time bucket, plus volume, is how almost every chart and backtest reads price. The Bitcoin OHLC API serves those candles at daily and intraday intervals across the full history, so you can backfill a model, draw a chart, or line price up against what was happening on-chain, without stitching together a market feed and a separate blockchain source yourself.

The difference here is that the candles live in the same schema as the indexed chain. Pull OHLCV over REST for a dashboard, or run SQL to join a day's close to that day's exchange inflows, active addresses or realized price in a single query. Because price and on-chain data sit together, you answer questions a pure price API cannot, like what moved on-chain on the days a candle gapped. This is informational market and on-chain data, not a trading signal or investment advice.

or try it below ↓

REST API · SQL · dashboards · indexed from genesis

Query Console
btc
try:

Hit Run to query the fully-indexed Bitcoin blockchain.

BTC

30-day trend

informational on-chain data · not financial advice

REST API · SQL · dashboards, one indexed dataset. Querying the indexed Bitcoin blockchain ...
REST API SQL DASHBOARDS WEBHOOKS CSV EXPORT

Indexed from genesis queryable in seconds

On-chain data not financial advice

Why it works

What you get with ohlc api

OHLCV at every interval

Get open, high, low, close and volume candles at daily and intraday resolutions across the full price history, so you can backfill a backtest, render a chart or resample to your own timeframe from one clean series.

Joined to the chain

Because candles and the indexed chain share one schema, you can join a day close to that day exchange flows, active addresses, realized price or supply in profit in a single SQL query, instead of reconciling two separate feeds.

Backfill and keep current

Pull years of history in one pass to seed a model, then read the latest candles over REST as new blocks and market data land, so your charts and jobs stay current without you maintaining a price pipeline.

What it handles

The indexed Bitcoin chain, queryable your way

Look up an address, a transaction, a UTXO, the rich list or an on-chain metric, by REST API, SQL or dashboard. The same authoritative data, reconciled block-by-block against the canonical chain, without running a node.

  • Fetch OHLCV candles at daily and intraday intervals
  • Backfill full price history for a backtest or model
  • Join a day close to on-chain metrics in one SQL query
  • Resample candles to any timeframe you need
  • Read the latest candles over REST for live charts
GET /v1/address/{addr} query result
200 · JSON
{
  "address": "bc1qxy2k…l0wdv8",
  "balance_btc": 68432.10,
  "balance_usd": 4612165420,
  "tx_count": 1284,
  "unspent_outputs": 37,
  "first_seen": "2014-02-09"
}
indexed from genesis · to the satoshi ✓ reconciled block-by-block

Why BitcoinDatabase

One platform, queryable three ways

Not a raw node to sync, not an indexer to build, and not five vendors to stitch together. The fully-indexed Bitcoin blockchain, available as a REST API, as SQL, and as dashboards, on one authoritative dataset.

REST API

Typed JSON for addresses, transactions, balances, UTXOs and metrics. Drop it into apps, wallets, explorers and agents with curl, Python or our SDKs.

SQL access

Run SQL directly against the indexed Bitcoin dataset for ad-hoc analysis, cohorts and exports, the same data the API and dashboards read from.

Compliance-first

Informational on-chain data and analytics only. Entity labels and flow tracing are framed as tooling to support a regulated team's own review, not accusations.

Good questions

Questions about ohlc api

It returns OHLCV candles, the open, high, low, close and volume for each time bucket, at daily and intraday intervals across the full price history. You can pull the series over REST for a chart or model, or query it in SQL and join it to on-chain data like exchange flows and active addresses in the same call.
A price-only API gives you candles and nothing else. Because BitcoinDatabase holds the candles in the same schema as the fully-indexed chain, you can line each candle up against what happened on-chain that day, exchange inflows, realized price, supply in profit, in one query. This is informational market and on-chain data, not a trading signal.

Explore more

More ways to query Bitcoin with BitcoinDatabase

Stop running a node. Just query Bitcoin.

Run your first query now and get on-chain data back by REST API, SQL or dashboard, indexed from the genesis block. Informational on-chain data only, not financial advice.

See pricing

Indexed from genesis · REST · SQL · dashboards · addresses, transactions, UTXOs, metrics