# SiteCheck Crypto Candles

> SiteCheck Crypto Candles is a paid API for AI agents from api.sitecheck-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-25).

Fetches OHLCV candlestick data for a cryptocurrency trading pair from Coinbase Exchange public market data

## Facts

- Endpoint: GET https://api.sitecheck-api.workers.dev/api/crypto/candles?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-25
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sitecheck-crypto-candles-c3f720a6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8RwSAW7vqX48heGeA3Hva

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 sitecheck-crypto-candles-c3f720a6
```

Example prompt: Pull the last 24 hourly candles for BTC-USD from Coinbase so I can see recent open, high, low, close, and volume data.

## When to prefer this

Use this endpoint when you need structured OHLCV candlestick data for a Coinbase-listed trading pair, especially for technical analysis, charting, or time-series price history. Prefer it over generic price endpoints when you need historical intervals with volume data across multiple granularities. Ideal for agents that need pay-per-call access without managing exchange API keys.

## Known failure modes

- Invalid pair symbol returns an error or empty candle array
- Granularity value not in allowed enum (1m, 5m, 15m, 1h, 6h, 1d) causes a validation error
- Limit out of range (outside 1-300) may return an error or be clamped
- Network or Coinbase upstream outage results in a timeout or 5xx error
- Payment failure due to insufficient USDC balance blocks the request

## How this service works

OHLCV candles for a Coinbase trading pair (BTC-USD) at 1m, 5m, 15m, 1h, 6h or 1d granularity, up to 300, newest first, from Coinbase Exchange public market data. Prices are that venue's trades only. Information only, not financial advice.

## Output

Returns a JSON object with the trading pair name, granularity, count, and an array of candles sorted newest-first. Each candle includes timestamp, open, high, low, close, and volume. Also includes source attribution, checkedAt timestamp, and a disclaimer that data is informational only.

## 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": [
      "pair"
     ],
     "properties": {
      "pair": {
       "type": "string",
       "description": "Coinbase product, e.g. BTC-USD"
      },
      "limit": {
       "type": "string",
       "description": "1 to 300 (default 100)"
      },
      "granularity": {
       "type": "string",
       "description": "1m, 5m, 15m, 1h, 6h or 1d (default 1h)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "pair": "BTC-USD",
  "count": 24,
  "source": "Coinbase Exchange public market data (candles), newest first",
  "candles": [
   {
    "low": 83533.5,
    "high": 83808.35,
    "open": 83624.22,
    "time": "2026-10-14T04:00:00.000Z",
    "close": 83645.77,
    "volume": 91.33280723
   },
   {
    "low": 83567.9,
    "high": 83900,
    "open": 83571.53,
    "time": "2026-10-14T03:00:00.000Z",
    "close": 83626.7,
    "volume": 172.7794248
   }
  ],
  "checkedAt": "2026-10-14T04:49:20.443Z",
  "disclaimer": "Information only, not financial advice.",
  "granularity": "1h"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sitecheck-crypto-candles-c3f720a6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.sitecheck-api.workers.dev](https://www.zero.xyz/host/api.sitecheck-api.workers.dev/llms.txt)
