$0.005
per call · USD Coin on Base
OHLC candlestick data for crypto — daily open/high/low/close candles over 1-365 days for any coin by CoinGecko id, chart-ready.
Endpoint
GET https://coingecko.use.x402atlas.com/ohlc8
Calls / 30d
6
Unique payers / 30d
Sep 8
Last called
exact
Payment scheme
Call this service
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);
const res = await fetchWithPay("https://coingecko.use.x402atlas.com/ohlc", {
method: "GET",
});
const data = await res.json();curl -X GET \
"https://coingecko.use.x402atlas.com/ohlc?days=30&id=bitcoin&vs_currency=usd" \
-H "X-PAYMENT: <signed x402 payment>"Example response
{
"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"
}Payment details
0x32793f68dc2ea26bbc75eb900da120069e8b6d02USD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913Is this your API?
Pin it to the top of Market Data and the homepage with a featured placement.
More from CoinGecko Crypto Price & Data & similar services
CoinGecko Crypto Price & Data · Markets
coingecko.use.x402atlas.com
Top crypto coins ranked by market cap — paginated market data (price, market-cap rank, symbol) in any currency, CoinGecko-sourced.
CoinGecko Crypto Price & Data · Price
coingecko.use.x402atlas.com
Crypto token price in USD, EUR and more — real-time spot prices for one or many coins by CoinGecko id (bitcoin, ethereum, solana).
CoinGecko Crypto Price & Data · Trending
coingecko.use.x402atlas.com
Trending crypto coins in the last 24h — the most-searched tokens on CoinGecko right now with name, symbol and market-cap rank.