Book Lightyear Trades
book_lightyear_tradesBook Lightyear stock Buy and Sell trades with DRY RUN preview. For sells, provide CapitalGainsStatement CSV to compute FIFO cost basis and realized gain/loss.
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_ref | No | Opaque Lightyear AccountStatement file reference. | |
| file_path | No | AccountStatement path/base64 input. Provide exactly one of file_path or file_ref. | |
| fee_account | No | Account for EXPENSED trade fees — every Buy and Sell fee, both the platform fee and the FX-conversion fee (default: auto-detect 'Kulu aktsiatelt ja osadelt', standard 8335). No fee is capitalized into the investment cost: Lightyear's FIFO cost basis is fee-exclusive, and RTJ 3 expenses transaction costs on assets held at fair value through profit or loss. | |
| plan_handle | No | Execution-plan handle from the reviewed dry run. Required for dry_run=false. | |
| loss_account | No | Realized loss account, debited on a sell loss (default: auto-detect 'Kulu aktsiatelt ja osadelt', standard 8335) | |
| 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, credited on a sell gain (default: auto-detect 'Tulu aktsiatelt ja osadelt', standard 8330) | |
| 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) | |
| capital_gains_file_ref | No | Opaque Lightyear capital-gains file reference; exclusive with capital_gains_file. | |
| investment_dimension_id | No | Dimension ID for investment account (accounts_dimensions_id) |