ECB Historical & Time-Series FX Rates
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.
curl -sG "https://api.agentapigate.ai/v1/macro/fx/historical_timeseries" \ --data-urlencode "base=USD" \ --data-urlencode "symbols=EUR,GBP,JPY,CHF,CAD,AUD" \ --data-urlencode "start_date=2026-11-15" \ --data-urlencode "end_date=2026-11-28" \ --data-urlencode "amount=1" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# ECB Historical & Time-Series FX Rates (`macro.fx.historical_timeseries`) **found**: true · **amount**: 1 · **base**: USD · **start_date**: 2026-11-13 · **end_date**: 2026-11-27 · **days_count**: 11 ## rates_by_date - **2026-11-13**: AUD: 1.4738, CAD: 1.4258, CHF: 0.8384, EUR: 0.90481, GBP: 0.75605 - **2026-11-16**: AUD: 1.48, CAD: 1.4285, CHF: 0.8393, EUR: 0.90794, GBP: 0.75767 - **2026-11-17**: AUD: 1.4848, CAD: 1.4291, CHF: 0.8402, EUR: 0.91, GBP: 0.75808 - **2026-11-18**: AUD: 1.4856, CAD: 1.4305, CHF: 0.84272, EUR: 0.91174, GBP: 0.75939 - **2026-11-19**: AUD: 1.49, CAD: 1.43, CHF: 0.84261, EUR: 0.90975, GBP: 0.76038 - **2026-11-20**: AUD: 1.5002, CAD: 1.4307, CHF: 0.83922, EUR: 0.90992, GBP: 0.76192 - **2026-11-23**: AUD: 1.5113, CAD: 1.4362, CHF: 0.83975, EUR: 0.91416, GBP: 0.76491 - **2026-11-24**: AUD: 1.5057, CAD: 1.4327, CHF: 0.83764, EUR: 0.91216, GBP: 0.76348 - **2026-11-25**: AUD: 1.5221, CAD: 1.4258, CHF: 0.83082, EUR: 0.91449, GBP: 0.76571 - **2026-11-26**: AUD: 1.5071, CAD: 1.423, CHF: 0.83399, EUR: 0.91116, GBP: 0.76314 - **2026-11-27**: AUD: 1.4996, CAD: 1.4245, CHF: 0.83572, EUR: 0.91266, GBP: 0.76211
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:macro.fx.historical_timeseries · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| base | string | optional | USD | Base ISO 4217 3-letter currency code (e.g. USD, EUR, GBP) |
| symbols | string | optional | EUR,GBP,JPY,CHF,CAD,AUD | Optional comma-separated target ISO 4217 currency codes (e.g. "EUR,GBP,JPY,CHF") |
| date | string | optional | — | Optional single historical date YYYY-MM-DD (use either date OR start_date..end_date) |
| start_date | string | optional | 2026-11-15 | Start date YYYY-MM-DD for time-series range (defaults to 14 days ago if date omitted) |
| end_date | string | optional | 2026-11-28 | End date YYYY-MM-DD for time-series range (defaults to latest business day) |
| amount | number | optional | 1 | Amount in base currency 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.0010 / call | $0/mo · Balance never expires |
| Remote MCP Tool | macro_fx_historical_timeseries | OAuth 2.1 Hub & /mcp/finance |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 615 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 766t → 311t (-59%) | Partner credit: eligible |
More macro.fx Sibling Endpoints
Frequently Asked Questions
How do I call ECB Historical & Time-Series FX Rates (macro.fx.historical_timeseries) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/macro/fx/historical_timeseries with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool macro_fx_historical_timeseries on https://mcp.agentapigate.ai/mcp.
What does macro.fx.historical_timeseries cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.001 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.historical_timeseries?
Passing ?format=md transforms the response into normalized Markdown (~311 tokens vs ~766 raw tokens, saving 59% 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.historical_timeseries"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.