← Greindasamsetningar

Afkoma eigna

GET /mashup/performance/compare

Berðu saman frammistöðu mismunandi eignaflokka hlið við hlið: dulritunargjaldmiðla (Bitcoin, Ethereum o.s.frv.), hefðbundinna gjaldmiðla (miðað við USD) og gulls. Skilar núverandi gildum, nýlegum verðbreytingum og samanburðarmælikvörðum á frammistöðu. Gagnlegt fyrir fjárfestingamælaborð sem ná yfir marga eignaflokka, greiningarverkfæri eignasafnsdreifingar og fjármálafræðslupalla sem sýna hvernig mismunandi verðmætageymslur standa sig hver miðað við aðra.

Breytur

crypto valfrjálst

Crypto coins

fiat valfrjálst

Fiat currencies

Dæmi um fyrirspurnir

Grunnnotkun
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"

Lifandi svar

{
  "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.0118,
      "change_7d_pct": -4.8461,
      "market_cap_usd": 1555296868517.0,
      "name": "Bitcoin",
      "price_usd": 77637.0,
      "symbol": "BTC",
      "type": "crypto"
    },
    {
      "change_24h_pct": 0.0971,
      "change_7d_pct": -7.3613,
      "market_cap_usd": 258302499309.0,
      "name": "Ethereum",
      "price_usd": 2139.82,
      "symbol": "ETH",
      "type": "crypto"
    }
  ],
  "fiat": [
    {
      "code": "EUR",
      "performance": {
        "1_month_ago": {
          "change": 0.01230901,
          "change_pct": 1.448401210645445,
          "date": "2026-04-21",
          "rate": 0.84983428
        },
        "1_week_ago": {
          "change": 0.00758851,
          "change_pct": 0.8880074370422456,
          "date": "2026-05-14",
          "rate": 0.85455478
        },
        "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": 7.432e-5,
          "change_pct": 0.008621119955170176,
          "date": "2026-05-20",
          "rate": 0.86206897
        }
      },
      "type": "fiat",
      "volatility_30d": 0.39508937359251595
    },
    {
      "code": "NOK",
      "performance": {
        "1_month_ago": {
          "change": -0.08873331,
          "change_pct": -0.9520605992839435,
          "date": "2026-04-21",
          "rate": 9.32013257
        },
        "1_week_ago": {
          "change": 0.00391678,
          "change_pct": 0.04244689717362649,
          "date": "2026-05-14",
          "rate": 9.22748248
        },
        "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.04791108,
          "change_pct": -0.5163215610267001,
          "date": "2026-05-20",
          "rate": 9.27931034
        }
      },
      "type": "fiat",
      "volatility_30d": 0.6123329219487529
    }
  ],
  "inflation": {
    "annual_rate": 2.9495,
    "year": 2024
  },
  "success": true
}