Save a simulation on an account
save_simulationSave changes to one account as a simulation that the dashboard can compare against.
Takes the changes ``preview_scenario`` takes, on one account: ``strategy_id`` +
``amount``, or ``changes``. Sales and resizes must be on ``account_id``, and
purchases land in it. The saved holdings are the account's own plus the
changes as of the latest price date, with no optimisation, so they measure
what the preview measured.
Returns the simulation id and the same before/after measurement as
``preview_scenario``. ``open_dashboard`` takes it in
``simulations``, on the account or on any node above it, alongside other
accounts' simulations. It also shows in the web app. A name already on the account is
refused; ``delete_simulation`` removes simulations.
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": {
"account_id": "<account_id>",
"name": "<name>"
},
"name": "save_simulation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| amount | No | ||
| changes | No | ||
| account_id | Yes | ||
| strategy_id | No |