request_export
Export CSV account data for a specified time period, including dividends, interest, orders, and transactions for portfolio analysis.
Instructions
Request a CSV export of account data for a specified time period
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeFrom | Yes | Start date in ISO 8601 format (e.g., 2024-01-01T00:00:00Z) | |
| timeTo | Yes | End date in ISO 8601 format | |
| includeDividends | No | Include dividend data in export | |
| includeInterest | No | Include interest data in export | |
| includeOrders | No | Include order data in export | |
| includeTransactions | No | Include transaction data in export |
Implementation Reference
- src/client.ts:313-318 (handler)The 'requestExport' method sends a POST request to '/equity/history/exports' to initiate an export.
async requestExport(exportRequest: ExportRequest): Promise<{ reportId: number }> { return this.request('/equity/history/exports', { method: 'POST', body: JSON.stringify(exportRequest), }); }