# Crypto Price History (OHLC)

> Crypto Price History (OHLC) is a paid API for AI agents from crypto.openverbs.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-11).

Returns historical OHLC (open/high/low/close) candlestick data for a given cryptocurrency over a specified interval and number of candles

## Facts

- Endpoint: POST https://crypto.openverbs.com/v1/ohlc?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-price-history-ohlc-54f29989
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IYdz66Q32NdSSTwxPgHJ9

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability crypto-price-history-ohlc-54f29989 -d '<json body>'
```

Example prompt: Can you pull the last 48 hourly OHLC candles for ETH so I can see how the price has been moving?

## When to prefer this

Choose this endpoint when you need structured historical candlestick (OHLC) price data for a specific cryptocurrency at a defined time interval. It is ideal for charting, backtesting trading strategies, or analyzing price momentum. Prefer it over spot-price endpoints when you need time-series granularity rather than a single current price.

## Known failure modes

- Unknown coin symbol returns an error or empty result
- Limit exceeding 500 is rejected
- Invalid interval value outside the allowed enum is rejected
- Network timeout for large candle requests
- Missing required coin parameter causes a validation error

## How this service works

Crypto price history as OHLC candles from on-chain perp DEXs: open/high/low/close, base volume and trade count per interval (1m, 5m, 15m, 1h, 4h, 1d) for a coin (BTC, ETH, SOL, and more). Returns up to 500 candles, oldest first. Data source: Hyperliquid (dYdX fallback).

## Output

Returns a series of OHLC candlestick records for the requested cryptocurrency, each containing open, high, low, and close prices along with a timestamp, ordered from oldest to most recent, up to the requested limit of candles.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "coin": {
   "type": "string",
   "maxLength": 20,
   "minLength": 1,
   "description": "Coin symbol, e.g. \"BTC\", \"ETH\", \"SOL\"."
  },
  "limit": {
   "type": "integer",
   "maximum": 500,
   "minimum": 1,
   "description": "How many candles to return, most recent (default 24, max 500)."
  },
  "interval": {
   "enum": [
    "1m",
    "5m",
    "15m",
    "1h",
    "4h",
    "1d"
   ],
   "type": "string",
   "description": "Candle interval (default \"1h\")."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-price-history-ohlc-54f29989/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from crypto.openverbs.com](https://www.zero.xyz/host/crypto.openverbs.com/llms.txt)
