optimize_capital_gains
Analyze investment lots to suggest sales minimizing capital gains tax, considering holding periods, tax brackets, 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
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taxYear | Yes | Tax year | |
| filingStatus | Yes | ||
| ordinaryIncome | Yes | Ordinary income (W-2, SE, interest, etc.) before investment sales | |
| lots | Yes | Investment lots to analyze | |
| targetGainOrLoss | No | Target net gain/loss to realize (negative for harvesting losses) |