GET /mashup/portfolio/analyze
Анализ портфеля из смешанных активов (криптовалюты, фиатные валюты и сырьевые товары) в одном запросе. Предоставьте список идентификаторов активов через запятую и получите текущие стоимости, метрики производительности, данные корреляции и анализ диверсификации. Поддерживает ID криптовалют (bitcoin, ethereum), коды фиатных валют (EUR, NOK) и золото. Идеально для панелей отслеживания портфеля, инструментов инвестиционного анализа и платформ управления капиталом, охватывающих несколько классов активов.
активы
обязательный
Comma-separated asset IDs (e.g., bitcoin,ethereum,EUR,gold)
base
необязательный
по умолчанию: USD
Base currency for valuation
| Название | Обязательный | По умолчанию | Описание |
|---|---|---|---|
активы |
Да | - | Comma-separated asset IDs (e.g., bitcoin,ethereum,EUR,gold) |
base |
Нет | USD | Base currency for valuation |
curl "https://nordapi.ee/api/v1/mashup/portfolio/analyze?assets=bitcoin,ethereum,EUR,gold"
curl "https://nordapi.ee/api/v1/mashup/portfolio/analyze?assets=bitcoin,ethereum,EUR,gold"
curl "https://nordapi.ee/api/v1/mashup/portfolio/analyze?assets=bitcoin,ethereum,solana&base=EUR"
curl "https://nordapi.ee/api/v1/mashup/portfolio/analyze?assets=NOK,SEK,DKK&base=USD"
{
"analysis": {
"asset_class_mix": "2 crypto, 1 commodity, 1 fiat",
"recommendation": "Good asset class diversification across crypto, commodities, and fiat"
},
"asset_count": 4,
"assets": [
{
"change_24h": -2.2811,
"change_7d": -4.0321,
"id": "bitcoin",
"market_cap": 1521065475812.0,
"name": "Bitcoin",
"price_usd": 75931.0,
"symbol": "BTC",
"type": "crypto"
},
{
"change_24h": -2.9933,
"change_7d": -6.7653,
"id": "ethereum",
"market_cap": 250049213980.0,
"name": "Ethereum",
"price_usd": 2072.21,
"symbol": "ETH",
"type": "crypto"
},
{
"id": "EUR",
"name": "EUR",
"rate_vs_base": 0.86244071,
"type": "fiat",
"volatility_30d": 0.39508937359251595
},
{
"id": "gold",
"name": "Gold (Troy Ounce)",
"price_usd": 3045.0,
"type": "commodity",
"unit": "troy_oz"
}
],
"base_currency": "USD",
"composition": {
"commodity": 1,
"crypto": 2,
"fiat": 1
},
"diversification_grade": "C",
"geographic_regions": 1,
"inflation_context": {
"us_inflation": 2.9495,
"year": 2024
},
"success": true
}