Get portfolio holdings
tossinvest_get_holdingsRetrieve stock holdings with per-symbol average cost, market value, and profit/loss, including daily change and net returns after fees. Supports filtering by symbol or account.
Instructions
Get the account's stock holdings with per-symbol detail and aggregate valuation.
This is the portfolio tool: what is owned, at what average cost, worth how much, up or down how much.
Args:
account_seq (number, optional): which account. Resolved automatically when the credentials have one account.
symbol (string, optional): restrict to one symbol. The summary totals are recomputed for just that symbol.
response_format ('markdown' | 'json'): default 'markdown'.
Returns { accountSeq, count, totalPurchaseAmount, marketValue, profitLoss, dailyProfitLoss, items }.
Summary objects carry per-currency amounts as { krw, usd } — KRW and USD are reported separately, never summed. Convert with tossinvest_get_exchange_rate if a single figure is wanted.
profitLoss has both 'amount'/'rate' (gross) and 'amountAfterCost'/'rateAfterCost' (net of commission and tax). Use the AfterCost variants for realistic returns.
Each item: { symbol, name, marketCountry, currency, quantity, lastPrice, averagePurchasePrice, marketValue: { purchaseAmount, amount, amountAfterCost }, profitLoss, dailyProfitLoss, cost: { commission, tax } }, priced in the symbol's own currency.
Covers KR and US stocks only — overseas derivatives and bonds are excluded. No holdings gives zeroed totals and an empty item list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | No | Restrict to one symbol; totals are recomputed for it. Omit for the whole portfolio. | |
| account_seq | No | accountSeq of the account to act on (the `X-Tossinvest-Account` header). Optional: falls back to TOSSINVEST_ACCOUNT_SEQ, then to the sole account on the credentials. Get valid values from tossinvest_list_accounts. | |
| response_format | No | Output format: 'markdown' for a compact human-readable summary, 'json' for the complete raw payload. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| items | Yes | ||
| truncated | No | ||
| accountSeq | Yes | ||
| profitLoss | No | ||
| marketValue | No | ||
| dailyProfitLoss | No | ||
| truncation_message | No | ||
| totalPurchaseAmount | No | Cost basis, summed per currency ({ krw, usd }) |