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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |