# TokenGuard FX Currency Conversion

> TokenGuard FX Currency Conversion is a paid API for AI agents from eltociear-tokenguard.hf.space, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Converts a specified amount from USD to multiple foreign currencies using live ECB exchange rates

## Facts

- Endpoint: POST https://eltociear-tokenguard.hf.space/fx
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokenguard-fx-currency-conversion-ec1528c3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sm4NotkIdecXbq3DuxLlr

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

Example prompt: Convert $100 USD into EUR, GBP, and JPY using today's ECB exchange rates and show me each converted amount.

## When to prefer this

Choose this endpoint when you need to convert a USD amount to one or more specific foreign currencies using reliable ECB-sourced exchange rates, especially within an AI agent workflow that already uses the TokenGuard/x402 micropayment stack on Base.

## Known failure modes

- Invalid or unsupported currency code returns an error
- Stale or unavailable ECB data may cause empty or outdated rates
- Malformed request body results in 4xx error
- Micropayment failure via x402 prevents endpoint access
- Rate limiting or service unavailability returns 5xx

## How this service works

Fiat FX rates + amount conversion over free public APIs (Frankfurter/ECB primary, open.er-api fallback, 160+ currencies). Fiat-to-fiat, distinct from crypto /price.

## Output

Returns a JSON object with the base currency (USD), the as-of date, the number of target currencies, individual exchange rates keyed by currency code, the input amount, the data source (Frankfurter/ECB), and the converted amounts for each target currency.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "base": {
   "type": "string",
   "description": "Base currency ISO code (default USD)"
  },
  "amount": {
   "type": "number",
   "description": "Amount to convert (optional, default 1)"
  },
  "symbols": {
   "type": "string",
   "description": "Comma-separated target codes (optional, all if omitted)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base": "USD",
  "as_of": "2026-06-25",
  "count": 3,
  "rates": {
   "EUR": 0.88168,
   "GBP": 0.75986,
   "JPY": 161.85
  },
  "amount": 100,
  "source": "frankfurter.dev (ECB)",
  "converted": {
   "EUR": 88.168,
   "GBP": 75.986,
   "JPY": 16185
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokenguard-fx-currency-conversion-ec1528c3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from eltociear-tokenguard.hf.space](https://www.zero.xyz/host/eltociear-tokenguard.hf.space/llms.txt)
