update_pie
Update an existing trading pie by renaming it and adjusting parameters including instrument weights, dividend handling, end date, goal, and icon.
Instructions
Update an existing pie with new parameters. The pie must be renamed when
updating it.
Args:
pie_id: ID of the pie to update
name: New name for the pie. Required when updating a pie.
instrument_shares: Dictionary mapping instrument tickers to their new
weights in the pie
(e.g., {'AAPL_US_EQ': 0.5, 'MSFT_US_EQ': 0.5})
dividend_cash_action: How dividends should be handled.
Possible values: REINVEST, TO_ACCOUNT_CASH
end_date: New end date for the pie in ISO 8601 format
(e.g., '2024-12-31T23:59:59Z')
goal: New total desired value of the pie in account currency
icon: New icon identifier for the pie
Returns:
AccountBucketInstrumentsDetailedResponse: Updated details of the pie
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pie_id | Yes | ||
| name | No | ||
| instrument_shares | No | ||
| dividend_cash_action | No | ||
| end_date | No | ||
| goal | No | ||
| icon | No |