← 金融与货币

交叉汇率矩阵

GET /matrix

为任何所选货币生成完整的 NxN 交叉汇率表。在单次响应中显示每种货币对其他所有货币的汇率,类似于机场的汇率牌。适用于外汇比较表、显示多种货币对的旅行应用和需要一次性显示所有可能组合的金融仪表板。

查看可视化效果

参数

currencies 必填

Comma-separated codes (e.g. USD,EUR,GBP,NOK)

请求示例

基本用法
curl "https://nordapi.ee/api/v1/matrix?currencies=USD,EUR,GBP,NOK"
Major world currencies cross-rates
curl "https://nordapi.ee/api/v1/matrix?currencies=USD,EUR,GBP,JPY"
Nordic currencies cross-rates
curl "https://nordapi.ee/api/v1/matrix?currencies=NOK,SEK,DKK,EUR"
Travel currencies for Asia trip
curl "https://nordapi.ee/api/v1/matrix?currencies=USD,JPY,CNY,THB,INR"

实时响应

HTTP 404: {
  "error": "No exchange rates available",
  "message": "No rates found for the specified base currency. Please try again later or use a different base currency.",
  "success": false
}

响应示例

{"success":true,"matrix":{"USD":{"EUR":0.865,"GBP":0.748,"NOK":9.54},"EUR":{"USD":1.155}}}