# FX Convert (ECB Reference Rates)

> FX Convert (ECB Reference Rates) is a paid API for AI agents from 402.com.tr, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Converts between 30+ currencies using the European Central Bank's daily reference rate for today or any historical date, returning the converted amount, per-unit rate, and actual rate date.

## Facts

- Endpoint: GET https://402.com.tr/api/x402/fx-convert
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fx-convert-ecb-reference-rates-060dc7bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_a5LnDA-5IC0fwHKhdMYVg

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 fx-convert-ecb-reference-rates-060dc7bc
```

Example prompt: Convert 1500 USD to EUR and GBP using the ECB reference rate for 2024-03-15 — I need the converted amounts and the actual rate date used.

## When to prefer this

Choose this endpoint when you need official ECB reference rates for accounting, auditing, financial reporting, or compliance purposes — not for live trading quotes. Ideal when you need historical rates on a specific past date, transparency about which business day's rate was actually used, or conversion to multiple currencies simultaneously. Prefer over general FX APIs when ECB provenance and auditability matter.

## Known failure modes

- Invalid or unsupported currency code returns an error indicating the currency is not available
- Date before ECB data history returns an error for out-of-range date
- Malformed date format (not YYYY-MM-DD) causes a validation error
- ECB data unavailable for a very recent date may fall back to last available rate
- Network or upstream ECB data source timeout

## How this service works

Convert between 30+ currencies at the European Central Bank's daily reference rate, for today or any past date. Returns the converted amount, the per-unit rate and the date the rate is actually from — the ECB publishes on business days only, so a weekend date answers with the previous business day and says so instead of pretending. Reference rates for accounting and reporting, not tradable quotes.

## Output

Returns the converted amount, the per-unit exchange rate, and the actual date the rate is from (which may differ from the requested date if it fell on a weekend or holiday, with the discrepancy clearly noted). Supports converting to multiple target currencies in a single call.

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Target currency (or several, comma-separated)"
      },
      "date": {
       "type": "string",
       "description": "Date (optional, YYYY-MM-DD)"
      },
      "from": {
       "type": "string",
       "description": "Source currency"
      },
      "amount": {
       "type": "string",
       "description": "Amount (optional, default 1)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fx-convert-ecb-reference-rates-060dc7bc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402.com.tr](https://www.zero.xyz/host/402.com.tr/llms.txt)
