canli-mcp / Quant finance
Rebalancing trades
Turn current holdings and target weights into the share trades that rebalance the portfolio, with turnover, optional no-trade bands, and cash left over.
The tool is rebalance_trades 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 |
|---|---|---|
holdings | yes | number[] |
prices | yes | number[] |
target_weights | yes | number[] |
cash | no | number |
band | no | number |
whole_shares | no | boolean |
assets | no | string[] |
How a model reaches it
Ask in plain words. The model finds rebalance_trades 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": "rebalance_trades",
"arguments": {
"holdings": "<number[]>",
"prices": "<number[]>",
"target_weights": "<number[]>"
}
}Words that find it
Besides its name, title and description, find_tool matches a question to rebalance_trades on these words: rebalance, trades, target, weights, drift, turnover, orders, shares, threshold, band.
More
Nothing here is investment advice.