Add a market position
add_market_assetAdd a market-priced position by exact ticker or query, with an optional acquisition date. Pass the purchase as the user said it, in ONE call: units they name go in quantity, with the money they named beside them — a per-unit price or a total cost, and currency = that money's currency ('10 NVDA at $180 on 2 September' → quantity 10, price 180, currency USD, date; '10 NVDA for $1,800' → quantity 10, cost 1800, currency USD); the app converts a price or cost in another currency into the listing currency at that day's rate (a price without currency is in the listing currency; a cost without one is in the display currency). Without units, size by value (what it is worth today) or cost (total paid on date) in currency (default: display currency) and the app reads the day's close and FX rate and works out the quantity; both come back under sizing. Refused: no size, value and cost without quantity, and figures that contradict each other (quantity × today's close far from value, or quantity × price not the cost). The app picks the listing itself when the choice is settled (one the user holds or watches, a coin ticker's -USD pair, an exact ticker; a bare ticker such as BTC that the user does not hold becomes the coin pair they hold) and names it under picked with why. A genuinely open choice adds nothing and returns needsChoice with matches, each carrying its ready action: call again with that match's arguments (without the action key). Missing price uses the actual market close. No broker order is placed. A currency pair (EURCZK=X, or EUR=X, which is US dollars priced in euros) is cash, not a holding: quantity units of the pair's first currency in its group's cash balance. category is the investing category, separate from market sector; omitted or empty means Other. group is the named group it joins (its account in the value breakdown): an existing name from portfolio.assetGroups.marketPriced, or a short new one; omitted, the first existing group. The result carries entryId, the new entry's id for a later edit_asset or toggle_asset.
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": "add_market_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | ||
| date | No | ||
| group | No | ||
| price | No | ||
| query | No | ||
| value | No | ||
| symbol | No | ||
| category | No | ||
| currency | No | ||
| quantity | No | ||
| dashboardId | No | Which live dashboard (browser tab) runs it; from get_dashboard_state. Optional when one tab stands out: the tab the user last approved an action in, the only live tab, or the only tab on screen. Refused before any approval when the target is ambiguous or disconnected. | |
| idempotencyKey | No | ||
| expectedRevision | No |