get_portfolio_risk
Calculate full portfolio risk from ticker weights, including total/factor/specific volatility, factor exposures, and top variance and asset risk contributions.
Instructions
Full risk report for a portfolio: total/factor/specific vol, factor
exposures, top factor variance contributions, and top asset risk
contributions. weights maps ticker -> portfolio weight. ETF and
mutual fund tickers expand into their filed holdings before the math
runs (set lookthrough=false to disable); funds the model cannot
cover are reported in lookthrough.notes. Set optimized=true if
the weights came from optimizing against this model: reported vols
then include the Shepard second-order correction (optimizers exploit
covariance estimation noise, so raw forecasts understate an optimized
portfolio's risk). horizon: "medium" or "short" (responsive
variant, when available).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| horizon | No | medium | |
| weights | Yes | ||
| optimized | No | ||
| lookthrough | No |