# Stock OHLCV History

> Stock OHLCV History is a paid API for AI agents from www.x402financialdata.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Fetches historical OHLCV (open, high, low, close, volume) candlestick bars for any US stock ticker over a custom date range and timeframe multiplier.

## Facts

- Endpoint: GET https://www.x402financialdata.com/history/:ticker
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stock-ohlcv-history-4319ba6e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_o2A2SGd_gJyjI9CFI0-6M

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 stock-ohlcv-history-4319ba6e
```

Example prompt: Pull 15-minute candlestick bars for NVDA from January 1, 2025 to June 30, 2025 so I can backtest a momentum strategy.

## When to prefer this

Choose this endpoint when you need precise historical OHLCV/candlestick data for US equities across a wide range of timeframes — especially for backtesting trading strategies, building price charts, or performing multi-timeframe technical analysis. It supports unusually granular multiplier control (e.g. 2-min, 5-min, 90-min, 3-month bars) that most generic market data APIs do not expose. Prefer this over real-time quote endpoints when historical depth matters more than live streaming.

## Known failure modes

- Invalid or unknown ticker symbol returns an error or empty dataset
- Date range outside available history returns no bars
- Unsupported multiplier/timespan combination (e.g. 2-hour) returns an error
- Malformed date format (non-ISO 8601) causes a 400-level error
- Missing required query parameters (from, to, multiplier, timespan) causes a validation error
- Network or upstream Yahoo Finance outage may return a 5xx error

## How this service works

Historical OHLCV/candlestick bars for any US stock ticker over any date range — 1-minute intraday up to monthly at precise multipliers (1/2/5/15/30/60/90-minute, 1-hour, 1/5-day, 1-week, 1/3-month), from real Yahoo Finance data. Supports backtesting, charting, and multi-timeframe analysis. $0.01/call.

## Output

Returns a time series of OHLCV candlestick bars for the requested ticker, timespan, and date range — each bar includes open, high, low, close prices and volume, aligned to the specified multiplier and timespan (e.g. 15-minute, daily, weekly).

## 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"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "ticker"
     ],
     "properties": {
      "ticker": {
       "type": "string",
       "description": "Stock ticker symbol, e.g. AAPL, TSLA, MSFT"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "multiplier",
      "timespan",
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "format": "date",
       "description": "End date, e.g. 2026-07-01"
      },
      "from": {
       "type": "string",
       "format": "date",
       "description": "Start date, e.g. 2026-01-01"
      },
      "timespan": {
       "enum": [
        "minute",
        "hour",
        "day",
        "week",
        "month"
       ],
       "type": "string"
      },
      "multiplier": {
       "type": "integer",
       "description": "Bar size multiplier. Supported per timespan: minute(1,2,5,15,30,60,90), hour(1), day(1,5), week(1), month(1,3)."
      }
     }
    }
   },
   "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/stock-ohlcv-history-4319ba6e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.x402financialdata.com](https://www.zero.xyz/host/www.x402financialdata.com/llms.txt)
