Exchange Rate API for Dashboards

A dashboard's job is answering 'what's happening right now, and is that unusual?' — which is exactly a live rate plus its history. This API serves 20-second rates for the number and ten years of daily data for the context around it, from the same base URL.

Live KPI tiles

One filtered latest call per refresh covers every FX tile on the board. The snapshot timestamp in meta lets you show honest 'as of' labels.

Sparklines and context

Pair-history returns chart-ready arrays — 30 days for a sparkline or 10 years for a full context chart, no reshaping required.

Change indicators

Daily change_pct comes precomputed with OHLC candles, so up/down arrows and daily-move colors need zero client math.

The endpoints you'll use

Sparkline data for a USD/EUR tile

GET /api/v1/pair-history?from=USD&to=EUR&start_date=2026-06-08&end_date=2026-07-08

{
  "data": { "points": [
    { "date": "2026-06-08", "rate": 0.8792 },
    …
    { "date": "2026-07-08", "rate": 0.8756 }
  ] }
}

FAQ

How often should a dashboard poll?

Match your plan's freshness: every 20–30 seconds on Unlimited, every 5 minutes on Developer. Polling faster than the snapshot cadence adds requests without adding information.

Is there a websocket?

Not currently — polling the latest endpoint at your plan's cadence delivers the same freshness with simpler infrastructure.