GET /sma
Reiknaðu the Simple Moving Average (SMA) for hvaða ... sem er gjaldmiðlapar yfir stillanleg number of days (default 30). The SMA smooths out daily rate fluctuations to reveal the underlying trend. Widely used in technical analysis for forex trading signals - when the current rate crosses above or below the SMA, it can indicate trend reversals. Also gagnlegt fyrir setting fair gengi in business contracts.
base
nauðsynlegt
Base currency
target
nauðsynlegt
Target currency
period
valfrjálst
sjálfgefið: 30
Number of days
| Nafn | Nauðsynlegt | Sjálfgefið | Lýsing |
|---|---|---|---|
base |
Já | - | Base currency |
target |
Já | - | Target currency |
period |
Nei | 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}