# Carbon Cashmere Crypto Portfolio Risk Analyzer

> Carbon Cashmere Crypto Portfolio Risk Analyzer is a paid API for AI agents from api.carbon-cashmere.de, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-10).

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.

## Facts

- Endpoint: GET https://api.carbon-cashmere.de/v1/portfolio-risk?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-carbon-cashmere-de-d6266610
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hRxDJoFJI8emRCmN41brZ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-carbon-cashmere-de-d6266610
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Professional crypto market intelligence. Real-time prices, signals, and market scoring.

## Output

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.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "days": 30,
   "coins": "BTC,ETH",
   "weights": "0.6,0.4"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-carbon-cashmere-de-d6266610/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.carbon-cashmere.de](https://www.zero.xyz/host/api.carbon-cashmere.de/llms.txt)
