# Historical Stock Prices OHLCV

> Historical Stock Prices OHLCV is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-22).

Returns OHLCV (open, high, low, close, adjusted close, volume) price bars for any stock ticker or company name across configurable time ranges and intervals.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/stock/history?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-22
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-historical-stock-prices-ohlcv-29ce611a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fSabAqBBKDTaZnSO_WC9o

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 agent-data-tools-revmesh2074-workers-dev-historical-stock-prices-ohlcv-29ce611a
```

Example prompt: Can you pull the daily OHLCV price history for AAPL over the past year so I can chart it and compute its annual return?

## When to prefer this

Use this endpoint when you need structured OHLCV time-series data for equities, indices (^GSPC, ^DJI), or crypto pairs (BTC-USD) to chart prices, backtest trading signals, compute returns, or feed technical indicators. It supports both company names and ticker symbols, flexible intervals (1-minute to monthly), and ranges from intraday to full history — making it ideal for quantitative analysis workflows. Prefer it over web-search-based approaches when you need structured numeric price data rather than narrative market commentary.

## Known failure modes

- Unrecognized ticker or company name returns an error or empty bars array
- Intraday intervals (1m–60m) only reach back ~60 days; requests beyond that return limited or no data
- Some tickers (OTC, delisted, non-US exchanges) may have incomplete or missing history
- Max range combined with 1-minute interval may be rejected or truncated
- Network or upstream data provider timeout returns a 5xx error

## How this service works

Stock price history as OHLCV bars for any ticker or company name: open, high, low, close, adjusted close and volume from 1-minute to monthly bars over 1 day to the full history, plus first, last, change, high and low. Use to chart a stock, backtest a signal, compute returns or feed indicators.

## Output

Returns a JSON object with the resolved ticker symbol, currency, range, interval, bar count, and a bars array where each entry has time, open, high, low, close, adjClose, and volume. Also includes top-level summary fields: first (opening price of period), last (most recent close), high, low, and changePercent across the requested range. An optional note field may appear for data caveats.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "symbol"
 ],
 "properties": {
  "range": {
   "enum": [
    "1d",
    "5d",
    "1mo",
    "3mo",
    "6mo",
    "1y",
    "2y",
    "5y",
    "10y",
    "ytd",
    "max"
   ],
   "type": "string",
   "description": "1d, 5d, 1mo (default), 3mo, 6mo, 1y, 2y, 5y, 10y, ytd or max"
  },
  "symbol": {
   "type": "string",
   "description": "Ticker (AAPL, ^GSPC, BTC-USD) or a company name"
  },
  "interval": {
   "enum": [
    "1m",
    "5m",
    "15m",
    "30m",
    "60m",
    "1h",
    "1d",
    "1wk",
    "1mo"
   ],
   "type": "string",
   "description": "1m, 5m, 15m, 30m, 60m (or 1h), 1d, 1wk or 1mo (default suits the range; intraday bars reach back about 60 days)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "low": {
   "type": "number"
  },
  "bars": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "low": {
      "type": "number"
     },
     "high": {
      "type": "number"
     },
     "open": {
      "type": "number"
     },
     "time": {
      "type": "string"
     },
     "close": {
      "type": "number"
     },
     "volume": {
      "type": "number"
     },
     "adjClose": {
      "type": "number"
     }
    }
   }
  },
  "high": {
   "type": "number"
  },
  "last": {
   "type": "number"
  },
  "note": {
   "type": "string"
  },
  "count": {
   "type": "number"
  },
  "first": {
   "type": "number"
  },
  "range": {
   "type": "string"
  },
  "symbol": {
   "type": "string"
  },
  "currency": {
   "type": "string"
  },
  "interval": {
   "type": "string"
  },
  "changePercent": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-historical-stock-prices-ohlcv-29ce611a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
