← Luureandmete kombinatsioonid

Vara tootlus

GET /mashup/performance/compare

Võrrelge erinevate varaklasside tootlust kõrvuti: krüptorahad (Bitcoin, Ethereum jne), fiat-valuutad (USD suhtes) ja kuld. Tagastab praegused väärtused, hiljutised hinnamuutused ja võrdlevad tootlusnäitajad. Kasulik investeerimisarmatuurlaudadele, mis hõlmavad varaklasse, portfelli hajutamise analüüsitööriistadele ja finantsharidusplatvormidele, mis näitavad, kuidas erinevad väärtuse hoidmise vahendid teineteise suhtes käituvad.

Parameetrid

crypto valikuline

Crypto coins

fiat valikuline

Fiat currencies

Näidispäringud

Põhikasutus
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"

Reaalajas vastus

{
  "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": -1.402,
      "change_7d_pct": -3.7335,
      "market_cap_usd": 1527187363655.0,
      "name": "Bitcoin",
      "price_usd": 76270.0,
      "symbol": "BTC",
      "type": "crypto"
    },
    {
      "change_24h_pct": -1.5434,
      "change_7d_pct": -5.7969,
      "market_cap_usd": 252512798915.0,
      "name": "Ethereum",
      "price_usd": 2093.46,
      "symbol": "ETH",
      "type": "crypto"
    }
  ],
  "fiat": [
    {
      "code": "EUR",
      "performance": {
        "1_month_ago": {
          "change": 0.01014377,
          "change_pct": 1.1901685344546702,
          "date": "2026-04-22",
          "rate": 0.85229694
        },
        "1_week_ago": {
          "change": 0.00244759,
          "change_pct": 0.2846057652182148,
          "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-22",
          "rate": 0.86244071
        },
        "yesterday": {
          "change": 2.9742e-4,
          "change_pct": 0.03449774572855517,
          "date": "2026-05-21",
          "rate": 0.86214329
        }
      },
      "type": "fiat",
      "volatility_30d": 0.39508937359251595
    },
    {
      "code": "NOK",
      "performance": {
        "1_month_ago": {
          "change": -0.04670664,
          "change_pct": -0.5022076679260277,
          "date": "2026-04-22",
          "rate": 9.30026421
        },
        "1_week_ago": {
          "change": -0.07306782,
          "change_pct": -0.783432559415791,
          "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-22",
          "rate": 9.25355757
        },
        "yesterday": {
          "change": 0.02215831,
          "change_pct": 0.24003197539091164,
          "date": "2026-05-21",
          "rate": 9.23139926
        }
      },
      "type": "fiat",
      "volatility_30d": 0.6123329219487529
    }
  ],
  "inflation": {
    "annual_rate": 2.9495,
    "year": 2024
  },
  "success": true
}