Sharpe Ratio
sharpe-ratioSharpe ratio: excess mean return per unit of volatility, (mean - riskFree) / stdev. Null when volatility is undefined or zero.
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": "sharpe-ratio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| returns | Yes | The return series (percents). | |
| riskFreePct | No | Risk-free rate in the same unit (default 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sharpe | No | Sharpe ratio (null if no volatility). | |
| meanPct | No | Mean return. | |
| stdevPct | No | Volatility. |