get_tax_lots_csv
Download unrealized tax lots as a CSV file from Public.com. Get base64-encoded data for tax reporting and portfolio analysis.
Instructions
Export the unrealized tax lots as a CSV file.
Returns a file object with fileName and base64Data. The CSV contents
are Base64-encoded in the base64Data field — decode it to recover the
raw CSV text. Requires the API key to have the trading.read scope.
Args: account_id: Account ID. Optional if PUBLIC_COM_ACCOUNT_ID is set.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_tax_lots_csv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |