Manage user holdings, support buy, sell, rebalance, and query actions, and validate ticker symbols before any write operation
Each user has an independent portfolio record. Before any write operation (add / remove), the ticker must be validated first.
Users often provide abbreviations, shorthand, or Chinese names, so validation is mandatory:
data_fetch(data_type="search", symbol="...") firstsymbol and nameExamples:
data_fetch(data_type="search", symbol="TEM") -> Tempus AI Incdata_fetch(data_type="search", symbol="NVDA") or search "nvidia"| Tool call | Purpose |
|---|
data_fetch(data_type="search", symbol="...") | Search or validate a ticker and get the correct ticker and company name |
portfolio(action="get") | Get all current holdings |
portfolio(action="add", ticker="...", name="...", shares=..., cost_price=...) | Add or update a holding |
portfolio(action="remove", ticker="...") | Delete a holding |
portfolio(action="summary") | Get a portfolio summary such as total value and P/L |
portfolio(action="get") first to inspect the existing holdings