Examples / Research
Portfolio VaR for a 60/40
Level 3 · ResearchPOST/v1/risk
What it answers
Risk of a classic 60% stocks / 40% bonds portfolio worth $1m: volatility, historical and parametric value at risk, expected shortfall, each holding's share of risk and the worst days of the last year.
Request
Input
POST /v1/risk{ "symbols": [ "SPY", "AGG" ], "weights": [ 0.6, 0.4 ], "portfolio_value": 1000000, "confidence_levels": [ 0.95, 0.99 ] }
Live output billed to your account
Response
Output 200 OK
{ "ok": true, "data": { "start": "2025-11-12", "end": "2026-11-12", "days": 252, "portfolio_value": 1000000.0, "annual_volatility": 0.089883, "annual_return": 0.064943, "sharpe": 0.744931, "max_drawdown": -0.058648, "value_at_risk": [ { "confidence": 0.95, "historical_var_1d": 0.00926, "historical_cvar_1d": 0.012578, "parametric_var_1d": 0.009313, "historical_var_10d_scaled": 0.029282, "historical_var_1d_amount": 9260.0, "historical_cvar_1d_amount": 12578.0, "parametric_var_1d_amount": 9313.0, "historical_var_10d_scaled_amount": 29282.0 }, { "confidence": 0.99, "historical_var_1d": 0.01334, "historical_cvar_1d": 0.018888, "parametric_var_1d": 0.013172, "historical_var_10d_scaled": 0.042183, "historical_var_1d_amount": 13340.0, "historical_cvar_1d_amount": 18888.0, "parametric_var_1d_amount": 13172.0, "historical_var_10d_scaled_amount": 42183.0 } ], "diversification_ratio": 1.101921, "holdings": [ { "symbol": "SPY", "weight": 0.6, "annual_volatility": 0.137333, "risk_contribution": 0.08117, "risk_contribution_pct": 0.903071, "value": 600000.0 }, { "symbol": "AGG", "weight": 0.4, "annual_volatility": 0.041609, "risk_contribution": 0.008712, "risk_contribution_pct": 0.096929, "value": 400000.0 } ], "worst_days": [ { "date": "2026-11-05", "return": -0.025459, "pnl": -25459.0 }, { "date": "2026-06-05", "return": -0.017466, "pnl": -17465.86 }, { "date": "2026-01-20", "return": -0.013739, "pnl": -13739.32 }, { "date": "2026-03-26", "return": -0.012955, "pnl": -12955.47 }, { "date": "2026-03-20", "return": -0.011909, "pnl": -11908.64 } ], "benchmark": "SPY", "beta": 0.64472, "correlation": 0.985079 }, "meta": { "op": "risk", "units": 4, "cost_usd": 0.0, "billing": "internal", "free_call": false, "free_calls_left": 0, "balance_usd": 5.0, "ms": 99, "interval": "1day", "data_as_of": "2026-11-12", "partial_last_bar": false } }
How to read it
var_95_1d = 0.011 means that on 95% of days the loss was smaller than 1.1%; with portfolio_value the same figure appears in dollars in var_money. risk_contribution_pct shows that stocks usually carry far more than 60% of the risk.
Parameters and limits: Portfolio risk reference. Analytics, not advice.