# Ironflow OHLCV Candles

> Ironflow OHLCV Candles is a paid API for AI agents from api.ironflow.sh, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-19).

Returns OHLCV candlestick data (open, high, low, close, base volume, trade count) for any Hyperliquid market across configurable intervals from 1 minute to 1 week, up to one year back.

## Facts

- Endpoint: GET https://api.ironflow.sh/x402/v1/candles?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ironflow-ohlcv-candles-3b35e72d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hOpbsrTE5cUIPNZ5PVxzM

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 ironflow-ohlcv-candles-3b35e72d
```

Example prompt: Pull hourly OHLCV candles for BTC-PERP on Hyperliquid for the last 7 days from Ironflow — I need the open, high, low, close, volume, and trade count per candle for a backtest.

## When to prefer this

Choose this endpoint when you need Hyperliquid-specific OHLCV price history for perps, spot, or HIP-3 tokenized asset markets, especially for charting, backtesting trading strategies, or computing technical indicators. It sources data directly from Ironflow's own Hyperliquid nodes, making it more reliable for Hyperliquid data than generic crypto OHLCV providers. Use siblings endpoints for tick-level trade data, funding rates, or liquidation analysis.

## Known failure modes

- INVALID_PARAMETER — market symbol not recognized or interval not in allowed enum
- HISTORY_OUT_OF_RANGE — requested start date is more than one year ago
- QUERY_WINDOW_EXCEEDED — the from/to window is too large for a single page; use limit and cursor to paginate
- NOT_FOUND — no data exists for the specified market or time range
- RATE_LIMIT_EXCEEDED — too many requests in a short window
- Payment failure — x402 payment not processed, request blocked

## How this service works

Hyperliquid OHLCV candles for any market from Ironflow's own nodes: open, high, low, close, base volume and trade count, intervals 1m to 1w, up to a year back. Use it for crypto price history, charting, backtests and indicators on perps, spot and HIP-3 stock or commodity markets.

## Output

An array of candle objects, each containing: timestamp (Unix ms of candle open), open, high, low, close (prices as strings), volume (base asset volume as string), trade_count (integer), market symbol, and interval. The response also includes a next_cursor field for paginating through large date ranges, and an error object with a machine-readable code if the request fails.

## 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": [
      "market"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "End: Unix ms, ISO 8601, relative (-1h) or now (default)"
      },
      "from": {
       "type": "string",
       "description": "Start: Unix ms, ISO 8601, or relative (-7d, now-24h); up to 14 days back"
      },
      "limit": {
       "type": "string",
       "description": "Candles per page"
      },
      "cursor": {
       "type": "string",
       "description": "next_cursor from the previous page"
      },
      "market": {
       "type": "string",
       "description": "Market: BTC, ETH-PERP, HYPE/USDC, xyz:NVDA (HIP-3) or a Hyperliquid coin name"
      },
      "interval": {
       "enum": [
        "1m",
        "3m",
        "5m",
        "15m",
        "30m",
        "1h",
        "2h",
        "4h",
        "8h",
        "12h",
        "1d",
        "3d",
        "1w"
       ],
       "type": "string",
       "description": "Candle interval (default 1h)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "low": {
          "type": "string",
          "description": "Low price"
         },
         "high": {
          "type": "string",
          "description": "High price"
         },
         "open": {
          "type": "string",
          "description": "Open price"
         },
         "close": {
          "type": "string",
          "description": "Close price"
         },
         "market": {
          "type": "string",
          "description": "Market symbol, e.g. BTC-PERP, HYPE/USDC, xyz:NVDA-PERP"
         },
         "volume": {
          "type": "string",
          "description": "Volume in the base asset"
         },
         "interval": {
          "type": "string",
          "descript
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ironflow-ohlcv-candles-3b35e72d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.ironflow.sh](https://www.zero.xyz/host/api.ironflow.sh/llms.txt)
