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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threshold | No | ||
| target_weights_json | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |