# CoreForge Portfolio Risk Computation

> CoreForge Portfolio Risk Computation is a paid API for AI agents from coreforge-memory.onrender.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-12-01).

Computes per-holding and portfolio-level risk metrics including volatility, Sharpe, Sortino, max drawdown, VaR/CVaR, correlation, concentration, with optional stress tests and Monte Carlo simulation

## Facts

- Endpoint: POST https://coreforge-memory.onrender.com/x402/trading/portfolio-risk?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coreforge-portfolio-risk-computation-43e578d1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vVksecaP06sBjwewIX0CK

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 coreforge-portfolio-risk-computation-43e578d1 -d '<json body>'
```

Example prompt: Analyze the risk of my portfolio — I hold $50,000 in AAPL, $30,000 in MSFT, and $20,000 in NVDA — give me volatility, Sharpe, Sortino, max drawdown, VaR, CVaR, and correlation, and also run the predefined stress tests and a Monte Carlo simulation.

## When to prefer this

Choose this endpoint when you need a comprehensive, multi-metric quantitative risk profile for a portfolio of 2–20 US equity holdings in a single call, especially when you want VaR/CVaR alongside Sharpe/Sortino, correlation, and optional stress testing or Monte Carlo simulation. Prefer this over building your own risk pipeline when you need server-side price bar fetching and don't want to source OHLC data yourself. Best suited for agent workflows that need to present risk analytics to investors or trigger downstream decisions based on risk thresholds.

## Known failure modes

- Invalid or unrecognized ticker symbols result in failure to fetch price bars server-side
- Fewer than 2 holdings provided — minimum requirement is 2 holdings
- More than 20 holdings provided — exceeds maximum input limit
- Missing dollarValue or weight for holdings when totalValue is needed
- Network timeout if external price data fetch is slow
- Invalid schema for holdings objects returns a 400-level error
- Insufficient price history for a ticker prevents metric computation

## How this service works

Portfolio risk computation: per-holding and portfolio volatility, Sharpe, Sortino, max drawdown, VaR/CVaR, correlation and concentration analysis, with optional predefined-scenario stress tests and Monte Carlo distribution. Computed data, not a recommendation.

## Output

Returns per-holding and aggregate portfolio risk metrics: volatility (individual and portfolio-level), Sharpe ratio, Sortino ratio, maximum drawdown, Value at Risk (VaR), Conditional VaR (CVaR), pairwise correlation matrix, and concentration analysis. If stress=true, includes results for predefined market scenarios. If monteCarlo=true, includes a 500-simulation 252-day distribution of portfolio outcomes. All results are computed analytics, not investment recommendations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "stress": {
   "type": "boolean",
   "description": "Run the predefined scenario stress tests"
  },
  "holdings": {
   "type": "array",
   "items": {
    "type": "object"
   },
   "description": "2-20 holdings: {symbol, dollarValue | weight, bars? | closes?, beta?, sector?}. Bars are fetched server-side when not supplied."
  },
  "monteCarlo": {
   "type": "boolean",
   "description": "Add a 500-simulation, 252-day Monte Carlo distribution"
  },
  "totalValue": {
   "type": "number",
   "description": "Portfolio value when sizing by weight"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coreforge-portfolio-risk-computation-43e578d1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from coreforge-memory.onrender.com](https://www.zero.xyz/host/coreforge-memory.onrender.com/llms.txt)
