← Intelligenssammenstillinger

Aktivaytelse

GET /mashup/performance/compare

Sammenlign ytelsen til ulike aktivaklasser side ved side: kryptovalutaer (Bitcoin, Ethereum, osv.), fiatvalutaer (i forhold til USD) og gull. Returnerer gjeldende verdier, nylige prisendringer og sammenlignende ytelsesmålinger. Nyttig for investeringsdashbord som dekker aktivaklasser, verktøy for porteføljediversifiseringsanalyse og finansielle utdanningsplattformer som demonstrerer hvordan ulike verdilager presterer i forhold til hverandre.

Parametere

crypto valgfri

Crypto coins

fiat valgfri

Fiat currencies

Eksempelforespørsler

Grunnleggende bruk
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"

Livesvar

{
  "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.5283,
      "change_7d_pct": 2.0292,
      "market_cap_usd": 1349982371824.0,
      "name": "Bitcoin",
      "price_usd": 67630.0,
      "symbol": "BTC",
      "type": "crypto"
    },
    {
      "change_24h_pct": 0.3919,
      "change_7d_pct": 3.8933,
      "market_cap_usd": 249271525270.0,
      "name": "Ethereum",
      "price_usd": 2071.46,
      "symbol": "ETH",
      "type": "crypto"
    }
  ],
  "fiat": [
    {
      "code": "EUR",
      "performance": {
        "1_month_ago": null,
        "1_week_ago": {
          "change": -6.0271e-4,
          "change_pct": -0.06941411074588273,
          "date": "2026-03-29",
          "rate": 0.86828167
        },
        "1_year_ago": null,
        "3_months_ago": null,
        "today": {
          "change": 0.0,
          "change_pct": 0.0,
          "date": "2026-04-05",
          "rate": 0.86767896
        },
        "yesterday": {
          "change": 0.0,
          "change_pct": 0.0,
          "date": "2026-04-04",
          "rate": 0.86767896
        }
      },
      "type": "fiat",
      "volatility_30d": 0.35936938373961186
    },
    {
      "code": "NOK",
      "performance": {
        "1_month_ago": null,
        "1_week_ago": {
          "change": 0.02796372,
          "change_pct": 0.28784748919008574,
          "date": "2026-03-29",
          "rate": 9.71476947
        },
        "1_year_ago": null,
        "3_months_ago": null,
        "today": {
          "change": 0.0,
          "change_pct": 0.0,
          "date": "2026-04-05",
          "rate": 9.74273319
        },
        "yesterday": {
          "change": 0.0,
          "change_pct": 0.0,
          "date": "2026-04-04",
          "rate": 9.74273319
        }
      },
      "type": "fiat",
      "volatility_30d": 0.6511012204206716
    }
  ],
  "inflation": {
    "annual_rate": 2.9495,
    "year": 2024
  },
  "success": true
}