Calculates portfolio Conditional Value at Risk (CVaR), also known as Expected Shortfall (ES). CVaR measures the expected loss given that the loss exceeds the VaR threshold.
Use Cases:
Advantages over VaR:
Interpretation: CVaR of 75,000.
Credits: 5 per request
API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register
Portfolio weights (should sum to 1.0)
[0.3, 0.25, 0.25, 0.2]Asset covariance matrix (annualized)
[
[0.04, 0.006, 0.008, 0.01],
[0.006, 0.09, 0.012, 0.015],
[0.008, 0.012, 0.0625, 0.018],
[0.01, 0.015, 0.018, 0.16]
]Confidence level (e.g., 0.95 for 95% CVaR)
0.5 <= x <= 0.9990.95
Time horizon in years
0.001 <= x <= 100.00396825
Current portfolio value in currency units
x >= 01000000