# Orchard Data OHLCV Market Data

> Orchard Data OHLCV Market Data is a paid API for AI agents from orchard-data.letom1176.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns OHLCV (open, high, low, close, volume) candlestick data for a given stock ticker over a specified time range, paid per-call via x402 micropayments.

## Facts

- Endpoint: GET https://orchard-data.letom1176.workers.dev/api/ohlcv
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/orchard-data-ohlcv-market-data-aea0e30b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_66M60A5UxSQT3dfHac59x

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 orchard-data-ohlcv-market-data-aea0e30b
```

Example prompt: Can you pull the monthly OHLCV candlestick data for SPY — I want to see the daily open, high, low, close, and volume for the past month?

## When to prefer this

Choose this endpoint when an AI agent needs structured daily OHLCV candlestick data for US equities and can pay per-call via x402 USDC micropayments on Base. It is well-suited for agents doing technical analysis, backtesting, charting, or monitoring stock price history. Prefer it over free alternatives when you need a reliable, machine-payable, agent-native data source without API key management.

## Known failure modes

- Missing required 'symbol' query parameter returns a validation error
- Invalid or unrecognized ticker symbol may return empty candles or an error
- Invalid range value (not one of 5d, 1mo, 3mo, 6mo, 1y) returns a validation error
- Insufficient USDC balance or failed x402 payment results in a 402 Payment Required response
- Cloudflare Worker timeouts or upstream data provider outages may cause 5xx errors

## How this service works

Market data for AI agents, paid per-call via x402 (USDC on Base). Free index at /, free spec here.

## Output

A JSON object containing the ticker symbol, the requested range, and an array of candlestick objects — each with a date, open, high, low, close price, and trading volume for that day.

## 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": [
      "symbol"
     ],
     "properties": {
      "range": {
       "enum": [
        "5d",
        "1mo",
        "3mo",
        "6mo",
        "1y"
       ],
       "type": "string"
      },
      "symbol": {
       "type": "string",
       "description": "Ticker, e.g. SPY"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "range": "1mo",
  "symbol": "SPY",
  "candles": [
   {
    "low": 750.2,
    "date": "2026-07-15",
    "high": 755.6,
    "open": 751.2,
    "close": 754.8,
    "volume": 36741829
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/orchard-data-ohlcv-market-data-aea0e30b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from orchard-data.letom1176.workers.dev](https://www.zero.xyz/host/orchard-data.letom1176.workers.dev/llms.txt)
