finance portfolio risk
finance_portfolio_riskRisk report for any price or return series: total return, CAGR, annualised volatility, Sharpe, Sortino, maximum drawdown and where it happened, Calmar, historical value-at-risk at 95% and 99%, expected shortfall, best and worst period and the share of positive periods; add a benchmark series for beta, alpha, correlation and tracking error. Up to 5,000 points; set periods_per_year (252 daily, 365 crypto, 52 weekly, 12 monthly). $0.003. Costs $0.003 USDC per call (x402).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "finance_portfolio_risk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prices | No | oldest first | |
| returns | No | or per-period returns as decimals | |
| benchmark | No | same length, optional | |
| risk_free | No | % per year | |
| periods_per_year | No | default 252 |