This small utility is for people using Charles Schwab brokerage and/or E-Trade services in the Czech Republic.
The program reads the Schwab JSON export of your stock transactions and optionally an E-Trade Gain and Loss CSV export, then creates a summary of your sales and purchases for the tax year.
-
Go to "Transaction History" tab.
-
Choose "Equity Award Center" from the dropdown.
-
Chose "Custom" Data range and interval from the last year (with overlap)
-
Click "Export"
-
Go to Gains & Losses.
-
Select Year 2025, Benefit type All, Capital Gain Status All, Covered Status All.

-
Click Download → Download Expanded to export the data as XLSX.
-
Save the xlsx into directory called 'sales'
-
Go to Stock Plan Confirmations.
-
Download all available confirmations.
-
Save the PDFs into directory called 'espp'
-
Go to Stock Plan Confirmations.
-
Select the relevant year and Benefit type: Restricted stock units.

-
Download all available confirmations.
-
Save the PDFs into directory called 'rsu'
-
Go to Holdings.
-
Scroll down to Other Holdings, expand it and then expand Cash transactions. Select the right date range. Don't tick "Dividends only" because you also want to see the withholding tax rows.

-
Download the report as Excel.
-
Save the XLSX file into directory called 'dividends'
-
Compile and run cockroach/src/main/kotlin/cz/solutions/cockroach/CockroachMain.kt
-
it gets 3 required command line arguments - path to Schwab JSON export, year, and output dir. An optional 4th argument specifies the path to the E-Trade Gain and Loss CSV file.
-
it uses templates located here: cockroach/src/main/resources/cz/solutions/cockroach
-
the output are 4 simple .md files and an HTML guide
-
In InteliJ IDEA, you can convert the md files into pdf in Markdown export options under Tools > Markdown Converter menu.

mvn clean install -am
mvn clean install shade:shade
java -jar target/cockroach-0.2-SNAPSHOT.jar /tmp/219114411.json 2025 /tmp/taxes
With E-Trade data:
java -jar target/cockroach-0.2-SNAPSHOT.jar /tmp/219114411.json 2025 /tmp/taxes /tmp/e-trade-dir
-
pandoc sales_2021.md -V geometry:landscape --pdf-engine=/Library/TeX/texbin/pdflatex -o sales.pdf
-
IDEA: Tools -> Markdown Converter


