rebalance_portfolio
Rebalance a multi-currency portfolio: given holdings, per-holding (or per-asset-class) target weights, cash and FX rates, return the exact BUY/SELL trades to reach the targets, the per-currency cash movements (flagging foreign-cash overdrafts), and a summary. Planning math only — no transaction costs or taxes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fx_rates | No | Value of 1 unit of each currency in the base currency (base currency itself is 1). | |
| holdings | Yes | The portfolio holdings to rebalance. | |
| base_currency | No | Base currency the portfolio is valued in. | USD |
| class_targets | No | Optional per-asset-class goal % (incl. "Cash"). When given, unlocked holdings are retargeted to hit each class goal before computing trades. | |
| available_cash | No | Cash held per currency, keyed by ISO code. |