GET /convert/batch
Konvertieren Sie einen single amount from one base currency into multiple target currencies in a single API call. Liefert die converted amount und Wechselkurs for each target currency. Wesentlich effizienter than making individual conversion requests when you need to display prices in multiple currencies simultaneously, wie z. B. on international pricing pages oder multi-currency shopping carts.
from
erforderlich
Source currency
amount
erforderlich
Amount
to
erforderlich
Comma-separated target currencies
| Name | Erforderlich | Standard | Beschreibung |
|---|---|---|---|
from |
Ja | - | Source currency |
amount |
Ja | - | Amount |
to |
Ja | - | Comma-separated target currencies |
curl "https://nordapi.ee/api/v1/convert/batch?from=USD&amount=100&to=EUR,GBP,NOK"
curl "https://nordapi.ee/api/v1/convert/batch?from=USD&amount=100&to=EUR,GBP,NOK"
curl "https://nordapi.ee/api/v1/convert/batch?from=EUR&amount=250&to=JPY,CNY,INR"
curl "https://nordapi.ee/api/v1/convert/batch?from=USD&amount=5000&to=NOK,SEK,DKK"
{
"amount": 100.0,
"from": "USD",
"results": {
"EUR": {
"amount": 86.767896,
"rate": 0.86767896
},
"GBP": {
"amount": 75.707592,
"rate": 0.75707592
},
"NOK": {
"amount": 974.273319,
"rate": 9.74273319
}
},
"success": true
}
{"success":true,"from":"USD","amount":100.0,"results":{"EUR":{"rate":0.865,"amount":86.54},"GBP":{"rate":0.748,"amount":74.81},"NOK":{"rate":9.545,"amount":954.48}}}