# x402 Finance Hub – Stock Time Series

> x402 Finance Hub – Stock Time Series is a paid API for AI agents from x402-trading-hub.vercel.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-01).

Returns historical OHLCV time-series data for a given stock symbol at a specified interval and output size.

## Facts

- Endpoint: POST https://x402-trading-hub.vercel.app/api/stocks/time-series?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-finance-hub-stock-time-series-b92e701c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_c6RezdPr2L6swFBN2qVZg

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 x402-finance-hub-stock-time-series-b92e701c -d '<json body>'
```

Example prompt: Pull the last 100 daily candlesticks for AAPL — I need the open, high, low, close, and volume so I can run a backtest.

## When to prefer this

Use this endpoint when you need historical OHLCV time-series data for a specific stock symbol and are comfortable paying $0.1 USDC per call via the x402 protocol on Base. Prefer this over free alternatives when you need reliable, multi-provider coverage (Alpha Vantage + Twelve Data) or when building trading pipelines that require on-demand market data with crypto micropayments.

## Known failure modes

- Invalid or unknown stock symbol returns an error or empty data object
- Unsupported interval value may return an error or default behavior
- Payment of 0.1 USDC on Base not completed results in 402 Payment Required
- Rate limit or upstream provider outage causes 5xx error
- Missing required 'symbol' field returns a 400 validation error

## How this service works

Forex, stocks, crypto, and trading data from Alpha Vantage, Twelve Data, TradingView, and Forex Factory. Pay with USDC on Base.

## Output

A JSON object containing historical time-series price data (OHLCV) for the requested stock symbol, at the specified interval and output size, sourced from Alpha Vantage or Twelve Data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "symbol"
 ],
 "properties": {
  "symbol": {
   "type": "string",
   "description": "Stock symbol"
  },
  "interval": {
   "type": "string"
  },
  "outputsize": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-finance-hub-stock-time-series-b92e701c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-trading-hub.vercel.app](https://www.zero.xyz/host/x402-trading-hub.vercel.app/llms.txt)
