← Fjármál og gjaldmiðlar

Söguleg gengi

GET /historical/:date

Sæktu gengi for hvaða ... sem er specific past date. Gefðu upp a date in YYYY-MM-DD format í slóðinni path, and valfrjálst síaðu eftir grunngjaldmiðil and tarfáðu symbols. Gagnlegt fyrir generating historical invoices, auditing past transactions, back-testing trading strategies, and building gengi charts. Gögn fengin frá ECB daily reference rates.

Breytur

date nauðsynlegt

Date in URL (YYYY-MM-DD)

base valfrjálst sjálfgefið: EUR

Base currency

symbols valfrjálst

Target currencies

Dæmi um fyrirspurnir

Grunnnotkun
curl "https://nordapi.ee/api/v1/historical/2026-03-15?base=USD"
Rates on a specific date with USD base
curl "https://nordapi.ee/api/v1/historical/2026-03-15?base=USD"
EUR rates for specific currencies on a date
curl "https://nordapi.ee/api/v1/historical/2026-01-01?base=EUR&symbols=NOK,SEK,DKK"
Historical rates on New Year's Day 2025
curl "https://nordapi.ee/api/v1/historical/2025-01-02?base=GBP&symbols=USD,EUR"

Lifandi svar

HTTP 404: {
  "error": "No rates available for this date",
  "message": "Exchange rates are not available for the requested date.",
  "success": false
}

Dæmi um svar

{"success":true,"base":"USD","date":"2026-03-15","rates":{"EUR":0.921,"GBP":0.793}}