Crypto spot price API
Return a USD spot price for a crypto ticker by comparing Chainlink Data Feeds on Base and the Coinbase Exchange public ticker. agree is pass only when both sources return a usable quote within 1%. 24h change comes from Coinbase stats only. Not a Base token-address DEX price. POST /api/v1/crypto-prices/spot costs $0.001 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.
Return a USD spot price for a crypto ticker by comparing Chainlink Data Feeds on Base and the Coinbase Exchange public ticker. agree is pass only when both sources return a usable quote within 1%. 24h change comes from Coinbase stats only. Not a Base token-address DEX price. POST /api/v1/crypto-prices/spot costs $0.001 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/spotExample request
curl -i -X POST "https://www.brainiac.software/api/v1/crypto-prices/spot" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"symbol": "BTC"
}
JSONExample response
{
"status": "complete",
"retrievedAt": "2026-11-20T21:36:20.000Z",
"symbol": "BTC",
"quote": "USD",
"price": "58718.89",
"agree": "pass",
"differencePct": 0.04,
"change24hPct": -4.47,
"volume24h": "23253.21341197",
"sources": [
{
"name": "chainlink",
"network": "base",
"feed": "BTC / USD",
"proxy": "0x0000000000000000000000000000000000000001",
"price": "58740.12",
"updatedAt": "2026-11-20T21:35:00.000Z",
"decimals": 8
},
{
"name": "coinbase",
"productId": "BTC-USD",
"price": "58718.89",
"bid": "58718.89",
"ask": "58718.90",
"time": "2026-11-20T21:36:20.000Z"
}
],
"unavailable": [],
"missing_items": [],
"agreeThresholdPct": 1
}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.
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 price history — $0.002 USDC
Related APIs
Chainlink Coinbase Crypto Spot Price API APIGroup docsHow it works