OHLC candlestick data for crypto — daily open/high/low/close candles over 1-365 days for a
OHLC candlestick data for crypto — daily open/high/low/close candles over 1-365 days for any coin by CoinGecko id, chart-ready.
5000 (raw units)
price
5
calls / 30d
4
unique payers
2026-09-15
updated
Provider
coingecko.use.x402atlas.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x32793F68dC2EA26BBC75eB900DA120069e8B6d02",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:137",
"payTo": "0x32793F68dC2EA26BBC75eB900DA120069e8B6d02",
"asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
"amount": "5000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:42161",
"payTo": "0x32793F68dC2EA26BBC75eB900DA120069e8B6d02",
"asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"amount": "5000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "ASt6xvRyQ7ntERsmcYVMdLqZvz1GEN8Fzexzq62tXrNQ",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "5000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"category": "finance",
"info": {
"input": {
"method": "GET",
"queryParams": {
"days": 30,
"id": "bitcoin",
"vs_currency": "usd"
},
"type": "http"
},
"output": {
"example": {
"candles": [
{
"close": 27050,
"high": 27100,
"low": 26900,
"open": 27000,
"time": "2026-05-08T00:00:00Z"
}
],
"days": 30,
"id": "bitcoin",
"queried_at": "2026-06-08T12:00:00Z",
"vs_currency": "usd"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {
"days": {
"description": "Window size in days: one of 1, 7, 14, 30, 90, 180, 365",
"enum": [
1,
7,
14,
30,
90,
180,
365
],
"type": "integer"
},
"id": {
"description": "CoinGecko coin id slug",
"type": "string"
},
"vs_currency": {
"default": "usd",
"description": "Target currency code (default: usd)",
"type": "string"
}
},
"required": [
"id",
"days"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"candles": {
"description": "OHLC bars, oldest first",
"items": {
"properties": {
"close": {
"description": "Close price",
"type": "number"
},
"high": {
"description": "High price",
"type": "number"
},
"low": {
"description": "Low price",
"type": "number"
},
"open": {
"description": "Open price",
"type": "number"
},
"time": {
"description": "Candle timestamp (UTC)",
"format": "date-time",
"type": "string"
}
},
"required": [
"time",
"open",
"high",
"low",
"close"
],
"type": "object"
},
"type": "array"
},
"days": {
"description": "Requested window size in days",
"type": "integer"
},
"id": {
"description": "CoinGecko coin id slug",
"type": "string"
},
"queried_at": {
"description": "UTC timestamp the upstream was queried",
"format": "date-time",
"type": "string"
},
"vs_currency": {
"description": "Currency the candles are quoted in",
"type": "string"
}
},
"required": [
"queried_at",
"id",
"vs_currency",
"days",
"candles"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
},
"tags": [
"ohlc",
"candles",
"ohlcv",
"crypto",
"chart",
"market-data",
"price",
"coingecko"
]
}
}Use it
curl
curl "https://coingecko.use.x402atlas.com/ohlc" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://coingecko.use.x402atlas.com/ohlc");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://coingecko.use.x402atlas.com/ohlc")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/768.json, and this resource appears in /discovery/resources and /discovery/search.