Volatility, Sharpe, Sortino and drawdown
portfolio-analytics_risk-metricsAnnualised volatility, Sharpe, Sortino, Calmar, max drawdown with peak/trough/recovery indices, skewness and excess kurtosis from a return series. Price $0.03 USDC. POST /api/v1/portfolio-analytics/risk-metrics. 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>"
},
"name": "portfolio-analytics_risk-metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mar | No | mar, number. Optional. | |
| returns | Yes | returns, array. Required. | |
| periodsPerYear | No | periodsPerYear, number. Required. | |
| riskFreePerPeriod | No | riskFreePerPeriod, value. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calmar | No | calmar. Number. | |
| sharpe | No | sharpe. Number. | |
| sortino | No | sortino. Number. | |
| sources | No | sources. Array. | |
| skewness | No | skewness. Number. | |
| volatility | No | volatility. Number. | |
| limitations | No | limitations. Array. | |
| maxDrawdown | No | maxDrawdown. Number. | |
| annualReturn | No | annualReturn. Number. | |
| recoveryIndex | No | recoveryIndex. Number. | |
| excessKurtosis | No | excessKurtosis. Number. | |
| drawdownPeakIndex | No | drawdownPeakIndex. Number. | |
| drawdownTroughIndex | No | drawdownTroughIndex. Number. |