Skip to content
Fourohtwo

OHLC candlestick data for crypto

coingecko.use.x402atlas.com/ohlc

OHLC candlestick data for crypto — daily open/high/low/close candles over 1-365 days for any coin by CoinGecko id, chart-ready.

BasePolygonArbitrumSolanaAnswering
GEThttps://coingecko.use.x402atlas.com/ohlc

Uptime100% of 3 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://coingecko.use.x402atlas.com/ohlc?days=30&id=bitcoin&vs_currency=usd");
console.log(await res.json());

Example input

{
  "days": 30,
  "id": "bitcoin",
  "vs_currency": "usd"
}

More from CoinGecko Crypto Price & DataProvider status