Crypto OHLCV: candles for any coin

$0.002 per call · failed calls are never charged · no account or subscription: pay per call with a card key or USDC

Crypto OHLCV candles for any coin (BTC, ETH, SOL, HYPE…): open, high, low, close and volume per bar from Hyperliquid perpetuals, on intervals from 1 minute to 1 week, up to 500 bars, newest last. Without a coin the answer is for BTC. Use to chart a price, compute indicators, backtest a rule or give a trading agent recent price history.

Run it free (3 free calls) Buy credits by card (from $1) Example result (JSON)

Try it with your own inputs

Coin symbol such as BTC, ETH, SOL or HYPE (default BTC)

Uses one of your 3 free calls. Nothing is charged, and a call that fails is not counted.

Inputs

NameTypeDescription
coinstringCoin symbol such as BTC, ETH, SOL or HYPE (default BTC)
intervalstringBar length: 1m, 3m, 5m, 15m, 30m, 1h (default), 2h, 4h, 8h, 12h, 1d, 3d or 1w
barsintegerNumber of bars, 1-500 (default 50)

Request

Over HTTP, with a card key from /credits:

curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/market/ohlcv?coin=BTC"

Or one of your 3 free calls, no key:

curl "https://agent-data-tools.revmesh2074.workers.dev/market/ohlcv?coin=BTC&trial=1"

Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.

Example result

{
  "coin": "BTC",
  "interval": "1h",
  "count": 1,
  "candles": [
    {
      "time": "2026-10-23T08:00:00.000Z",
      "open": 81574,
      "high": 81916,
      "low": 81543,
      "close": 81761,
      "volume": 575.87267,
      "trades": 9106
    }
  ],
  "source": "Hyperliquid public info API"
}

From an AI agent (MCP)

Add the MCP server to Claude, Cursor or any MCP client. This tool is market_ohlcv, and the first 25 successful calls are free:

https://agent-data-tools.revmesh2074.workers.dev/mcp

Related tools