# x402 Data Hub v2 – Exchange Rates

> x402 Data Hub v2 – Exchange Rates is a paid API for AI agents from data-hub-x402.vercel.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-11).

Returns current cryptocurrency exchange rates for specified trading pairs via a paid x402 micropayment endpoint

## Facts

- Endpoint: POST https://data-hub-x402.vercel.app/api/exchange/rates?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-data-hub-v2-exchange-rates-36c551c4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MKrxi-4aBRYG1WWt52ptH

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-data-hub-v2-exchange-rates-36c551c4 -d '<json body>'
```

Example prompt: What's the current exchange rate for BTC to USD and ETH to USDC right now? Pull it from the x402 Data Hub exchange rates endpoint.

## When to prefer this

Choose this endpoint when you need real-time or near-real-time crypto exchange rates and are operating in an x402 micropayment-compatible agent environment. It is well-suited for agents that already handle x402 payment flows and need price data without setting up a dedicated exchange API key. At $0.05 per call it is cost-effective for low-to-moderate frequency lookups rather than high-frequency trading feeds.

## Known failure modes

- Payment not included or insufficient — returns 402 Payment Required
- Invalid or unsupported trading pair — returns 400 or empty result
- Rate data temporarily unavailable — may return 503 or stale data
- Malformed POST body — returns 400 Bad Request
- Network timeout from upstream exchange data source

## How this service works

16 paid endpoints - Crypto, Exchange, Yield, Governance, Sentiment

## Output

Returns current exchange rate data for the requested cryptocurrency pair(s), including the rate value, base and quote currency identifiers, and a timestamp indicating data freshness. Payment of $0.05 USDC is charged per call via x402 protocol.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-data-hub-v2-exchange-rates-36c551c4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data-hub-x402.vercel.app](https://www.zero.xyz/host/data-hub-x402.vercel.app/llms.txt)
