Optimize an allocation
optimize_allocationSplit an amount across selected DeFi markets to maximize yield while targeting a specific diversification level. Returns per-market amounts, blended APY, and projected 6-month yield.
Instructions
Split an amount across chosen markets to maximise yield at a target diversification, returning per-market amounts, the blended APY and a projected 6-month yield.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amountUsd | Yes | Total amount to allocate, in USD. | |
| productIds | Yes | Markets to allocate across, from find_best_markets. Order is not significant to you, but is preserved internally. | |
| diversification | No | Target diversification score. 80 = highly diversified, 0 = concentrate everything in the highest yield. |