{"uid":"cap_hRxDJoFJI8emRCmN41brZ","slug":"api-carbon-cashmere-de-d6266610","name":"Carbon Cashmere Crypto Portfolio Risk Analyzer","description":"Professional crypto market intelligence. Real-time prices, signals, and market scoring.","url":"https://api.carbon-cashmere.de/v1/portfolio-risk?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"coins":["BTC","ETH","SOL"],"weights":[0.5,0.3,0.2],"risk_metrics":{"var_95_pct":-4.2,"sharpe_ratio":1.2,"max_drawdown_pct":-12.5},"diversification_ratio":0.85}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"days":30,"coins":"BTC,ETH","weights":"0.6,0.4"}}},"response":{"days":30,"coins":["BTC","ETH","SOL"],"weights":[0.3333,0.3333,0.3333],"updated_at":"2026-04-16T21:47:07.919856+00:00","risk_metrics":{"var_95_pct":-4.27,"var_99_pct":-4.84,"cvar_95_pct":-4.92,"sharpe_ratio":-0.31,"sortino_ratio":-0.57,"max_drawdown_pct":-9.54,"portfolio_volatility_ann_pct":53.22},"individual_risk":[{"coin":"BTC","weight":0.3333333333333333,"max_drawdown_pct":-7.77,"volatility_ann_pct":42.85},{"coin":"ETH","weight":0.3333333333333333,"max_drawdown_pct":-10.54,"volatility_ann_pct":59.34},{"coin":"SOL","weight":0.3333333333333333,"max_drawdown_pct":-14.95,"volatility_ann_pct":60.2}],"correlation_matrix":[[1,0.9563,0.9045],[0.9563,1,0.8578],[0.9045,0.8578,1]],"diversification_ratio":1.0171}},"exampleRequest":{"days":30,"coins":"BTC,ETH","weights":"0.6,0.4"},"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gZ986lY24gSAuqHE9Vo6G","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes risk metrics for a portfolio of 2-10 crypto assets, returning VaR, CVaR, volatility, Sharpe/Sortino ratios, max drawdown, correlation matrix, and diversification ratio.","exampleAgentPrompt":"Can you run a full portfolio risk analysis on my crypto holdings — 60% BTC, 40% ETH — over the last 30 days? I want to see the Value-at-Risk at 95% and 99%, Sharpe ratio, max drawdown, volatility, and the correlation matrix.","exampleUseCases":[{"title":"Rebalance portfolio to reduce tail risk","prompt":"I'm holding BTC, ETH, and SOL right now. Can you analyze the downside risk metrics — especially CVaR and max drawdown — so I know if my current allocation is too exposed to extreme losses? I want to see which assets are dragging down my Sortino ratio."},{"title":"Evaluate new assets before adding them","prompt":"I'm thinking about adding USDC, MATIC, and AVAX to my existing BTC-ETH portfolio. Before I commit any capital, can you run a full risk analysis showing how these new assets would change my portfolio volatility, Sharpe ratio, and the correlation matrix? I want to make sure I'm actually improving diversification."},{"title":"Monitor crypto hedge fund performance limits","prompt":"We manage three separate crypto portfolios — one is 50% BTC / 50% ETH, another is 40% SOL / 40% MATIC / 20% LINK, and the third is 70% BTC / 20% ETH / 10% DOT. Can you give me the Value-at-Risk at 95% and 99%, max drawdown, and diversification ratio for all three so I can flag any that are approaching our risk limits?"}],"resultDescription":"Returns a JSON object with portfolio-level risk metrics (VaR 95%/99%, CVaR 95%, annualized portfolio volatility, Sharpe ratio, Sortino ratio, max drawdown), a per-asset breakdown of individual volatility and drawdown, a full NxN correlation matrix for the assets, and a diversification ratio — all computed over the requested lookback window.","failureModes":["Invalid coin symbol — returns error if an unrecognized ticker is provided","Wrong number of weights — weights array length must match coins array length","Weights don't sum to 1.0 — invalid portfolio specification","Fewer than 2 or more than 10 coins — outside supported range","Invalid days value — must be one of 7, 14, 30, 60, 90","Insufficient historical data for requested lookback period"],"whenToPreferThis":"Choose this endpoint when you need institutional-grade, multi-metric portfolio risk analytics for crypto assets including VaR, CVaR, Sharpe/Sortino ratios, correlation matrix, and diversification ratio all in a single call. Prefer this over single-asset volatility endpoints when you have a multi-asset portfolio with specific weights and need a holistic risk picture including cross-asset correlations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T00:52:16.947Z","isFirstParty":false,"canonicalSlug":"api-carbon-cashmere-de-d6266610"}