Crypto OHLCV: Hyperliquid perp candles
No account. Pay by card from $1 and your key appears right after payment. Get a key by card
Crypto OHLCV candles for any coin with a Hyperliquid perpetual (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.
Inputs
| Name | Type | Description |
|---|---|---|
coin | string | Coin symbol such as BTC, ETH, SOL or HYPE (default BTC) |
interval | string | Bar length: 1m, 3m, 5m, 15m, 30m, 1h (default), 2h, 4h, 8h, 12h, 1d, 3d or 1w |
bars | integer | Number of bars, 1-500 (default 50) |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://glyphtools.com/market/ohlcv?coin=BTC"
Node.js
const r = await fetch("https://glyphtools.com/market/ohlcv?coin=BTC", {
headers: { Authorization: "Bearer adt_…" },
});
const data = await r.json(); // 402 until the key is in the header
Python
import requests
r = requests.get("https://glyphtools.com/market/ohlcv?coin=BTC", headers={"Authorization": "Bearer adt_…"}, timeout=60)
data = r.json()
Or one of your 3 free calls, no key — the same request with &trial=1 on the end:
curl "https://glyphtools.com/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 10 successful calls are free:
https://glyphtools.com/mcp