Frankfurter ECB Historical Date FX Snapshot
Fetch official European Central Bank (ECB) foreign exchange rates for any historical calendar date (`YYYY-MM-DD`) with base currency, amount conversion, and target ISO currency filter.
curl -sG "https://api.agentapigate.ai/v1/macro/fx/date_snapshot" \ --data-urlencode "date=2026-11-01" \ --data-urlencode "from=USD" \ --data-urlencode "to=EUR,GBP,JPY,CHF,CAD" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# Frankfurter ECB Historical Date FX Snapshot (`macro.fx.date_snapshot`) **amount**: 1 · **base**: USD · **date**: 2026-10-30 · **requested_date**: 2026-11-01 ## rates - **CAD**: 1.3969 - **CHF**: 0.82295 - **EUR**: 0.89509 - **GBP**: 0.74633 - **JPY**: 157.25
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:macro.fx.date_snapshot · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| date | string | optional | 2026-11-01 | Historical date in YYYY-MM-DD format (e.g. "2026-11-01" or "2024-06-15") |
| from | string | optional | USD | 3-letter ISO-4217 base currency code (default "USD") |
| to | string | optional | EUR,GBP,JPY,CHF,CAD | Optional comma-separated target ISO-4217 codes (e.g. "EUR,GBP,JPY,CHF,CAD"); omit for all ECB currencies |
| amount | number | optional | 1 | Base currency amount to convert (default 1) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0015 / call | $0/mo · Balance never expires |
| Remote MCP Tool | macro_fx_date_snapshot | OAuth 2.1 Hub & /mcp/finance |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 716 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 188t → 67t (-73%) | Partner credit: eligible |
| Data Attribution | Source: Frankfurter Foreign Exchange API — European Central Bank (ECB) Reference Rates (api.frankfurter.app — Public Domain) | |
More macro.fx Sibling Endpoints
Fetch official European Central Bank (ECB) daily reference FX exchange rates for global currencies.
Query European Central Bank (ECB) historical single-date or multi-day time-series foreign exchange rates and currency conversions across 32 global currencies via Frankfurter.
Retrieve the complete European Central Bank (ECB) ISO-4217 currency code directory and full currency names via Frankfurter.
Frequently Asked Questions
How do I call Frankfurter ECB Historical Date FX Snapshot (macro.fx.date_snapshot) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/macro/fx/date_snapshot with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool macro_fx_date_snapshot on https://mcp.agentapigate.ai/mcp.
What does macro.fx.date_snapshot cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.0015 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on macro.fx.date_snapshot?
Passing ?format=md transforms the response into normalized Markdown (~67 tokens vs ~188 raw tokens, saving 73% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only finance endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["finance"], optional allowed_endpoints: ["macro.fx.date_snapshot"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.