compute_rebalance_plan
Generate a dry-run plan of market orders to rebalance your portfolio to target weights, using a drift threshold to trigger orders, without executing any trades.
Instructions
Compute (dry-run, nothing executed) the MARKET orders needed to move the portfolio to target weights. target_weights_json is a JSON object like {"BTC": 0.5, "ETH": 0.3, "USDT": 0.2} — fractions summing to ~1.0. threshold: minimum weight drift before an order is generated. Review the plan, then use prepare_rebalance to get a confirmation token.
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": {
"target_weights_json": "<target_weights_json>"
},
"name": "compute_rebalance_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threshold | No | ||
| target_weights_json | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |