You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`ibctl holding safe-sell list`| Identify positions safe to sell from a tax perspective (loss or LTCG only) |
60
-
|`ibctl holding unsafe-sell list`| Show positions with short-term capital gains exposure |
61
-
|`ibctl holding value`| Display portfolio value with estimated tax impact |
56
+
|`ibctl lot list`| Display individual FIFO tax lots |
57
+
|`ibctl category list`| Display holdings aggregated by category |
58
+
|`ibctl geo list`| Display holdings aggregated by geographic classification |
59
+
|`ibctl possible-sale list --safe`| Identify positions safe to sell from a tax perspective (loss or LTCG only) |
60
+
|`ibctl possible-sale list --unsafe`| Show positions with short-term capital gains exposure |
61
+
|`ibctl value`| Display portfolio value with estimated tax impact |
62
62
|`ibctl transaction list`| List all transactions (buys, sells, dividends, interest, WHT, etc.) chronologically |
63
-
|`ibctl transaction sale list`| List realized security sales with FIFO lot matching for tax reporting |
63
+
|`ibctl realized-sale list`| List realized security sales with FIFO lot matching for tax reporting |
64
64
65
65
All commands accept `--dir` to specify the ibctl directory (defaults to `.`). All holding and transaction commands accept `--base-currency` (default `USD`) to convert values to a different currency. Holding commands accept `--realtime` to fetch current stock prices and FX rates from Yahoo Finance on-demand. For international symbols where IBKR and Yahoo symbols differ, add mappings to `realtime_symbols` in `ibctl.yaml`. Use `--help` on any command for detailed documentation.
66
66
@@ -70,10 +70,10 @@ Generate CSV files for your accountant:
70
70
71
71
```bash
72
72
# Realized capital gains for IRS (US tax reporting).
73
-
ibctl transaction sale list --from 20250101 --to 20251231 --base-currency USD --format csv >transaction-sale-list-2025-usd.csv
Aggregates holdings by geographic classification and displays each geo's market value, percentage of net liquidation value, and capital gains breakdown.
Shows combined positions across all accounts. Positions are computed via FIFO tax lot matching with weighted average cost basis, then verified against IBKR-reported positions.
8
8
9
-
Use `--base-currency` (default `USD`) to convert all values to a different currency. Cost basis is converted using the FX rate on the lot's open date; current market value uses today's rate. This correctly shows FX-adjusted unrealized P&L -- the same methodology used by `transaction sale list` for realized gains.
9
+
Use `--base-currency` (default `USD`) to convert all values to a different currency. Cost basis is converted using the FX rate on the lot's open date; current market value uses today's rate. This correctly shows FX-adjusted unrealized P&L -- the same methodology used by `realized-sale list` for realized gains.
10
10
11
11
Positions worth less than 0.01 in the base currency are filtered out. This removes dust positions (e.g., a JPY cash balance that rounds to -0.00 in USD).
Copy file name to clipboardExpand all lines: book/src/commands/lot-list.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
-
# holding lot list
1
+
# lot list
2
2
3
3
```
4
-
ibctl holding lot list [--dir DIR] [--format FORMAT] [--download] [--realtime] [--symbol SYMBOL] [--base-currency CURRENCY]
4
+
ibctl lot list [--dir DIR] [--format FORMAT] [--download] [--realtime] [--symbol SYMBOL] [--base-currency CURRENCY]
5
5
```
6
6
7
7
Lists individual FIFO tax lots. Unlike `holding list`, which aggregates positions by symbol, this command shows each tax lot separately with its own open date, quantity, and cost basis.
0 commit comments