# x402 Finance Hub – Forex Time Series

> x402 Finance Hub – Forex 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-02).

Returns historical time series data for a forex currency pair (e.g. EUR/USD) with configurable interval and output size, paid via USDC on Base.

## Facts

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

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-forex-time-series-7f70be25 -d '<json body>'
```

Example prompt: Can you pull the daily time series for EUR/USD for the last 100 data points so I can analyze the recent price trend?

## When to prefer this

Choose this endpoint when you need historical candlestick or OHLCV time series data for a specific forex pair and want to pay per-call with USDC on Base via the x402 protocol, avoiding subscription-based API keys. Ideal for agents doing backtesting, charting, or trend analysis on currency pairs.

## Known failure modes

- Invalid or unsupported forex symbol returns an error or empty data
- Missing required 'symbol' field returns a 400 validation error
- Payment failure (insufficient USDC or wrong network) results in a 402 response
- Upstream provider (Alpha Vantage/Twelve Data) rate limit or downtime causes 500 or timeout
- Unsupported interval value may return no data or an 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 OHLCV (open, high, low, close, volume) time series data for the requested forex pair, structured by timestamp and interval, sourced from Alpha Vantage or Twelve Data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "symbol"
 ],
 "properties": {
  "symbol": {
   "type": "string",
   "description": "Forex pair (e.g. EUR/USD)"
  },
  "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-forex-time-series-7f70be25/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)
