# Toll402 FX Rate (ECB Reference Rates)

> Toll402 FX Rate (ECB Reference Rates) is a paid API for AI agents from toll402.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns the ECB reference exchange rate between two ISO 4217 currencies, optionally converting a specific amount.

## Facts

- Endpoint: GET https://toll402.dev/v1/fx
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toll402-fx-rate-ecb-reference-rates-a6dee560
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1uj1qmpPh-jSRHkS9Txvc

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 toll402-fx-rate-ecb-reference-rates-a6dee560
```

Example prompt: What's the current ECB reference exchange rate from EUR to USD, and how much would 750 EUR convert to?

## When to prefer this

Choose this endpoint when you need official, authoritative ECB reference exchange rates rather than real-time market rates. Ideal for financial reporting, invoicing, regulatory compliance, or any use case that requires the European Central Bank's published daily rates. Not suitable if you need live mid-market or interbank rates updated intraday.

## Known failure modes

- Invalid or unsupported ISO 4217 currency code returns an error
- ECB may not publish rates for all currency pairs (e.g. exotic currencies)
- If the ECB has not yet published today's rate, yesterday's rate may be returned
- Network or upstream ECB data unavailability may cause failures
- Passing a non-3-letter string for base or quote will fail schema validation

## How this service works

Exchange rate between two ISO currencies (ECB reference rates), optionally converting an amount. (GET: pass the input as query parameters)

## Output

Returns a JSON object with the base currency, quote currency, the ECB reference rate (a floating-point number), the date the rate was published, the requested amount, and the converted amount. Also includes response time in milliseconds and an ok status flag.

## 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",
     "properties": {
      "base": {
       "type": "string",
       "default": "USD",
       "maxLength": 3,
       "minLength": 3,
       "description": "ISO 4217 base currency"
      },
      "quote": {
       "type": "string",
       "maxLength": 3,
       "minLength": 3,
       "description": "ISO 4217 quote currency; omit for all rates"
      },
      "amount": {
       "type": "number",
       "default": 1,
       "minimum": 0
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ms": {
       "type": "integer"
      },
      "ok": {
       "type": "boolean"
      },
      "tool": {
       "type": "string"
      },
      "result": {
       "type": "object",
       "properties": {
        "base": {
         "type": "string"
        },
        "date": {
         "type": "string"
        },
        "rate": {
         "type": "number"
        },
        "quote": {
         "type": "string"
        },
        "amount": {
         "type": "integer"
        },
        "converted": {
         "type": "integer"
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base": "USD",
  "date": "2026-09-05",
  "rate": 18.42,
  "quote": "MXN",
  "amount": 100,
  "converted": 1842
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/toll402-fx-rate-ecb-reference-rates-a6dee560/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toll402.dev](https://www.zero.xyz/host/toll402.dev/llms.txt)
