# agent402.tools FX Rate Converter

> agent402.tools FX Rate Converter is a paid API for AI agents from agent402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-16).

Converts a currency amount between two currencies using European Central Bank reference rates via Frankfurter, returning the converted amount, exchange rate, and date.

## Facts

- Endpoint: GET https://agent402.tools/api/fx-rate
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-fx-rate-converter-7b54d7df
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TqrsAn7SKQHAtiqRXa6zX

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 agent402-tools-fx-rate-converter-7b54d7df
```

Example prompt: What's 750 USD worth in Japanese yen right now, using ECB reference rates?

## When to prefer this

Use this endpoint when you need authoritative, ECB-sourced reference exchange rates for mainstream currency pairs. Prefer this over general quote endpoints when you specifically need ECB rates with the associated date, or when performing financial calculations that require a trusted central bank reference rate rather than a market/bid-ask rate.

## Known failure modes

- Invalid or unsupported 3-letter currency code returns an error (e.g. unknown currency)
- Missing required 'from' or 'to' query parameters results in a 400 bad request
- ECB may not have rates for exotic or non-standard currencies
- Network/upstream failure if Frankfurter API is unavailable

## How this service works

Live currency conversion using European Central Bank reference rates (via Frankfurter). Converts an amount between two currencies and returns the rate and date. ?from=USD&to=EUR&amount=100

## Output

Returns the converted amount, the exchange rate used, the currency pair, and the date of the ECB reference rate — e.g. 100 USD converts to 91.23 EUR at rate 0.9123 as of 2024-06-01.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "3-letter currency code, e.g. EUR"
      },
      "from": {
       "type": "string",
       "description": "3-letter currency code, e.g. USD"
      },
      "amount": {
       "type": "number",
       "description": "amount to convert (default 1)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "from",
      "to",
      "amount",
      "rate",
      "result",
      "date"
     ],
     "properties": {
      "to": {
       "type": "string"
      },
      "date": {
       "type": "string"
      },
      "from": {
       "type": "string"
      },
      "rate": {
       "type": "number"
      },
      "amount": {
       "type": "integer"
      },
      "result": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "EUR",
  "date": "2026-06-13",
  "from": "USD",
  "rate": 0.923,
  "amount": 100,
  "result": 92.3
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-fx-rate-converter-7b54d7df/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
