GET /historical/:date
Retrieve växelkurss för valfri specifik past datum. Provide a datum in YYYY-MM-DD format i URL path, and optionally filter by basvaluta and target symbols. Användbart för att generera historisk invoices, auditing past transactions, back-testing handels strategier, and att bygga växelkursdiagram. Data hämtad från ECB dagliga referenskurser.
date
obligatorisk
Date in URL (YYYY-MM-DD)
base
valfri
standard: EUR
Base currency
symbols
valfri
Target currencies
| Namn | Obligatorisk | Standard | Beskrivning |
|---|---|---|---|
date |
Ja | - | Date in URL (YYYY-MM-DD) |
base |
Nej | EUR | Base currency |
symbols |
Nej | - | Target currencies |
curl "https://nordapi.ee/api/v1/historical/2026-03-15?base=USD"
curl "https://nordapi.ee/api/v1/historical/2026-03-15?base=USD"
curl "https://nordapi.ee/api/v1/historical/2026-01-01?base=EUR&symbols=NOK,SEK,DKK"
curl "https://nordapi.ee/api/v1/historical/2025-01-02?base=GBP&symbols=USD,EUR"
HTTP 404: {
"error": "No rates available for this date",
"message": "Exchange rates are not available for the requested date.",
"success": false
}
{"success":true,"base":"USD","date":"2026-03-15","rates":{"EUR":0.921,"GBP":0.793}}