Get Operations
get_operationsRetrieve account operations (trades, dividends, taxes, fees) with cursor pagination. Write full history to file for offline analysis.
Instructions
Executed account operations (trades, dividends, coupons, taxes, fees) with cursor pagination. Default period: last 365 days. With outputPath the server fetches ALL pages from the start of the period (the cursor arg is ignored in file mode) and writes the full history to the file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Period end, ISO 8601 (default: now) | |
| from | No | Period start, ISO 8601 (default: 1 year ago) | |
| limit | No | Page size (inline mode) | |
| cursor | No | Cursor from the previous response (nextCursor); inline mode only, ignored with outputPath | |
| 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). | |
| instrumentId | No | Filter by instrument UID | |
| outputFormat | No | File format; default json (or csv if outputPath ends with .csv). csv writes the main flat array of the response. |