Preview a strategy in an account
preview_scenarioMeasure an account as it is and with a strategy added, without writing anything.
Answers which way the client's position would move if they bought a strategy,
and by how much. The account is measured twice through the Risk tab's own pane.
Pass ``strategy_id`` + ``amount``, or ``changes`` for several signed changes at
once (a switch is a negative amount on an account plus an equal positive one;
an account cannot be reduced below what it holds). A change with ``asset_id``
is one instrument: "sell 20,000 of Volvo in the ISK and buy Investor" is
``{id: ISK, asset_id: Volvo, amount: -20000}`` plus
``{asset_id: Investor, amount: 20000}`` with ``account_id: ISK``; for a switch
between instruments that names one account, that account is the default.
Otherwise ``account_id`` defaults to
everything the client holds, or everything one client holds with ``person_id``.
An empty account is valid: the before side is empty.
Nothing is written: no account, holding or node is created. There is no track
record for a scenario and the returns tab is unavailable for it. The result is
a measurement, not a suitability judgement; the client's own limits are not read.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "preview_scenario"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | ||
| changes | No | ||
| person_id | No | The id of one person, family or entity this login holds. Omit for everything this login holds. | |
| account_id | No | ||
| strategy_id | No |