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.
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": {
"amountUsd": "<amountUsd>",
"productIds": "<productIds>"
},
"name": "optimize_allocation"
}
}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. |