Skip to content
Fourohtwo

OHLC candles for a coin

agent402.tools/api/coin-ohlc

OHLC candles for a coin: days 1 (30-min candles), 7 or 14 (4-hour), 30 / 90 / 180 / 365 (daily), in any vs currency. Returns aligned {time, open, high, low, close} bars plus the window's high/low/first/last and % change. The candle sibling of crypto-history, which returns close-only points: use OHLC for technical indicators, range/volatility work and charting. Cached in-process for 60 seconds. Dat

BasePolygonArbitrumMonadAvalancheSei+4Answering
GEThttps://agent402.tools/api/coin-ohlc

Uptime100% of 1 check 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://agent402.tools/api/coin-ohlc?coin=bitcoin&days=7&currency=usd");
console.log(await res.json());

Example input

{
  "coin": "bitcoin",
  "days": 7,
  "currency": "usd"
}

Price changes

  • Nov 25, 20260.003 → 0.008
  • Nov 25, 20260.008 → 0.003