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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"timeFrom": "<timeFrom>",
"timeTo": "<timeTo>"
},
"name": "request_export"
}
}Input 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), }); }