# Yahoo Finance Stock & Crypto Price History

> Yahoo Finance Stock & Crypto Price History is a paid API for AI agents from api.chainmarket-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Fetches current price, key stats, and historical OHLCV data for any Yahoo Finance ticker (stocks, ETFs, indices, forex, crypto) over a configurable time range

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/finance/yahoo-finance?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/yahoo-finance-stock-crypto-price-history-dc062ace
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ch_84Y9tts6UCE_1X13gr

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 yahoo-finance-stock-crypto-price-history-dc062ace
```

Example prompt: What's the current price of Tesla (TSLA) and can you show me its price history over the last month, including daily highs, lows, and volume?

## When to prefer this

Use this endpoint when you need current price quotes or historical OHLCV data for any asset class covered by Yahoo Finance — stocks, ETFs, indices (e.g. ^GSPC), forex pairs (e.g. EURUSD=X), or crypto (e.g. BTC-USD) — without needing an API key or signup. Ideal for pay-per-call agent workflows where you only pay when data is successfully returned. Prefer this over dedicated crypto-only APIs when you need cross-asset-class coverage in a single interface.

## Known failure modes

- Invalid or unknown ticker symbol returns an error or empty result
- Unsupported range value returns a validation error
- Yahoo Finance API rate limiting or downtime causes upstream failure
- Delisted or non-tradable symbols may return no data
- Crypto tickers must use Yahoo format (e.g. BTC-USD, not BTC)

## How this service works

Yahoo Finance quote and daily history for one ticker (stocks, ETFs, indices, FX, crypto symbols) from Yahoo's public chart endpoint. Prices are delayed or end-of-day per Yahoo; no fundamentals or company lists are included.

## Output

A JSON object containing the security's current price, day high/low, volume, price change and percent change, previous close, 52-week high/low, currency, exchange name, market timestamp, and an array of historical daily OHLCV bars (date, open, high, low, close, volume) for the requested range. Also includes the source URL and the time the data was checked.

## 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": {
       "type": "string",
       "description": "History range: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max (default 5d)"
      },
      "symbol": {
       "type": "string",
       "description": "Yahoo ticker, e.g. AAPL, MSFT, ^GSPC, EURUSD=X, BTC-USD"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "Apple Inc.",
  "price": 348.22,
  "range": "5d",
  "change": 6.22,
  "dayLow": 342.28,
  "source": "https://query1.finance.yahoo.com/v8/finance/chart/",
  "symbol": "AAPL",
  "volume": 46845411,
  "dayHigh": 348.36,
  "history": [
   {
    "low": 340.46,
    "date": "2026-10-16",
    "high": 347.82,
    "open": 346.09,
    "close": 343.46,
    "volume": 59946400
   },
   {
    "low": 340.12,
    "date": "2026-10-19",
    "high": 346,
    "open": 340.78,
    "close": 342.94,
    "volume": 34573200
   }
  ],
  "currency": "USD",
  "exchange": "NasdaqGS",
  "checkedAt": "2026-10-23T09:36:10.621Z",
  "marketTime": "2026-10-22T20:00:01.000Z",
  "changePercent": 1.8187,
  "previousClose": 342,
  "fiftyTwoWeekLow": 243.42,
  "fiftyTwoWeekHigh": 348.36
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/yahoo-finance-stock-crypto-price-history-dc062ace/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.chainmarket-api.workers.dev](https://www.zero.xyz/host/api.chainmarket-api.workers.dev/llms.txt)
