api_finance_portfolio_rebalance
Compute trades needed to rebalance a user-supplied portfolio toward specified target weights, without executing trades. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.
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": {
"holdings": "<holdings>"
},
"name": "api_finance_portfolio_rebalance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| holdings | Yes | holdings; see operation description for units and format |