# Binance OHLCV Klines via RelayHop

> Binance OHLCV Klines via RelayHop is a paid API for AI agents from free-api-resell.relayhop.workers.dev, paid per call via x402, $0.002000/call, status unknown (last checked 2026-09-14).

Returns OHLCV candlestick (kline) data for a Binance trading pair at a specified interval and limit

## Facts

- Endpoint: GET https://free-api-resell.relayhop.workers.dev/v1/binance/klines/BTCUSDT
- Price: $0.002000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/free-api-resell-relayhop-workers-dev-2d37c066
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pqq9RvQCD3Z0DtiMCM75S

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 free-api-resell-relayhop-workers-dev-2d37c066
```

Example prompt: Can you pull the last 200 hourly candles for BTCUSDT from Binance so I can see recent price action?

## When to prefer this

Use this endpoint when you need Binance OHLCV kline/candlestick data for any trading pair (e.g. BTCUSDT, ETHUSDT) and want a simple, pay-per-call API without managing Binance authentication or rate limits directly. Ideal for agents needing price history for analysis, charting, or trading signals.

## Known failure modes

- Invalid symbol returns an error or empty result
- Unsupported interval string returns an error
- Limit out of range (>1000 or <1) may return an error or be clamped
- Upstream Binance API unavailability causes a 502 or timeout
- Rate limiting may cause 429 responses if called too frequently

## How this service works

Binance OHLCV candles for a symbol (e.g. BTCUSDT). Query: ?interval=1h&limit=1-1000. Source: Binance public API (free).

## Output

An array of OHLCV candlestick records for the requested trading pair, each containing open, high, low, close prices, volume, and timestamps, covering up to 1000 candles at the specified interval (e.g. 1m, 5m, 1h, 1d).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "limit": {
     "in": "query",
     "type": "string",
     "description": "1-1000 (default 100)"
    },
    "symbol": {
     "in": "path",
     "type": "string",
     "description": "trading pair, e.g. BTCUSDT"
    },
    "interval": {
     "in": "query",
     "type": "string",
     "description": "1m,5m,1h,1d,... (default 1h)"
    }
   }
  },
  "output": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/free-api-resell-relayhop-workers-dev-2d37c066/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from free-api-resell.relayhop.workers.dev](https://www.zero.xyz/host/free-api-resell.relayhop.workers.dev/llms.txt)
