# Alpha Vantage FX Daily via Locus x402

> Alpha Vantage FX Daily via Locus x402 is a paid API for AI agents from alphavantage.x402.paywithlocus.com, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-14).

Returns daily foreign exchange (forex) time-series data between two currency pairs via pay-per-use x402 micropayment.

## Facts

- Endpoint: POST https://alphavantage.x402.paywithlocus.com/alphavantage/fx-daily
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alpha-vantage-fx-daily-via-locus-x402-a5520812
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VR9KqOOs1uW6zE6BdnOWc

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 alpha-vantage-fx-daily-via-locus-x402-a5520812 -d '<json body>'
```

Example prompt: Can you pull the daily forex price history for EUR to USD — just the latest 100 data points in JSON format?

## When to prefer this

Choose this endpoint when you need daily granularity foreign exchange time-series data (OHLCV) for any currency pair and want pay-per-use micropayment access via x402 without managing an Alpha Vantage API key directly. It is ideal for agents that need forex data on-demand without subscription overhead. Prefer alternatives if you need intraday (minute/hourly) FX data, real-time tick data, or non-forex asset classes like equities or crypto.

## Known failure modes

- Invalid currency code (e.g. unsupported or misspelled symbol) returns an error or empty data object
- Insufficient USDC payment authorization causes payment failure before data is returned
- Alpha Vantage upstream rate limit or outage results in empty or error data payload
- Invalid outputsize or datatype parameter value may return an error or default behavior
- Network timeout on the x402 facilitator proxy layer

## How this service works

Financial market data — stock prices, forex, crypto, commodities, economic indicators, technical analysis, and news sentiment.

## Output

A JSON object containing daily OHLCV (open, high, low, close, volume) time-series data for the requested currency pair, along with payment settlement details (settled USDC amount) and a request tracking ID. The 'data' field holds the Alpha Vantage time-series response. Compact mode returns the latest 100 trading days; full mode returns the complete available history.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "datatype": {
   "type": "string"
  },
  "to_symbol": {
   "type": "string"
  },
  "outputsize": {
   "type": "string"
  },
  "from_symbol": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "payment": {
   "scheme": "exact",
   "settledUsdc": "0.001000",
   "authorizedMaxUsdc": "0.001000"
  },
  "request": {
   "id": "00000000-0000-4000-8000-000000000000",
   "statusUrl": "/requests/00000000-0000-4000-8000-000000000000"
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/alpha-vantage-fx-daily-via-locus-x402-a5520812/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from alphavantage.x402.paywithlocus.com](https://www.zero.xyz/host/alphavantage.x402.paywithlocus.com/llms.txt)
