Trades that move a portfolio from its current allocation to target

One command in the Portfolio pack, available in the CLI, as an MCP tool and as a JavaScript import: portfolio rebalance.

What it needs, and why

Every input is checked before anything is calculated. current, target and value are required; the rest refine the answer.

InputRequiredThe question it asksWhy it matters
currentyesWhat is the current allocation, as percentages by sleeve?Trades are the difference from target.
targetyesWhat is the target allocation?Needed to size the trades.
valueyesWhat is the total portfolio value?Percentages become dollars against total value.

Requests it answers

An agent with this pack loaded picks the command from phrasing like that, asks for whatever input is missing, and reports the figures with the method that produced them.

Limits it inherits from wealth-portfolio

The full pack, its other 10 commands and what it deliberately leaves alone are on the Portfolio page.