# Financial Data x402 – Stock Price History

> Financial Data x402 – Stock Price History is a paid API for AI agents from x402financialdata.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-12).

Returns OHLCV (open, high, low, close, volume) price bars for a stock ticker over a user-specified date range and time interval, paid per-call via USDC over x402.

## Facts

- Endpoint: GET https://x402financialdata.com/history/%7Bticker%7D
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/financial-data-x402-stock-price-history-6a9f02ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9Rg3-lKF2Blr1J9oL-mbI

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 financial-data-x402-stock-price-history-6a9f02ab
```

Example prompt: Can you pull daily OHLCV price bars for AAPL from January 1, 2026 to July 10, 2026, with a multiplier of 1?

## When to prefer this

Choose this endpoint when you need historical OHLCV bar data for US-listed equities and want to avoid API key registration or monthly subscriptions. It is ideal for pay-as-you-go agent workflows, backtesting, or ad-hoc financial analysis where you pay $0.01 USDC per call. Prefer it over traditional data providers when operating in a crypto-native or x402-enabled agent environment on Base or Solana.

## Known failure modes

- Invalid or unrecognized ticker symbol — returns error or empty bars array
- Date range with no trading data (e.g. weekend-only range for a non-crypto ticker) — may return empty bars
- Unsupported multiplier for a given timespan (e.g. multiplier=2 for hour) — likely returns error
- Payment failure or insufficient USDC balance — x402 protocol returns 402 Payment Required
- from date after to date — likely returns validation error or empty result
- Request for a future date range — returns no bars or error

## How this service works

Pay-per-call stock, macro, on-chain, and crypto data over the x402 protocol. USDC on Base or Solana, no API keys, no subscriptions.

## Output

A JSON object containing an array of OHLCV bars (open, high, low, close, volume, timestamp) for the requested ticker and date range, along with metadata such as ticker symbol, from/to dates, timespan label, bar interval string, bar count, and a truncated flag indicating whether the result was cut short.

## 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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "2026-07-10",
  "bars": [
   {
    "c": 294.38,
    "h": 296.59,
    "l": 289.2,
    "o": 293.44,
    "t": "2026-07-01T00:00:00-04:00",
    "v": 50164200
   },
   {
    "c": 308.63,
    "h": 309.42,
    "l": 293.68,
    "o": 294.12,
    "t": "2026-07-02T00:00:00-04:00",
    "v": 75352800
   }
  ],
  "from": "2026-07-01",
  "ticker": "AAPL",
  "interval": "1d",
  "timespan": "day",
  "bar_count": 2,
  "truncated": false,
  "multiplier": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/financial-data-x402-stock-price-history-6a9f02ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402financialdata.com](https://www.zero.xyz/host/x402financialdata.com/llms.txt)
