AgentAPIGate
Back to Catalog
GET /v1/macro/fx/historical_timeseriesPack: finance·MCP Tool: macro_fx_historical_timeseries

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.

API Key Price:$0.0010 / call
x402 Base USDC:$0.0020 / call
Partner Credit:eligible
1. Parameters & Controls
Base ISO 4217 3-letter currency code (e.g. USD, EUR, GBP)
Optional comma-separated target ISO 4217 currency codes (e.g. "EUR,GBP,JPY,CHF")
Optional single historical date YYYY-MM-DD (use either date OR start_date..end_date)
Start date YYYY-MM-DD for time-series range (defaults to 14 days ago if date omitted)
End date YYYY-MM-DD for time-series range (defaults to latest business day)
Amount in base currency to convert (default 1)
Get $0.25 Free Key →
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"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-59% tokens
# 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
ParameterTypeReqSample / DefaultDescription
basestringoptionalUSDBase ISO 4217 3-letter currency code (e.g. USD, EUR, GBP)
symbolsstringoptionalEUR,GBP,JPY,CHF,CAD,AUDOptional comma-separated target ISO 4217 currency codes (e.g. "EUR,GBP,JPY,CHF")
datestringoptional—Optional single historical date YYYY-MM-DD (use either date OR start_date..end_date)
start_datestringoptional2026-11-15Start date YYYY-MM-DD for time-series range (defaults to 14 days ago if date omitted)
end_datestringoptional2026-11-28End date YYYY-MM-DD for time-series range (defaults to latest business day)
amountnumberoptional1Amount in base currency to convert (default 1)
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0010 / call$0/mo · Balance never expires
Remote MCP Toolmacro_fx_historical_timeseriesOAuth 2.1 Hub & /mcp/finance
x402 Base USDC$0.0020 / callZero-signup USDC enabled
P50 Latency615 ms$0 billed on empty or 4xx/5xx
Token Economy766t → 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.