GET /convert
使用最新汇率将特定货币金额从一种货币转换为另一种货币。支持可选的利润率参数用于添加商业加价(例如在市场汇率上加 2% 手续费),以及可选的日期参数用于历史转换。返回转换金额、使用的汇率和查询详情。适用于电商结账流程、发票系统和旅行预算工具。
from
必填
Source currency
to
必填
Target currency
amount
必填
Amount to convert
margin
可选
Business markup percentage
date
可选
Historical date (YYYY-MM-DD)
| 名称 | 必填 | 默认值 | 描述 |
|---|---|---|---|
from |
是 | - | Source currency |
to |
是 | - | Target currency |
amount |
是 | - | Amount to convert |
margin |
否 | - | Business markup percentage |
date |
否 | - | Historical date (YYYY-MM-DD) |
curl "https://nordapi.ee/api/v1/convert?from=USD&to=EUR&amount=100"
curl "https://nordapi.ee/api/v1/convert?from=USD&to=EUR&amount=100"
curl "https://nordapi.ee/api/v1/convert?from=USD&to=EUR&amount=100&margin=2.5"
curl "https://nordapi.ee/api/v1/convert?from=GBP&to=NOK&amount=500&date=2026-01-15"
curl "https://nordapi.ee/api/v1/convert?from=JPY&to=NOK&amount=1000000"
{
"query": {
"amount": 100.0,
"from": "USD",
"to": "EUR"
},
"rate": 0.86767896,
"result": 86.767896,
"success": true
}
{"success":true,"query":{"from":"USD","to":"EUR","amount":100.0},"result":86.54,"rate":0.8654}