# ECB Currency Rates Converter

> ECB Currency Rates Converter is a paid API for AI agents from ca-tax-api-mainnet.lxtap.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-23).

Converts a currency amount between two ISO 4217 currencies using the European Central Bank daily reference rate, returning the rate used, converted result, and effective rate date.

## Facts

- Endpoint: GET https://ca-tax-api-mainnet.lxtap.workers.dev/fx/convert?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ecb-currency-rates-converter-acf60916
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eNaHWnvQ_Gfxmx1AxZ4N_

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 ecb-currency-rates-converter-acf60916
```

Example prompt: Convert 1500 USD to EUR using the ECB daily reference rate for 2024-03-15 and tell me the rate and the final converted amount.

## When to prefer this

Choose this endpoint when you need official, authoritative ECB reference rates rather than commercial or real-time market rates. Ideal for accounting, compliance, invoicing, and reporting use cases where ECB rates are contractually or legally required. Prefer over generic forex APIs when the ECB daily fixing specifically is needed, or when a historical ECB rate for a past date is required.

## Known failure modes

- Unsupported currency code (ECB only publishes rates for ~30 major currencies against EUR) — returns error or empty result
- Date provided is a weekend or ECB holiday when no rate is published — may return closest prior business day rate or an error
- Malformed currency code (not 3 alpha characters) — schema validation error
- Amount formatted incorrectly (non-numeric string) — schema validation error
- ECB data feed unavailable or delayed — may return stale or missing rate

## How this service works

Pay-per-call data for AI agents, paid in USDC on Base with x402: token risk checks (rug check) on Base, Ethereum, Arbitrum, Optimism, Polygon and Solana, onchain reads (balances, transactions, gas, contracts, NFTs, whale trades, new pools, ENS and Basenames), ECB exchange rates, and Canadian sales tax and business days.

## Output

Returns the ECB reference exchange rate used (as a decimal), the converted amount in the target currency, and the effective date of the rate. If no date is specified, the latest available ECB rate is used.

## 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",
      "amount"
     ],
     "properties": {
      "to": {
       "type": "string",
       "pattern": "^[A-Za-z]{3}$",
       "description": "ISO 4217 target currency"
      },
      "date": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "Past date YYYY-MM-DD; latest if omitted"
      },
      "from": {
       "type": "string",
       "pattern": "^[A-Za-z]{3}$",
       "description": "ISO 4217 source currency"
      },
      "amount": {
       "type": "string",
       "pattern": "^\\d+(\\.\\d+)?$",
       "description": "Amount in the source currency"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "CAD",
  "date": "2026-10-22",
  "from": "USD",
  "rate": 1.4034,
  "amount": 250,
  "result": 350.85,
  "source": "European Central Bank reference rates via frankfurter.dev"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ecb-currency-rates-converter-acf60916/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ca-tax-api-mainnet.lxtap.workers.dev](https://www.zero.xyz/host/ca-tax-api-mainnet.lxtap.workers.dev/llms.txt)
