Get Portfolio
get_portfolioGet a portfolio summary in RUB with totals by asset class, expected yield, and position details including ticker, quantity, prices, and accrued interest. Output to JSON or CSV.
Instructions
Portfolio summary in RUB: totals by asset class, expected yield, and all positions enriched with ticker/name (quantity, average and current price, accrued interest for bonds). csv output writes the positions array.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | Account ID from get_accounts | |
| outputPath | No | Write the full result to this file (path relative to the output root: TINKOFF_OUTPUT_DIR or server cwd) instead of returning it inline. The response becomes a short summary {savedTo, records, bytes, sample}. Use for bulk data to keep the context clean. For get_candles/get_operations this also enables full-history fetching (chunking/pagination). | |
| outputFormat | No | File format; default json (or csv if outputPath ends with .csv). csv writes the main flat array of the response. |