check_superficial_losses
Scans dispositions to flag superficial losses under the CRA 30-day rule. Reports denied loss amounts added to the adjusted cost base of substitute shares.
Instructions
Flag superficial losses under the CRA 30-day (61-day window) rule.
Scans dispositions for losses where the same security was bought within 30 days before or after the sale and still held at the end of that window. For each, reports the security, date, the denied (deferred) loss amount and the allowable portion. The denied amount is added to the ACB of the substitute shares. Accepts inline 'transactions' or a 'csv_path'. Each transaction is an object: date (YYYY-MM-DD), action ('buy' or 'sell'), security (ticker/symbol), shares, price (per share), and optionally commission, currency, fx_rate (trade-currency to CAD, e.g. 1.35 for USD), and note.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv_path | No | ||
| transactions | No |