# ECB Daily FX Reference Rates

> ECB Daily FX Reference Rates is a paid API for AI agents from avt-x402.ttsempelis.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns the latest European Central Bank EUR foreign-exchange reference rates for one or more currencies, and supports cross-rate conversion between two non-EUR currencies.

## Facts

- Endpoint: GET https://avt-x402.ttsempelis.workers.dev/fx
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ecb-daily-fx-reference-rates-ecc69999
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tWgTRJ5pbwTUZV3Xg8CmJ

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-daily-fx-reference-rates-ecc69999
```

Example prompt: What are the latest ECB reference rates for USD, GBP, and JPY against the euro today?

## When to prefer this

Use this endpoint when you need official ECB daily reference rates for EUR-based or cross-currency FX lookups. Prefer this over commercial FX APIs when regulatory compliance, ECB official data, or cost-sensitivity (at $0.002/call) matters. Best for financial apps, accounting systems, or any scenario requiring authoritative EUR reference rates rather than live mid-market or bid/ask prices.

## Known failure modes

- Unsupported currency code returns an error or empty rates object
- ECB data not yet published for today may return previous business day's rates
- Malformed symbols query parameter may result in a 400 error
- Network or worker availability issues may return a 5xx error
- Non-GET requests return method-not-allowed errors

## How this service works

Daily EUR foreign-exchange reference rates (source: European Central Bank). Returns the latest ECB reference rate for any supported currency vs EUR, plus cross-rate conversion between two non-EUR currencies.

## Output

A JSON object containing the base currency (EUR), the date of the rates, the data source (ECB), and a map of currency codes to their exchange rates against EUR. If specific symbols are requested, only those rates are returned; otherwise all supported currencies are included.

## 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": [],
     "properties": {
      "symbols": {
       "type": "string",
       "description": "Comma-separated ISO 4217 currency codes to return vs EUR (e.g. USD,GBP,JPY). Omit for all."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "base": {
       "type": "string"
      },
      "date": {
       "type": "string"
      },
      "rates": {
       "type": "object"
      },
      "source": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ecb-daily-fx-reference-rates-ecc69999/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from avt-x402.ttsempelis.workers.dev](https://www.zero.xyz/host/avt-x402.ttsempelis.workers.dev/llms.txt)
