← Fjármál og gjaldmiðlar

Sveiflur / breyting

GET /fluctuation

Reiknaðu how gengi changed between two specific dates, returning the start rate, end rate, absolute change, and prósentubreytingu for hverja gjaldmiðlapar. Gagnlegt fyrir financial reports showing currency movement, alerting kerfi that track FX volatility, and mælaborð that display how currencies performed yfir given period.

Breytur

start_date nauðsynlegt

Start date

end_date nauðsynlegt

End date

base valfrjálst

Base currency

symbols valfrjálst

Target currencies

Dæmi um fyrirspurnir

Grunnnotkun
curl "https://nordapi.ee/api/v1/fluctuation?start_date=2026-03-19&end_date=2026-03-20&base=EUR&symbols=USD,GBP"
EUR vs USD and GBP over one day
curl "https://nordapi.ee/api/v1/fluctuation?start_date=2026-03-19&end_date=2026-03-20&base=EUR&symbols=USD,GBP"
USD vs Nordic currencies over a month
curl "https://nordapi.ee/api/v1/fluctuation?start_date=2026-02-01&end_date=2026-03-01&base=USD&symbols=NOK,SEK,DKK"
All currency changes over a week
curl "https://nordapi.ee/api/v1/fluctuation?start_date=2026-03-17&end_date=2026-03-24&base=EUR"

Lifandi svar

{
  "base": "EUR",
  "end_date": "2026-03-20",
  "fluctuation": {
    "GBP": {
      "change": 0.0005,
      "change_pct": 0.057878409038292354,
      "end_rate": 0.86438,
      "start_rate": 0.86388
    },
    "USD": {
      "change": 0.0066,
      "change_pct": 0.5744625293759248,
      "end_rate": 1.1555,
      "start_rate": 1.1489
    }
  },
  "start_date": "2026-03-19",
  "success": true
}

Dæmi um svar

{"success":true,"fluctuation":{"USD":{"start_rate":1.1489,"end_rate":1.1555,"change":0.0066,"change_pct":0.57}}}