← Intelligens-mashups

Aktivperformance

GET /mashup/performance/compare

Sammenlign forskellige aktivklassers performance side om side: kryptovalutaer (Bitcoin, Ethereum osv.), fiatvalutaer (i forhold til USD) og guld. Returnerer aktuelle værdier, nylige prisændringer og sammenlignende performance-metrikker. Nyttigt til investeringsdashboards, der spænder over aktivklasser, porteføljediversificeringsanalyseværktøjer og finansielle uddannelsesplatforme, der demonstrerer, hvordan forskellige værdilagre præsterer i forhold til hinanden.

Parametre

crypto valgfri

Crypto coins

fiat valgfri

Fiat currencies

Eksempelforespørgsler

Grundlæggende brug
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": 3539.0,
      "type": "commodity",
      "unit": "troy_oz"
    },
    {
      "name": "Silver",
      "price_usd": 63.26,
      "type": "commodity",
      "unit": "troy_oz"
    }
  ],
  "crypto": [
    {
      "change_24h_pct": 5.9435,
      "change_7d_pct": -9.4417,
      "market_cap_usd": 1187502766099.0,
      "name": "Bitcoin",
      "price_usd": 59034.0,
      "symbol": "BTC",
      "type": "crypto"
    },
    {
      "change_24h_pct": 6.4487,
      "change_7d_pct": -8.7955,
      "market_cap_usd": 202877729510.0,
      "name": "Ethereum",
      "price_usd": 1659.64,
      "symbol": "ETH",
      "type": "crypto"
    }
  ],
  "fiat": [
    {
      "code": "EUR",
      "performance": {
        "1_month_ago": {
          "change": 0.01650258,
          "change_pct": 1.847133774359172,
          "date": "2026-10-23",
          "rate": 0.89341553
        },
        "1_week_ago": {
          "change": 0.0051045,
          "change_pct": 0.5641493390003274,
          "date": "2026-11-15",
          "rate": 0.90481361
        },
        "1_year_ago": null,
        "3_months_ago": {
          "change": 0.05257929,
          "change_pct": 6.132848387758763,
          "date": "2026-08-24",
          "rate": 0.85733882
        },
        "today": {
          "change": 0.0,
          "change_pct": 0.0,
          "date": "2026-11-21",
          "rate": 0.90991811
        },
        "yesterday": {
          "change": 0.0,
          "change_pct": 0.0,
          "date": "2026-11-21",
          "rate": 0.90991811
        }
      },
      "type": "fiat",
      "volatility_30d": 0.39508937359251595
    },
    {
      "code": "NOK",
      "performance": {
        "1_month_ago": {
          "change": 0.40156865,
          "change_pct": 4.294423063180722,
          "date": "2026-10-23",
          "rate": 9.35093362
        },
        "1_week_ago": {
          "change": 0.18907484,
          "change_pct": 1.9770614811890719,
          "date": "2026-11-15",
          "rate": 9.56342743
        },
        "1_year_ago": null,
        "3_months_ago": {
          "change": 0.43794466,
          "change_pct": 4.701722597429939,
          "date": "2026-08-24",
          "rate": 9.31455761
        },
        "today": {
          "change": 0.0,
          "change_pct": 0.0,
          "date": "2026-11-21",
          "rate": 9.75250227
        },
        "yesterday": {
          "change": 0.0,
          "change_pct": 0.0,
          "date": "2026-11-21",
          "rate": 9.75250227
        }
      },
      "type": "fiat",
      "volatility_30d": 0.6123329219487529
    }
  ],
  "inflation": {
    "annual_rate": 2.9495,
    "year": 2024
  },
  "success": true
}