canli-mcp / Quant finance
Kelly fraction
Compute the growth-optimal (Kelly) fraction: from a return series (continuous, (mean - rf) / variance), or from a win probability and payoff odds. Also gives half Kelly.
The tool is kelly_fraction in canli-mcp 0.22.0, free and MIT-licensed, with no account and no API key. It comes from canli-quant-mcp, which canli-mcp includes, and it is also its own server.
Arguments
| Argument | Required | Type |
|---|---|---|
returns | no | number[] |
prices | no | number[] |
periods_per_year | no | number |
risk_free | no | number |
win_probability | no | number |
payoff | no | number |
How a model reaches it
Ask in plain words. The model finds kelly_fraction with canli-mcp's find_tool, reads its arguments with describe_tool if it needs to, and runs it with run_tool. The call has this shape, with your values in place of the angle brackets:
{
"name": "kelly_fraction",
"arguments": {}
}Words that find it
Besides its name, title and description, find_tool matches a question to kelly_fraction on these words: kelly, sizing, optimal, fraction, leverage, bet.
More
Nothing here is investment advice.