# Hyperliquid Candles

> Hyperliquid Candles is a paid API for AI agents from 1gateway.dev, paid per call via x402, $0.002/call, status healthy (last checked 2026-11-19, last successful call 2026-11-07).

Fetches OHLCV candlestick price history for Hyperliquid perpetual futures and HIP-3 markets, with a computed summary including realized volatility.

## Facts

- Endpoint: GET https://1gateway.dev/v1/crypto/hyperliquid/candles?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: healthy
- Last checked: 2026-11-19
- Last successful call: 2026-11-07
- Success rate: 100% of calls made through Zero
- Activations on Zero: 10
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hyperliquid-candles-2693b139
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MMdDizbpAqYWsOOy61HC0

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 hyperliquid-candles-2693b139
```

Example prompt: Can you pull the last 24 hourly candles for ETH on Hyperliquid and tell me the price change, high/low range, and annualized realized volatility?

## When to prefer this

Use this endpoint when you need candlestick OHLCV price history specifically for Hyperliquid perpetual futures or HIP-3 DEX markets, including the computed realized volatility summary. Prefer this over generic crypto candle APIs when the trading venue is specifically Hyperliquid, or when you need HIP-3 tokens (e.g. xyz:TSLA). The built-in realized volatility and change % summary saves a secondary computation step.

## Known failure modes

- 400 error returned (without charge) if the coin symbol is unknown, not listed, or delisted on Hyperliquid
- Invalid interval enum value causes a 400 validation error
- Limit outside 1-500 range causes a 400 validation error
- Malformed start/end timestamps may cause a 400 error
- Network or upstream Hyperliquid API outage may cause a 5xx error

## How this service works

Use when an agent needs price history for a Hyperliquid perp or HIP-3 market (xyz:TSLA). Input: coin, interval (1m-1M, default 1h), limit (1-500, default 100), optional start/end (ISO date or unix). Output: JSON candles (time, open, high, low, close, volume, trades) plus summary: change %, high/low, volume, annualized realized volatility. Unknown coin: 400, not charged. Example: ?coin=ETH&interval=1h&limit=24

## Output

Returns a JSON object containing an array of candles (each with timestamp, open, high, low, close, volume, and trade count), plus a summary object with period price change %, overall high and low, total volume, and annualized realized volatility. Also includes metadata: coin, exchange, interval, from/to timestamps, and candle count.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "coin"
     ],
     "properties": {
      "end": {
       "type": "string",
       "maxLength": 30,
       "description": "End time: ISO date/time or unix seconds/ms (default now)"
      },
      "coin": {
       "type": "string",
       "pattern": "^([a-z][a-z0-9]{0,9}:)?[A-Za-z0-9]{1,20}$",
       "description": "Hyperliquid perp symbol (BTC, ETH, kPEPE) or HIP-3 dex:COIN (xyz:TSLA). Not listed or delisted: 400…"
      },
      "limit": {
       "type": "integer",
       "default": 100,
       "maximum": 500,
       "minimum": 1,
       "description": "Number of candles, newest last (1-500, default 100)"
      },
      "start": {
       "type": "string",
       "maxLength": 30,
       "description": "Start time: ISO date/time or unix seconds/ms (default end - limit x interval)"
      },
      "interval": {
       "enum": [
        "1m",
        "3m",
        "5m",
        "15m",
        "30m",
        "1h",
        "2h",
        "4h",
        "8h",
        "12h",
        "1d",
        "3d",
        "1w",
        "1M"
       ],
       "type": "string",
       "default": "1h",
       "description": "Candle interval (default 1h)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "coin",
      "dex",
      "interval",
      "from",
      "to",
      "count",
      "summary",
      "candles",
      "source",
      "note"
     ],
     "properties": {
      "to": {
       "type": "string"
      },
      "dex": {
       "type": "string"
      },
      "coin": {
       "type": "string"
      },
      "from": {
       "type": "string"
      },
      "note": {
       "type": "string"
      },
      "count": {
       "type": "integer"
      },
      "source": {
       "type": "string"
      },
      "candles": {
       "type": "array",
       "items": {
        "type": "object",
        "pr
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hyperliquid-candles-2693b139/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 1gateway.dev](https://www.zero.xyz/host/1gateway.dev/llms.txt)
