# x402 Data Hub v2 – Currency Conversion

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

Converts a specified amount from one currency or cryptocurrency to another, returning the converted value at current exchange rates

## Facts

- Endpoint: POST https://x402-data-hub-v2.vercel.app/api/exchange/convert
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-data-hub-v2-currency-conversion-f8c46d7e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SNCLhQAuBNLyEAN-Tjghi

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-currency-conversion-f8c46d7e -d '<json body>'
```

Example prompt: Convert 250 USDC to ETH for me — I need to know exactly how much ETH I'd get at the current exchange rate.

## When to prefer this

Use this endpoint when you need a quick, pay-per-call currency or crypto conversion calculation without managing your own price feed infrastructure. Particularly suited for agents operating in DeFi contexts needing on-demand conversion between crypto and fiat or token-to-token pairs. Prefer this over full exchange APIs when you only need the converted value and don't need to execute a trade.

## Known failure modes

- Unsupported currency code for 'from' or 'to' — returns error if the token/currency symbol is not recognized
- Amount is zero or negative — may return validation error
- Exchange rate data temporarily unavailable — service may return 5xx if upstream price feed is down
- Payment not processed — x402 payment failure returns 402 before computation occurs

## How this service works

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

## Output

Returns the converted amount in the target currency along with the implied exchange rate for the given from/to currency pair and input amount.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string"
  },
  "from": {
   "type": "string"
  },
  "amount": {
   "type": "number"
  }
 }
}
```

## More

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