finance_portfolio_stats
Portfolio performance and risk stats — Performance and risk analytics from a return or price series: total return, CAGR, annualized mean and volatility, downside deviation, Sharpe, Sortino, Calmar, max drawdown with peak/trough/recovery positions, Ulcer index, historical 95% VaR and CVaR, skewness, kurtosis, best/worst period, % positive periods and a rating. Add benchmark= for beta, Jensen alpha, correlation, R squared, tracking error, information ratio and up/down capture. Params: prices= (levels) or returns= (percent per period; unit=decimal for 0.012 style); period=daily|weekly|monthly|quarterly|yearly (default daily); optional rf= annual risk-free % (default 0), benchmark= same format and length. Offline. Price: $0.003 USDC (Base, via x402).
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": {
"prices": "<prices>",
"period": "<period>"
},
"name": "finance_portfolio_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | Yes | monthly | |
| prices | Yes | 100,102,101,105,103,108,110,107,111,115,112,118,120 |