# FX Currency Conversion

> FX Currency Conversion is a paid API for AI agents from x402-canary.nicolas-x402-16f380a7.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Converts a monetary amount from one currency to another using live exchange rates, returning the converted value.

## Facts

- Endpoint: POST https://x402-canary.nicolas-x402-16f380a7.workers.dev/v1/fx/convert
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fx-currency-conversion-4997dfa3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_m7C2lI0FErnZAPASk9lcC

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 fx-currency-conversion-4997dfa3 -d '<json body>'
```

Example prompt: Can you convert 100 USD to EUR for me?

## When to prefer this

Choose this endpoint when you need a simple, pay-per-call currency conversion with no subscription or API key setup, especially within x402-enabled agent workflows where micropayments via USDC are already integrated. Useful for lightweight FX lookups without needing a full-featured financial data provider.

## Known failure modes

- Unsupported or invalid currency code returns an error
- Missing required fields (base, quote, amount) may result in a 400 or unexpected response
- Rate unavailable for exotic currency pairs
- Payment not included or invalid x402 payment header causes a 402 Payment Required response

## How this service works

Free need-to-tool routing plus pay-per-call npm docs and TypeScript API signatures, npm breaking-change diffs, JavaScript-rendered browser snapshots and deterministic coding-agent checks via AgentCash/x402.

## Output

A JSON object containing the original amount, the converted amount in the target currency, and metadata about the FX engine used. Example: {data: {amount: 100, converted: 91}, meta: {engine: 'fx'}}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "base": {
   "type": "string",
   "default": "USD",
   "example": "USD"
  },
  "quote": {
   "type": "string",
   "default": "EUR",
   "example": "EUR"
  },
  "amount": {
   "type": "number",
   "default": 100,
   "example": 100
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "amount": 100,
   "converted": 91
  },
  "meta": {
   "engine": "fx"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fx-currency-conversion-4997dfa3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-canary.nicolas-x402-16f380a7.workers.dev](https://www.zero.xyz/host/x402-canary.nicolas-x402-16f380a7.workers.dev/llms.txt)
