Welcome to the Crypto Price API. This service provides real-time and historical cryptocurrency price data.
Index of every servable pair (JSON, or one URL per line with ?format=text). Filters: ?base=BTC, ?quote=EUR, ?class=crypto.
The same pair universe as bases and quotes to combine rather than one row per pair, small enough for a page to load and offer every pair. Expand each group's bases against its quote_set.
Beancount text feed for one pair (e.g. /prices/BTC-USD, /prices/SOL-EUR) using coverage profile tiered-v1. /prices/BTC lists every quote for a base.
The body opens with one summary line: the pair, its first and last date, whether the last price is provisional or the pair is delisted, and the sampling rule (monthly closes before one year ago, weekly closes until 30 days ago, daily closes after, and today's provisional reference spot). Directives carry only what changes how a price reads: provisional: TRUE, price-source on rows from another source than the pair's own, price-kind/via/legs on derived pairs, and adjusted: FALSE on equities. Each source is credited in the attribution map of /prices. Add ?meta=full for every header line and directive field.
OpenAPI 3 description of the two endpoints above, for API clients and code generators.
GraphQL endpoint for querying price data. Accepts any path starting with /graphql (e.g., /graphql, /graphql/, /graphql/query). Supports GraphiQL interface for interactive queries.
Example queries:
{ latestPrices(symbols: ["BTCUSDT", "ETHUSDT"]) { symbol price priceChange24h } }{ priceHistory(symbol: "BTCUSDT", interval: "1h") { hour openPrice closePrice } }Health check endpoint. Returns 200 if service is healthy.
Service status information including fetcher status.