# Crypto OHLCV Candles

> Crypto OHLCV Candles is a paid API for AI agents from bess-x402.onrender.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-30).

Returns OHLCV (open, high, low, close, volume) candlestick data for a crypto trading pair from Coinbase Exchange at configurable intervals, oldest first.

## Facts

- Endpoint: GET https://bess-x402.onrender.com/v1/crypto/candles?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-ohlcv-candles-70257ba0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EO2stiTs1O44-hz40sPxh

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-ohlcv-candles-70257ba0
```

Example prompt: Fetch me 300 hourly OHLCV candles for BTC-USD from Coinbase so I can calculate a moving average.

## When to prefer this

Choose this endpoint when you need reliable OHLCV candlestick data sourced directly from Coinbase Exchange for charting, computing technical indicators (RSI, MACD, Bollinger Bands, moving averages), or backtesting trading strategies on crypto pairs. It is ideal for agents that need structured historical price data in a standard OHLCV format with flexible interval granularity from 1-minute to daily.

## Known failure modes

- Invalid or unsupported pair symbol returns an error
- Interval value outside allowed enum (1m, 5m, 15m, 1h, 6h, 1d) returns a validation error
- Limit outside 1-300 range may return an error or be clamped
- Coinbase Exchange upstream outage or rate limit may cause failure
- Missing required pair parameter returns an error
- Insufficient USDC balance for x402 payment causes request to be rejected

## How this service works

OHLCV candles for a crypto pair from Coinbase Exchange at 1m, 5m, 15m, 1h, 6h or 1d, up to 300, oldest first. Use for charting, technical indicators (RSI, moving averages) and backtests.

## Output

An ordered array of up to 300 OHLCV candle objects for the requested pair and interval, sorted oldest-first, each containing open, high, low, close, and volume values along with the candle timestamp, sourced from Coinbase Exchange.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "pair": {
       "type": "string",
       "description": "Pair such as BTC-USD"
      },
      "limit": {
       "type": "integer",
       "description": "Candles (1-300)"
      },
      "interval": {
       "type": "string",
       "description": "1m, 5m, 15m, 1h, 6h or 1d"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-ohlcv-candles-70257ba0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bess-x402.onrender.com](https://www.zero.xyz/host/bess-x402.onrender.com/llms.txt)
