Market Data
Daily BTC and ETH price history from Coinbase, with weekly and monthly candles, moving averages and stats derived on read.
Use it when a site or a report needs crypto prices it can trust to be the same everywhere they are shown.
Access
This is a service rather than a page: every route needs an API key, issued per caller. Ask and we will talk about what you are building.
What it does
Keeps one copy of daily OHLCV candles for BTC and ETH, backfilled from Coinbase's public Exchange API back to 2015 and topped up by a daily GitHub Actions job. Weekly and monthly candles and moving averages are computed when they are read, never stored, so they cannot drift from the daily data.
It is the price source behind the BridgeSafe crypto calculator and the crypto digest. Both read the same candles, so a number on the site and a number in a digest agree.
Features
- Daily candles stored in UTC; weekly and monthly derived on read
- Moving average for any window up to 5000 days, as a single value or a series
- Summary stats over a date range
- API keys with read or write scope; only hashes are stored
- One-command backfill and instrument add from the CLI
- Interactive API docs at /docs
Inputs
- Instrument symbol. BTC-USD, ETH-USD
- Interval (1d | 1w | 1m). Daily candles are stored; weekly and monthly are derived
- Date range (ISO dates). Optional start and end
- Moving-average window (days, 1–5000). One value, or the whole series with series=true
- API key. Read scope for every route except /v1/health; write scope to upsert candles
Outputs
- Candles (JSON). OHLCV per day, week or month, UTC
- Latest candle (JSON)
- Moving average (JSON). Value with its as-of date, or the series
- Summary stats (JSON). Over the requested range