# Alpha Vantage Crypto Exchange Rate (via Locus x402)

> Alpha Vantage Crypto Exchange Rate (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-15).

Returns the real-time exchange rate between a cryptocurrency and a target fiat or crypto currency using Alpha Vantage data, paid per-call via x402.

## Facts

- Endpoint: POST https://alphavantage.x402.paywithlocus.com/alphavantage/crypto-exchange-rate
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alpha-vantage-crypto-exchange-rate-via-locus-x402-5d735c04
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GerkZTMedg6vT-v5oWrEi

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-crypto-exchange-rate-via-locus-x402-5d735c04 -d '<json body>'
```

Example prompt: What's the current exchange rate for ETH to USD? Use Alpha Vantage to look it up right now.

## When to prefer this

Choose this endpoint when you need a real-time, point-in-time crypto-to-fiat or crypto-to-crypto exchange rate and are willing to pay per query via USDC micropayment. It is backed by Alpha Vantage's reliable market data and accessed through Locus x402 pay-per-use infrastructure, making it ideal for agents that don't want a monthly subscription and need on-demand pricing. Prefer it over scraping or free-tier APIs when freshness and reliability matter.

## Known failure modes

- Unsupported or invalid currency code returns an error or empty data object
- Alpha Vantage API rate limit exceeded upstream causes failure
- Network timeout from the Locus proxy layer
- Payment failure if USDC balance is insufficient for the $0.008 per-call fee
- Malformed request missing from_currency or to_currency fields

## How this service works

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

## Output

Returns a JSON object containing the real-time exchange rate data for the requested crypto pair, including the from/to currency names and codes, the exchange rate, bid price, ask price, and the timestamp of the last refresh, along with payment settlement metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to_currency": {
   "type": "string"
  },
  "from_currency": {
   "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-crypto-exchange-rate-via-locus-x402-5d735c04/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)
