← Finanzen & Währung

Gleitender Durchschnitt (SMA)

GET /sma

Berechnen Sie den Simple Moving Average (SMA) for any currency pair over a configurable number of days (default 30). The SMA smooths out daily rate fluctuations to reveal the underlying trend. Weit verbreitet in technical analysis for forex trading signals - when the current rate crosses above oder below the SMA, it can indicate trend reversals. Auch nützlich for setting fair Wechselkurse in business contracts.

Parameter

base erforderlich

Base currency

target erforderlich

Target currency

period optional Standard: 30

Number of days

Beispielanfragen

Grundlegende Verwendung
curl "https://nordapi.ee/api/v1/sma?base=EUR&target=USD&period=14"
14-day SMA for EUR/USD
curl "https://nordapi.ee/api/v1/sma?base=EUR&target=USD&period=14"
30-day SMA for USD/NOK (default period)
curl "https://nordapi.ee/api/v1/sma?base=USD&target=NOK"
7-day SMA for GBP/SEK
curl "https://nordapi.ee/api/v1/sma?base=GBP&target=SEK&period=7"

Live-Antwort

{
  "base": "EUR",
  "period": 14,
  "rates": [
    {
      "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
    }
  ],
  "sma": 1.1541071428571428,
  "success": true,
  "target": "USD"
}

Beispielantwort

{"success":true,"sma":1.1522,"period":14}