GET /sma
Calculate the Simple Moving Average (SMA) för valfri valutapar over a configurable nummer of dagar (default 30). The SMA smooths out daglig kurs fluctuations to reveal the underlying trend. Widely used in technical analys for forex handels signals - när the aktuell kurs crosses above or below the SMA, it can indicate trend reversals. Även useful for setting fair växelkurss in business contracts.
base
obligatorisk
Base currency
target
obligatorisk
Target currency
period
valfri
standard: 30
Number of days
| Namn | Obligatorisk | Standard | Beskrivning |
|---|---|---|---|
base |
Ja | - | Base currency |
target |
Ja | - | Target currency |
period |
Nej | 30 | Number of days |
curl "https://nordapi.ee/api/v1/sma?base=EUR&target=USD&period=14"
curl "https://nordapi.ee/api/v1/sma?base=EUR&target=USD&period=14"
curl "https://nordapi.ee/api/v1/sma?base=USD&target=NOK"
curl "https://nordapi.ee/api/v1/sma?base=GBP&target=SEK&period=7"
{
"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"
}
{"success":true,"sma":1.1522,"period":14}