Value-at-Risk and Expected Shortfall
portfolio-analytics_var-cvarHistorical, parametric normal and Monte Carlo VaR/ES at caller confidence levels from a return series. Price $0.04 USDC. POST /api/v1/portfolio-analytics/var-cvar. An unpaid call returns the x402 payment terms and does not run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"returns": "<returns>",
"confidence": "<confidence>"
},
"name": "portfolio-analytics_var-cvar"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | seed, integer, from -9007199254740991 to 9007199254740991. Required. | |
| methods | No | methods, array. Required. | |
| returns | Yes | returns, array. Required. | |
| confidence | Yes | confidence, array. Required. | |
| simulations | No | simulations, integer, from 1000 to 200000. Required. | |
| horizonPeriods | No | horizonPeriods, integer, from 1 to 9007199254740991. Required. | |
| portfolioValue | No | portfolioValue, number. Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | No | results. Array. | |
| sources | No | sources. Array. | |
| limitations | No | limitations. Array. |