get_tax_lots
Retrieve unrealized tax-lot summaries for your account, including per-lot gains/losses, holding terms, cost basis, and aggregate totals.
Instructions
Get the unrealized tax-lot summary for the account.
Returns per-lot unrealized gain/loss, holding term (short/long/60-40),
cost basis, and the aggregate totals across all lots. 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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |