# AgentTools ECB Live Exchange Rates

> AgentTools ECB Live Exchange Rates is a paid API for AI agents from agenttools-hub.vercel.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Returns live ECB foreign-exchange reference rates for 30 currencies — either a full rate table against a base currency or a cross-rate amount conversion — refreshed every business day and cached one hour.

## Facts

- Endpoint: GET https://agenttools-hub.vercel.app/api/v1/live/exchange-rates?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-ecb-live-exchange-rates-b9e183ca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gXvkYGeu1xMlVZBKhsL37

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 agenttools-ecb-live-exchange-rates-b9e183ca
```

Example prompt: What's today's ECB reference rate for converting 2500 USD to EUR? Give me the converted amount.

## When to prefer this

Use this endpoint when you need official ECB reference rates for any of the 30 supported currencies — especially when regulatory, accounting, or cross-border compliance requires an authoritative ECB source rather than a commercial FX feed. Prefer this over general FX APIs when EUR is involved or when you need a historical ECB rate for a specific business day.

## Known failure modes

- Unsupported currency code returns an error — only the 30 ECB-listed currencies are valid
- Date falling on a weekend or ECB holiday has no data — must use an ECB business day
- Missing required 'op' (rates or convert) parameter causes a bad request
- For 'convert' op, missing 'from', 'to', or 'amount' may return incomplete results
- Rate data may be up to 1 hour stale due to server-side cache
- Non-business-day dates may return the most recent prior business day's rates or an error

## How this service works

Live foreign-exchange reference rates from the European Central Bank (via frankfurter.dev): a full rate table against any base currency, or cross-rate conversion of any amount. Refreshed every business day by the ECB, cached one hour. Use this when an agent needs to live ECB reference rates for 30 currencies.

## Output

Returns either a full rate table (all 30 ECB currencies quoted against the specified base) or a single converted amount and rate for a given currency pair and optional amount, including the ECB reference date for the data.

## 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": {
      "op": {
       "enum": [
        "rates",
        "convert"
       ],
       "type": "string",
       "description": "Operation"
      },
      "to": {
       "enum": [
        "",
        "AUD",
        "BRL",
        "CAD",
        "CHF",
        "CNY",
        "CZK",
        "DKK",
        "EUR",
        "GBP",
        "HKD",
        "HUF",
        "IDR",
        "ILS",
        "INR",
        "ISK",
        "JPY",
        "KRW",
        "MXN",
        "MYR",
        "NOK",
        "NZD",
        "PHP",
        "PLN",
        "RON",
        "SEK",
        "SGD",
        "THB",
        "TRY",
        "USD",
        "ZAR"
       ],
       "type": "string",
       "description": "Convert to"
      },
      "base": {
       "enum": [
        "AUD",
        "BRL",
        "CAD",
        "CHF",
        "CNY",
        "CZK",
        "DKK",
        "EUR",
        "GBP",
        "HKD",
        "HUF",
        "IDR",
        "ILS",
        "INR",
        "ISK",
        "JPY",
        "KRW",
        "MXN",
        "MYR",
        "NOK",
        "NZD",
        "PHP",
        "PLN",
        "RON",
        "SEK",
        "SGD",
        "THB",
        "TRY",
        "USD",
        "ZAR"
       ],
       "type": "string",
       "description": "Base currency"
      },
      "date": {
       "type": "string",
       "description": "YYYY-MM-DD — ECB business days"
      },
      "from": {
       "enum": [
        "",
        "AUD",
        "BRL",
        "CAD",
        "CHF",
        "CNY",
        "CZK",
        "DKK",
        "EUR",
        "GBP",
        "HKD",
        "HUF",
        "IDR",
        "ILS",
        "INR",
        "ISK",
        "JPY",
        "KRW",
        "MXN",
        "MYR",
        "NOK",
        "NZD",
        "PHP",
        "PLN",
        "RON",
        "SEK",
        "SGD",
        "THB",
        "TRY",
        "USD",
        "ZAR"
       ],
       "type": "string",
       "description": "Convert from"
      },
      "amount": {
       "type": "number",
       "description": "Amount"
      }

… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenttools-ecb-live-exchange-rates-b9e183ca/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenttools-hub.vercel.app](https://www.zero.xyz/host/agenttools-hub.vercel.app/llms.txt)
