Get the portfolio
get_portfolioWhat the user holds today and the tax on it. Use it when they ask what their crypto is worth, what it cost, how its value moved, or how much of it is owed in tax.
``state`` is the Planner's (get_planner): only ``ready`` carries figures, ``working``
is asked again in a few seconds, any other is said and left. ``standing``: what is
held, holding by holding (``holdings``: where, how many, what selling it today would
fetch, what it cost — null where nobody knows — and the part already free of tax;
``assets`` the same summed by asset, one coin on several chains being one),
and ``days``, its value at the end of each day before today in the account's
currency, each day at its own price (``unvalued`` holdings that day are in no figure —
no price then, or not all of it read — and a day whose ``value`` is null held
something nothing of which could be valued: say so, never read either as zero).
``frees`` false: their law frees nothing by a holding period, so no part is ever
"free of tax" by waiting (each holding's ``free`` is then null). It is the ledger's
sum of what was read, not a balance read from a chain. ``year``: the running tax
year so far. ``owed``: the tax years that ended and are not marked filed, each with
its figure and its tax in money (null where the rate depends on the person's other
income — then say the figure and that the tax is theirs to work out) and ``whole``
(false: items still wait on an answer, so the figure is a part — say so), and
``owed_tax`` their tax together, null where any is not whole or states none. With
Premium, ``standing.headline`` and ``standing.tax`` say what selling everything today
would add to the running year, over the parts of that sale that could be computed
(``standing.unsettled`` counts the rest — a cost nobody knows, no price — and while
it is above 0 those two are not the whole of it: say so), and ``free_by_month`` when
the holdings become tax-free; without it those are empty, which is no zero.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": "get_portfolio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client | No | An account this user may read as its accountant (a client's ``user_id`` from list_clients). Left out: their own account, which is every private user's case. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owed | No | ||
| year | No | ||
| state | Yes | ||
| assets | No | ||
| country | Yes | ||
| premium | Yes | ||
| reading | Yes | ||
| left_out | No | ||
| owed_tax | No | ||
| standing | No |