# x402stock Exchange Rates

> x402stock Exchange Rates is a paid API for AI agents from agents.x402stock.xyz, paid per call via x402 or MPP, $0.02/call, status unknown (last checked 2026-09-14).

Fetches live or recent forex and crypto exchange rates for AI agents, billed per request via USDC/x402

## Facts

- Endpoint: GET https://agents.x402stock.xyz/api/v1/exchange-rates
- Price: $0.02/call
- Payment: x402, MPP
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-exchange-rates-7d560f51
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YucSgC0KjKfAXuwdv2k9C

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 x402stock-exchange-rates-7d560f51
```

Example prompt: What's the current exchange rate between EUR and USD? I need live forex data right now for a payment conversion calculation.

## When to prefer this

Choose this endpoint when you need live or near-real-time forex or crypto exchange rates without setting up API keys or accounts, and when your agent can autonomously pay per request in USDC. Ideal for agents doing currency conversion, cross-border payment calculations, or portfolio valuation. Prefer over Bloomberg or Reuters integrations when simplicity and pay-per-use billing matter more than institutional-grade SLAs.

## Known failure modes

- Invalid or unsupported currency pair returns an error or empty result
- Payment failure (insufficient USDC balance) returns HTTP 402 and blocks the request
- Rate data may be slightly delayed depending on market feed latency
- Malformed query parameters may return a 400 bad request error
- Unsupported exotic currency pairs may not be available in the catalog

## How this service works

Official US Treasury reporting rates of exchange — government FX reference rates for ~170 currencies, in units of foreign currency per 1 USD, for the latest quarter. Use for accounting-grade and exotic-currency conversion the market /api/v1/forex feed lacks. Filter with `?currency=Euro`. Updated quarterly. From the US Treasury (FiscalData). From x402stock

## Output

Returns current exchange rate data for the requested currency pair(s), including the rate value, the currencies involved, and a timestamp. Sourced from live market data for forex and crypto pairs.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-exchange-rates-7d560f51/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.x402stock.xyz](https://www.zero.xyz/host/agents.x402stock.xyz/llms.txt)
