compute_portfolio_var
Computes regulatory Value-at-Risk and Expected Shortfall (CVaR) for portfolio market risk over specified holding periods and confidence levels.
Instructions
Computes regulatory Value-at-Risk (VaR) and Expected Shortfall (CVaR) for market risk across specified holding periods and confidence intervals.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| horizon_days | No | Holding period in days (e.g. 10 for Basel Market Risk) | |
| portfolio_value | Yes | Total market value of the portfolio in USD | |
| confidence_level | No | Statistical confidence level (e.g. 0.99 for 99%) | |
| daily_volatility | Yes | 1-day standard deviation of portfolio returns |