← 智能数据整合

资产表现

GET /mashup/performance/compare

并排比较不同资产类别的表现:加密货币(Bitcoin、Ethereum 等)、法定货币(相对于 USD)和黄金。返回当前价值、近期价格变动和比较性能指标。适用于跨资产类别的投资仪表板、投资组合多元化分析工具和展示不同价值储存方式相对表现的金融教育平台。

参数

crypto 可选

Crypto coins

fiat 可选

Fiat currencies

请求示例

基本用法
curl "https://nordapi.ee/api/v1/mashup/performance/compare?crypto=bitcoin,ethereum&fiat=EUR,NOK"
Compare Bitcoin, Ethereum against EUR and NOK
curl "https://nordapi.ee/api/v1/mashup/performance/compare?crypto=bitcoin,ethereum&fiat=EUR,NOK"
Compare just Bitcoin against major fiat currencies
curl "https://nordapi.ee/api/v1/mashup/performance/compare?crypto=bitcoin&fiat=USD,EUR,GBP"
Compare top cryptos against Nordic currencies
curl "https://nordapi.ee/api/v1/mashup/performance/compare?crypto=bitcoin,ethereum,solana&fiat=NOK,SEK"

实时响应

{
  "base_currency": "USD",
  "commodities": [
    {
      "name": "Gold",
      "price_usd": 3045.0,
      "type": "commodity",
      "unit": "troy_oz"
    },
    {
      "name": "Silver",
      "price_usd": 33.5,
      "type": "commodity",
      "unit": "troy_oz"
    }
  ],
  "crypto": [
    {
      "change_24h_pct": -0.7235,
      "change_7d_pct": -3.9419,
      "market_cap_usd": 1550377881120.0,
      "name": "Bitcoin",
      "price_usd": 77382.0,
      "symbol": "BTC",
      "type": "crypto"
    },
    {
      "change_24h_pct": -0.4435,
      "change_7d_pct": -6.0042,
      "market_cap_usd": 256935558647.0,
      "name": "Ethereum",
      "price_usd": 2128.77,
      "symbol": "ETH",
      "type": "crypto"
    }
  ],
  "fiat": [
    {
      "code": "EUR",
      "performance": {
        "1_month_ago": {
          "change": 0.00984635,
          "change_pct": 1.1552722458442712,
          "date": "2026-04-22",
          "rate": 0.85229694
        },
        "1_week_ago": {
          "change": 0.00215017,
          "change_pct": 0.25002176761600137,
          "date": "2026-05-15",
          "rate": 0.85999312
        },
        "1_year_ago": null,
        "3_months_ago": null,
        "today": {
          "change": 0.0,
          "change_pct": 0.0,
          "date": "2026-05-21",
          "rate": 0.86214329
        },
        "yesterday": {
          "change": 0.0,
          "change_pct": 0.0,
          "date": "2026-05-21",
          "rate": 0.86214329
        }
      },
      "type": "fiat",
      "volatility_30d": 0.39508937359251595
    },
    {
      "code": "NOK",
      "performance": {
        "1_month_ago": {
          "change": -0.06886495,
          "change_pct": -0.7404622970383333,
          "date": "2026-04-22",
          "rate": 9.30026421
        },
        "1_week_ago": {
          "change": -0.09522613,
          "change_pct": -1.0210137752729018,
          "date": "2026-05-15",
          "rate": 9.32662539
        },
        "1_year_ago": null,
        "3_months_ago": null,
        "today": {
          "change": 0.0,
          "change_pct": 0.0,
          "date": "2026-05-21",
          "rate": 9.23139926
        },
        "yesterday": {
          "change": 0.0,
          "change_pct": 0.0,
          "date": "2026-05-21",
          "rate": 9.23139926
        }
      },
      "type": "fiat",
      "volatility_30d": 0.6123329219487529
    }
  ],
  "inflation": {
    "annual_rate": 2.9495,
    "year": 2024
  },
  "success": true
}