← Rahandus ja valuuta

Valuutapaari üksikasjad

GET /pair/:base/:target

Saage a detailed profile for a specific currency pair, sealhulgas the latest rate, recent historical rates, and percentage change over time. Designed for building dedicated currency pair pages (nt EUR/USD detail view) with trend information. More focused than the general rates lõpp-punkt, giving you pair-specific analytics in one call.

Parameetrid

base kohustuslik

Base currency in URL

target kohustuslik

Target currency in URL

Näidispäringud

Põhikasutus
curl https://nordapi.ee/api/v1/pair/EUR/USD
EUR/USD pair detail
curl https://nordapi.ee/api/v1/pair/EUR/USD
GBP/NOK pair detail
curl https://nordapi.ee/api/v1/pair/GBP/NOK
USD/JPY pair detail
curl https://nordapi.ee/api/v1/pair/USD/JPY

Reaalajas vastus

{
  "base": "EUR",
  "change": 0.0,
  "change_pct": 0.0,
  "history": [
    {
      "date": "2026-04-05",
      "rate": 1.1525
    },
    {
      "date": "2026-04-04",
      "rate": 1.1525
    },
    {
      "date": "2026-04-03",
      "rate": 1.1525
    },
    {
      "date": "2026-04-02",
      "rate": 1.1525
    },
    {
      "date": "2026-04-01",
      "rate": 1.1605
    },
    {
      "date": "2026-03-31",
      "rate": 1.1498
    },
    {
      "date": "2026-03-30",
      "rate": 1.1484
    },
    {
      "date": "2026-03-29",
      "rate": 1.1517
    },
    {
      "date": "2026-03-28",
      "rate": 1.1517
    },
    {
      "date": "2026-03-27",
      "rate": 1.1539
    },
    {
      "date": "2026-03-26",
      "rate": 1.1592
    },
    {
      "date": "2026-03-25",
      "rate": 1.1572
    },
    {
      "date": "2026-03-24",
      "rate": 1.1596
    },
    {
      "date": "2026-03-23",
      "rate": 1.1555
    },
    {
      "date": "2026-03-22",
      "rate": 1.1555
    },
    {
      "date": "2026-03-21",
      "rate": 1.1555
    },
    {
      "date": "2026-03-20",
      "rate": 1.1555
    },
    {
      "date": "2026-03-19",
      "rate": 1.1489
    }
  ],
  "latest": {
    "date": "2026-04-05",
    "rate": 1.1525
  },
  "previous": {
    "date": "2026-04-04",
    "rate": 1.1525
  },
  "success": true,
  "target": "USD"
}

Näidisvastus

{"success":true,"base":"EUR","target":"USD","latest":{"rate":1.1555,"date":"2026-03-24"},"change_pct":0.57}