← 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": 4141.7998,
      "type": "commodity",
      "unit": "troy_oz"
    },
    {
      "name": "Silver",
      "price_usd": 63.26,
      "type": "commodity",
      "unit": "troy_oz"
    }
  ],
  "crypto": [
    {
      "change_24h_pct": 0.2853,
      "change_7d_pct": 0.8293,
      "market_cap_usd": 1703567973097.0,
      "name": "Bitcoin",
      "price_usd": 84784.0,
      "symbol": "BTC",
      "type": "crypto"
    },
    {
      "change_24h_pct": 0.718,
      "change_7d_pct": 0.342,
      "market_cap_usd": 328052351122.0,
      "name": "Ethereum",
      "price_usd": 2686.51,
      "symbol": "ETH",
      "type": "crypto"
    }
  ],
  "fiat": [
    {
      "code": "EUR",
      "performance": {
        "1_month_ago": {
          "change": 0.02991294,
          "change_pct": 3.474387984161693,
          "date": "2026-09-03",
          "rate": 0.86095566
        },
        "1_week_ago": {
          "change": 0.0139064,
          "change_pct": 1.5857467972963943,
          "date": "2026-09-26",
          "rate": 0.8769622
        },
        "1_year_ago": null,
        "3_months_ago": {
          "change": 0.01735358,
          "change_pct": 1.9866378485397995,
          "date": "2026-07-05",
          "rate": 0.87351502
        },
        "today": {
          "change": 0.0,
          "change_pct": 0.0,
          "date": "2026-10-03",
          "rate": 0.8908686
        },
        "yesterday": {
          "change": 0.0,
          "change_pct": 0.0,
          "date": "2026-10-02",
          "rate": 0.8908686
        }
      },
      "type": "fiat",
      "volatility_30d": 0.39508937359251595
    },
    {
      "code": "NOK",
      "performance": {
        "1_month_ago": {
          "change": 0.34569805,
          "change_pct": 3.715687006199125,
          "date": "2026-09-03",
          "rate": 9.30374516
        },
        "1_week_ago": {
          "change": 0.14317293,
          "change_pct": 1.5060894102834197,
          "date": "2026-09-26",
          "rate": 9.50627028
        },
        "1_year_ago": null,
        "3_months_ago": {
          "change": -0.1941976,
          "change_pct": -1.9728228990509051,
          "date": "2026-07-05",
          "rate": 9.84364081
        },
        "today": {
          "change": 0.0,
          "change_pct": 0.0,
          "date": "2026-10-03",
          "rate": 9.64944321
        },
        "yesterday": {
          "change": 0.0,
          "change_pct": 0.0,
          "date": "2026-10-02",
          "rate": 9.64944321
        }
      },
      "type": "fiat",
      "volatility_30d": 0.6123329219487529
    }
  ],
  "inflation": {
    "annual_rate": 2.9495,
    "year": 2024
  },
  "success": true
}