Search Trades
get_tradesRetrieve executed trades from your brokerage account with filters by date and ticker, pagination, and optional file export for bulk data.
Instructions
Your executed trades on the account (data since 2026-01-26): ticker, side, quantity, price, volume, trade time (tradeDateTime, MSK). Paginated (page/size), optional date and ticker filters; with outputPath ALL pages are dumped to a file. Note: trades only — cash operations (dividends received, fees, deposits) are not available in BCS Trade API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Filter: end of period, ISO 8601 | |
| from | No | Filter: start of period, ISO 8601 | |
| page | No | Page number, from 0 (ignored with outputPath — all pages are fetched) | |
| size | No | Records per page | |
| tickers | No | Filter by tickers | |
| outputPath | No | Write the full result to this file (path relative to the output root: BCS_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 this also enables full-history fetching (chunking beyond the 1000-bar API limit). | |
| outputFormat | No | File format; default json (or csv if outputPath ends with .csv). csv writes the main flat array of the response. |