optimize_capital_gains
Identify which investment lots to sell to minimize capital gains tax by comparing long-term and short-term rates, using 0% bracket space, loss harvesting, and wash-sale rules.
Instructions
Analyze investment lots and suggest which to sell to minimize tax. Considers long-term vs short-term, 0% bracket space, loss harvesting, and wash sale rules.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lots | Yes | Investment lots to analyze | |
| taxYear | Yes | Tax year | |
| filingStatus | Yes | ||
| ordinaryIncome | Yes | Ordinary income (W-2, SE, interest, etc.) before investment sales | |
| targetGainOrLoss | No | Target net gain/loss to realize (negative for harvesting losses) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| error | No | ||
| isError | Yes |