Book Lightyear Trades
book_lightyear_tradesBook Lightyear stock buy and sell trades from CSV files. Supports dry run preview and FIFO cost basis calculation for capital gains.
Instructions
Book Lightyear stock Buy/Sell trades. DRY RUN by default. For sells, capital_gains_file is required for FIFO cost basis and recognized gain/loss.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Preview without creating entries (default true) | |
| file_path | Yes | Absolute path to Lightyear AccountStatement CSV file. | |
| fee_account | No | Fee expense account (default: fees included in investment cost) | |
| loss_account | No | Realized loss account (debit for losses). If omitted, losses go to gain_loss_account. | |
| skip_tickers | No | Comma-separated tickers to skip (default: BRICEKSP, ICSUSSDP). Pass "none" to disable; the empty string is treated as the default. | |
| broker_account | Yes | Broker cash account (e.g. 1120 Lightyear konto) | |
| gain_loss_account | No | Realized gain account (credit for gains; also used for losses if loss_account not set) | |
| capital_gains_file | No | Absolute path to Lightyear CapitalGainsStatement CSV (required for sell entries) | |
| investment_account | Yes | Investment/securities account (e.g. 1550 Finantsinvesteeringud) | |
| broker_dimension_id | No | Dimension ID for broker account (accounts_dimensions_id) | |
| investment_dimension_id | No | Dimension ID for investment account (accounts_dimensions_id) |