Crypto price history API
Historical USD prices for a crypto ticker such as BTC, ETH, or SOL from Chainlink Data Feeds on Base. Returns official aggregator rounds plus first, last, high, low and change over a window of up to 365 days. On-chain series, not exchange candles or volume. POST /api/v1/crypto-prices/history costs $0.002 USDC on Base via x402. HTTP 2xx with status complete or partial and real data is charged; status failed, empty payloads, and HTTP 4xx/5xx are not charged. Sources: Chainlink Data Feeds on Base Coinbase Exchange public ticker and stats Limits: Ticker only — not a Base token-address DEX price (use token-security/price-two-source). Does not wrap CoinGecko.
Historical USD prices for a crypto ticker such as BTC, ETH, or SOL from Chainlink Data Feeds on Base. Returns official aggregator rounds plus first, last, high, low and change over a window of up to 365 days. On-chain series, not exchange candles or volume. POST /api/v1/crypto-prices/history costs $0.002 USDC on Base via x402. HTTP 2xx with status complete or partial and real data is charged; status failed, empty payloads, and HTTP 4xx/5xx are not charged. Sources: Chainlink Data Feeds on Base Coinbase Exchange public ticker and stats Limits: Ticker only — not a Base token-address DEX price (use token-security/price-two-source). Does not wrap CoinGecko.
/api/v1/crypto-prices/historyExample request
curl -i -X POST "https://www.brainiac.software/api/v1/crypto-prices/history" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"symbol": "ETH",
"days": 30
}
JSONExample response
{
"status": "complete",
"data": {
"symbol": "ETH",
"quote": "USD",
"days": 30,
"first": "3120.12",
"last": "3045.55",
"high": "3350.01",
"low": "2890.40",
"changePct": "-2.3901",
"points": [
{
"time": "2026-10-21T12:00:00.000Z",
"price": "3120.12",
"roundId": "18446744073709552000"
},
{
"time": "2026-11-20T12:00:00.000Z",
"price": "3045.55",
"roundId": "18446744073709553000"
}
],
"asOf": "2026-11-20T22:40:00.000Z",
"limitation": "On-chain aggregator rounds, not exchange OHLCV or volume. first/last/high/low/changePct are derived from the official rounds returned."
},
"nextCursor": null,
"progress": {
"processed": 0,
"total": null,
"unit": "items",
"scannedRange": null
},
"sources": [],
"missing_items": [],
"limitations": []
}An unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.
Errors: HTTP 4xx/5xx are not charged. HTTP 2xx with status complete or partial and real data is charged; failed or empty results are not charged. Invalid cursor returns HTTP 400 (uncharged).
Limits: Ticker only — not a Base token-address DEX price (use token-security/price-two-source). Does not wrap CoinGecko. History is on-chain aggregator rounds, not exchange OHLCV or volume. Optional cursor resumes the next deterministic chunk. Partial responses include nextCursor, progress, sources, and data under a ~22s wall budget (#212).
FAQ
- Do I need an API key? No. Pay the listed USDC amount with x402.
- What network? Base (eip155:8453), USDC.
- Is this an official determination? No. Results are for human review against the cited sources.
Related operations
- Crypto spot price — $0.001 USDC
Related APIs
Chainlink Coinbase Crypto Spot Price API APIGroup docsHow it works