x402AgentsToolsHub

FX Rate History

Historical exchange-rate series for any ECB currency pair over the last N days: start/end rates, high, low, average and percentage change, plus the daily table. The auditable answer to 'how did EUR/USD move this month' for reports and pricing decisions.

Worked examples

EUR/USD last 30 days

GET /api/v1/live/fx-history?base=EUR&quote=USD&days=30

Result: EUR/USD: 1.146 → 1.1225 (-2.05% over 30d)

USD/JPY last week

GET /api/v1/live/fx-history?base=USD&quote=JPY&days=7

Result: USD/JPY: 158.6 → 158.24 (-0.23% over 7d)

GBP/CHF quarter

GET /api/v1/live/fx-history?base=GBP&quote=CHF&days=90

Result: GBP/CHF: 1.0867 → 1.0998 (+1.21% over 90d)

Machine API (x402)

$0.02 / call

This tool is also a JSON API for AI agents. Requests without payment receive 402 Payment Required plus instructions; agents pay USDC on Base via the x402 protocol — no accounts, no API keys.

GET /api/v1/live/fx-history?base=EUR&quote=USD&days=30 HTTP/1.1
Host: agentstoolshub.com

→ 402 (payment required, instructions in headers)
→ 200 (after X-PAYMENT header; JSON body below)

{
  "tool": "live/fx-history",
  "input": {"base":"EUR","quote":"USD","days":30},
  "result": { "value": -2.05, "answer": "EUR/USD: 1.146 → 1.1225 (-2.05% over 30d)" }
}

Agent docs: /llms.txt · OpenAPI spec · integration guide

About this tool

A real time series for any ECB currency pair: start/end rate, high, low, mean and percentage change over a 2–90 day window, with the daily table. Working-days-only is inherent to ECB data — the series length tells you exactly how many fixes were published.

Frequently asked questions

Why does the table skip weekends?

ECB reference rates publish on TARGET working days only. Weekend values don't exist in the source data — carrying them forward would fabricate points.

Can I go back further than 90 days?

The API supports arbitrarily old ranges; this tool caps the window to keep responses fast. For longer series, call it in segments or use the openapi spec directly.

Related tools