# x402 Crypto OHLCV Price Data API

> x402 Crypto OHLCV Price Data API is a paid API for AI agents from workspace-x402-paywall.onrender.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-11).

Fetches OHLCV (open/high/low/close/volume) and price data for a specified cryptocurrency coin, paid per-call at $0.005 USDC via x402 protocol

## Facts

- Endpoint: GET https://workspace-x402-paywall.onrender.com/crypto/ohlcv?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-crypto-ohlcv-price-data-api-38c8f7c4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w4jqhneAALWC1A3BIPCCh

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-crypto-ohlcv-price-data-api-38c8f7c4
```

Example prompt: Can you fetch the current price and OHLCV data for Bitcoin (btc-bitcoin) — I need the name, price_usd, and volume fields?

## When to prefer this

Choose this endpoint when you need pay-per-call crypto price or OHLCV data without a subscription, especially when operating in an x402-compatible agent environment that can pay $0.005 USDC per query on Base or Solana mainnet. Ideal for low-frequency spot lookups where a full data subscription is overkill.

## Known failure modes

- Invalid or unknown coin identifier returns an error or empty response
- Missing required 'coin' parameter causes a 400 bad request
- Payment failure (insufficient USDC balance or x402 handshake error) results in 402 Payment Required
- Requesting non-existent fields may return null or omit those fields silently
- Rate limiting or backend data provider downtime may cause 5xx errors

## How this service works

66 pay-per-call APIs: AI text/image generation ($0.01), Polymarket odds, crypto prices, DeFi yields, FX rates, weather, IP/geo, FBI wanted, SEC tickers, clinical trials, 250M academic papers, Stack Overflow, meme-coin launchpads (pump.fun, Clanker, Four.meme, SunPump), tokenized stocks, Solana top 100, and 40+ more. $0.005/call standard. USDC on Base and Solana via x402.

## Output

Returns a JSON object containing the requested market data fields for the specified coin — potentially including name, price_usd, OHLCV values (open, high, low, close, volume), market cap, and other available coin metrics depending on the fields parameter.

## 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": [
      "coin"
     ],
     "properties": {
      "coin": {
       "type": "string",
       "description": "Requires a coin ID string in format slug-symbol, e.g. btc-bitcoin"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-crypto-ohlcv-price-data-api-38c8f7c4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from workspace-x402-paywall.onrender.com](https://www.zero.xyz/host/workspace-x402-paywall.onrender.com/llms.txt)
