# PowaHub FX Rate (ECB Mid-Market)

> PowaHub FX Rate (ECB Mid-Market) is a paid API for AI agents from api.powahub.ai, paid per call via x402, $0.007/call, status unknown (last checked 2026-10-02).

Returns the European Central Bank mid-market reference rate for a given base/quote currency pair, optionally for a specific historical date.

## Facts

- Endpoint: GET https://api.powahub.ai/CertainData/fx-rate/fx/:base/:quote?utm_source=zero.xyz
- Price: $0.007/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/powahub-fx-rate-ecb-mid-market-3aaeabbb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S_l0hYCdjw8Raid4QPUfs

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 powahub-fx-rate-ecb-mid-market-3aaeabbb
```

Example prompt: What's the current ECB mid-market rate for EUR to USD? And can you also check what it was on 2024-03-15?

## When to prefer this

Choose this endpoint when you need an authoritative, neutral mid-market FX rate sourced from the European Central Bank — ideal for financial reporting, invoice conversion, compliance, or audit scenarios where ECB rates are a standard reference. Prefer this over broker or bank rates when regulatory or accounting neutrality is required. Use the historical date parameter for back-dated reconciliation or audit trails.

## Known failure modes

- Unsupported or invalid ISO currency code returns an error (e.g. a non-existent currency)
- Historical date requested before ECB data availability returns no result
- Weekend or ECB non-publishing day may return the most recent available rate rather than an exact date match
- Malformed date format (not YYYY-MM-DD) causes a validation error
- Currency pair not published by ECB (e.g. exotic pairs) may return no rate

## How this service works

Mid-market reference rate for a base/quote currency pair, from the European Central Bank.

## Output

Returns the ECB mid-market reference rate as a numeric value for the specified base/quote currency pair, along with the applicable date. For historical requests, the rate for the given date is returned; for current requests, the latest published ECB rate is returned.

## 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",
    "pathParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "base",
      "quote"
     ],
     "properties": {
      "base": {
       "type": "string",
       "description": "Base currency as a 3-letter ISO code, e.g. EUR."
      },
      "quote": {
       "type": "string",
       "description": "Quote currency as a 3-letter ISO code, e.g. USD."
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "date": {
       "type": "string",
       "description": "Optional. A specific date (YYYY-MM-DD) for a historical rate, e.g. 2026-01-01. Omit for the latest."
      }
     }
    }
   },
   "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/powahub-fx-rate-ecb-mid-market-3aaeabbb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.powahub.ai](https://www.zero.xyz/host/api.powahub.ai/llms.txt)
