# Delx Commerce FX Rates (ECB)

> Delx Commerce FX Rates (ECB) is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Returns European Central Bank reference exchange rates for one or more currency pairs against a chosen base currency, for today or up to 31 days in the past.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/fx-rates?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-fx-rates-ecb-84a28a56
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iThpqkdDyE1p5T8wcrUez

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 delx-commerce-fx-rates-ecb-84a28a56 -d '<json body>'
```

Example prompt: Can you look up today's ECB reference rates for USD, GBP, and JPY, all quoted against EUR?

## When to prefer this

Choose this endpoint when you need official, authoritative ECB reference rates for informational or accounting purposes rather than live market rates or executable transaction quotes. Ideal for compliance, reporting, invoicing conversion, and historical lookups up to 31 days back. Pay-per-call with no signup makes it suitable for low-frequency or agent-driven workflows where subscription APIs are overkill.

## Known failure modes

- Date out of range (more than 31 days ago) returns an error
- ECB does not publish rates on weekends or public holidays — requests for those dates may return no data
- Invalid 3-letter currency code returns an error or omits the currency
- upstream_error: true indicates ECB data could not be fetched
- Timeout exceeded if ECB is slow to respond (max 8 seconds)
- Requesting more than 20 quote currencies is rejected

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing the rate_date, base_currency, and a rates map of each requested quote currency to its ECB reference rate as a decimal string. Also includes provider name and URL, a cache hit/miss indicator, a reuse policy URL, upstream error flag, and a data note clarifying these are informational reference rates only.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "date": {
   "type": "string",
   "format": "date",
   "description": "Optional ECB publication date, today or up to 31 days in the past."
  },
  "quotes": {
   "type": "array",
   "items": {
    "type": "string",
    "pattern": "^[A-Za-z]{3}$"
   },
   "maxItems": 20,
   "description": "Optional quote currencies; omit to return all currencies in the selected ECB publication."
  },
  "timeout": {
   "type": "integer",
   "default": 8,
   "maximum": 8,
   "minimum": 2
  },
  "base_currency": {
   "type": "string",
   "default": "EUR",
   "pattern": "^[A-Za-z]{3}$",
   "description": "Three-letter ISO currency code used as the base."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "cache": "miss",
   "rates": {
    "BRL": "5.742383",
    "EUR": "0.87804021"
   },
   "schema": "delx/fx-rates/v1",
   "provider": "European Central Bank",
   "data_note": "Informational reference rates only; this is not a transaction quote, execution venue, or trading advice.",
   "rate_date": "2026-07-31",
   "attribution": "Reference rates supplied by the European Central Bank; see provider_url and reuse_policy_url for source and reuse terms.",
   "provider_url": "https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html",
   "base_currency": "USD",
   "upstream_error": false,
   "requested_quotes": [
    "EUR",
    "BRL"
   ],
   "reuse_policy_url": "https://www.ecb.europa.eu/stats/ecb_statistics/governance_and_quality_framework/html/usage_policy.en.html"
  },
  "tool_name": "get_fx_rates_ecb"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-fx-rates-ecb-84a28a56/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
