# x402.shizu.me OHLC Crypto Candles

> x402.shizu.me OHLC Crypto Candles is a paid API for AI agents from x402.shizu.me, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns historical OHLC price candles for a crypto trading pair from Coinbase, supporting configurable granularity and limit for technical analysis and backtesting.

## Facts

- Endpoint: GET https://x402.shizu.me/candles
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-shizu-me-ohlc-crypto-candles-97a00c8c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sLBikDiKPX_UjpTIAytQU

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 x402-shizu-me-ohlc-crypto-candles-97a00c8c
```

Example prompt: Can you pull the last 200 hourly OHLC candles for BTC-USD so I can run a moving average backtest?

## When to prefer this

Use this endpoint when you need historical OHLC candlestick data for a specific crypto trading pair for charting, technical indicator computation, or backtesting strategies. Prefer this over generic price endpoints when you need time-series data with open/high/low/close/volume rather than a single current spot price.

## Known failure modes

- Invalid or unsupported trading pair returns an error (e.g. typo in pair like 'BTC_USD' instead of 'BTC-USD')
- Granularity value not in allowed set (1m, 5m, 15m, 1h, 6h, 1d) returns a validation error
- Limit outside range 1-300 returns an error
- Coinbase upstream unavailability may result in timeout or 5xx error
- Payment failure (insufficient USDC) results in 402 Payment Required

## How this service works

Historical OHLC candles for a crypto pair (e.g. BTC-USD) — for technical analysis and backtesting. Query: pair; granularity (1m, 5m, 15m, 1h, 6h, 1d — default 1h); limit (1-300, default 100) for the latest window, OR start & end (ISO8601 or unix secs) for a backtest range paginated server-side up to 3000 candles — months of history in one call. Returns candles oldest->newest, each {t, o, h, l, c, v}. Real-time from Coinbase.

## Output

An array of up to 300 candle objects ordered oldest to newest, each containing unix timestamp (t), open (o), high (h), low (l), close (c), and volume (v) values for the requested trading pair and granularity interval. Data is sourced in real-time from Coinbase.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "method"
   ],
   "properties": {
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "pair",
      "granularity",
      "start",
      "end"
     ],
     "properties": {
      "end": {
       "type": "string"
      },
      "pair": {
       "type": "string"
      },
      "start": {
       "type": "string"
      },
      "granularity": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "pair": "BTC-USD",
  "count": 744,
  "candles": [
   {
    "c": 62542,
    "h": 62600,
    "l": 62310.5,
    "o": 62410.1,
    "t": 1719763200,
    "v": 118.3
   }
  ],
  "granularity": "1h"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-shizu-me-ohlc-crypto-candles-97a00c8c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.shizu.me](https://www.zero.xyz/host/x402.shizu.me/llms.txt)
