# ECB Daily FX Reference Rate

> ECB Daily FX Reference Rate is a paid API for AI agents from fittings.sh, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Returns the European Central Bank's official daily reference exchange rate between two currencies, optionally for a historical date and with an optional amount to convert.

## Facts

- Endpoint: GET https://fittings.sh/v1/fx/ecb-rate
- Price: $0.003/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-rate-4871da45
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2-7-JFs_0Zhn2LHcqlduc

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-rate-4871da45
```

Example prompt: What's the ECB's official reference rate to convert USD to EUR today? Also show me what 1500 USD works out to in euros.

## When to prefer this

Choose this endpoint when you need the authoritative ECB official reference rate — the rate used for regulatory, accounting, or legal compliance purposes in Europe. Prefer it over commercial FX APIs when ECB-sourced rates are specifically required (e.g. EU tax filings, VAT calculations, or financial audits). It is ideal for single-pair, point-in-time lookups rather than bulk or streaming FX data.

## Known failure modes

- Unsupported currency pair not published by ECB (e.g. exotic or non-ECB-tracked currencies) returns an error or empty result
- Date falls on a weekend or public holiday when ECB does not publish rates — may return the last available rate or an error
- Invalid ISO 4217 currency codes return a validation error
- Future dates are not supported
- Malformed date format returns a schema validation error

## How this service works

The European Central Bank's daily reference rate between two currencies, for the latest working day or a historical date.

## Output

Returns the ECB official daily reference rate for the requested currency pair, the date the rate applies to, and optionally a converted amount if the 'amount' parameter was supplied. The rate is sourced from ECB's published working-day reference rates.

## 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": "Quote currency, ISO 4217, e.g. EUR"
      },
      "date": {
       "type": "string",
       "description": "Optional ISO date; defaults to the latest published rate"
      },
      "from": {
       "type": "string",
       "description": "Base currency, ISO 4217, e.g. USD"
      },
      "amount": {
       "type": "number",
       "description": "Optional amount to convert, default 1"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ecb-daily-fx-reference-rate-4871da45/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fittings.sh](https://www.zero.xyz/host/fittings.sh/llms.txt)
