API & MCP

Everything a person can do on Historical FX Chart, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Historical FX Chart

Pick a base currency, one or more quote currencies and a date range (back to 1999). The tool loads the ECB’s daily euro reference rates, builds the cross rates, draws a line chart (indexed to 100 to compare several pairs) and reports start, end, minimum, maximum, average, change and annualised volatility, with a CSV download.

Inputs of Historical FX Chart
FieldTypeDefaultDescription
base (required)text"EUR"Base currency. The rate shows how many units of the quote currency one unit of the base buys.
quotes (required)text"USD, GBP"Quote currencies. Up to 6 ISO codes, comma-separated.
startdate—From. Default: one year before the end date. Earliest 1999-01-04.
enddate—To. Default: today.
normaliseselect (auto, yes, no)"auto"Index to 100 at the start
pngbooleantrueAlso create a PNG image

Example request

EUR/USD and EUR/GBP over 2024 (indexed)

curl -X POST https://historicalfxchart.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"base":"EUR","quotes":"USD, GBP","start":"2024-01-01","end":"2024-12-31"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "historical-fx-chart": { "type": "http", "url": "https://historicalfxchart.usefulweb.site/mcp" }
  }
}