Skip to content

Commit 60d18f6

Browse files
authored
[Revolut] Added parsing of dividends transactions from "profit and losses" CSV documents (#125)
* - Initial changes to accomodate dividend data from CSV of revolut * - Added CSV to detect type of CSV document * - Dividends parsing works from revolut gain and posses CSV document * - updated doc * - Bumped version to 0.6.0 and removed obsolate scripts * - Update dependencies * - Updated even more dependencies
1 parent b3931c9 commit 60d18f6

File tree

10 files changed

+1850
-805
lines changed

10 files changed

+1850
-805
lines changed

Cargo.lock

Lines changed: 471 additions & 443 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
22
name = "etradeTaxReturnHelper"
3-
version = "0.5.5"
3+
version = "0.6.0"
44
edition = "2021"
5-
description = "Parses etrade financial documents for transaction details (income, tax paid, cost basis) and compute total income and total tax paid according to chosen tax residency (currency)"
5+
description = "Parses etrade and revolut financial documents for transaction details (income, tax paid, cost basis) and compute total income and total tax paid according to chosen tax residency (currency)"
66
license = "BSD-3-Clause"
77
readme = "README.md"
8-
keywords = ["etrade"]
8+
keywords = ["etrade","revolut"]
99
repository = "https://github.com/jczaja/e-trade-tax-return-pl-helper"
1010
homepage = "https://github.com/jczaja/e-trade-tax-return-pl-helper"
1111
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -28,3 +28,4 @@ wild = "2.2.0"
2828
fltk = {version = "=1.3.24", features = ["fltk-bundled"], optional = true}
2929
nom = "7.1.3"
3030
polars = "0.35.4"
31+
csv = "1.3.0"

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
# etradeTaxReturnHelper
2-
Project that parse e-trade PDF account statements and Gain and Losses documents and compute total gross gain and tax paid in US that are needed for tax return forms out of US.
2+
Project that parse e-trade and revolut account statements and Gain and Losses documents in order to compute total gross gain and tax paid in US that are needed for tax return forms out of US.
33

44
### Data for Tax form from capital gains (PIT-38 in Poland)
55
1. Install this program: `cargo install etradeTaxReturnHelper`
6-
2. Download PDF documents from a year you are filling your tax return form for example: `Brokerage Statement <xxx>.pdf` and `MS_ClientStatements_<xxx>.pdf`:
7-
1. Login to e-trade, navigate to [Documents/Brokerage Statements](https://edoc.etrade.com/e/t/onlinedocs/docsearch?doc_type=stmt)
8-
2. Select date period
9-
3. Download all `ACCOUNT STATEMENT` and `Single Account Statement` documents
6+
2. Download financial data :
7+
a. Etrade: Download PDF documents from a year you are filling your tax return form for example: `Brokerage Statement <xxx>.pdf` and `MS_ClientStatements_<xxx>.pdf`:
8+
1. Login to e-trade, navigate to [Documents/Brokerage Statements](https://edoc.etrade.com/e/t/onlinedocs/docsearch?doc_type=stmt)
9+
2. Select date period
10+
3. Download all `ACCOUNT STATEMENT` and `Single Account Statement` documents
11+
b. Revolut:
12+
1. Download from your Revolut mobile app "Profit and Losses" documents in CSV format in you investment account.
13+
2. Download from your Revolut mobile app Statement account documents in CSV format in saving account.
1014
3. Run:
1115
1. `etradeTaxReturnHelper <your PDF documents that MAY contains dividends and/or sold transactions e.g. "*.pdf"> <Gain and Loss XLSX document>`
1216
2. Alternatively you can just run `etradeTaxReturnHelper` to have program running with GUI (graphical user interface):
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Income from Sells
2+
Date acquired,Date sold,Symbol,Security name,ISIN,Country,Quantity,Cost basis,Gross proceeds,Gross PnL,Currency
3+
4+
Other income & fees
5+
Date,Symbol,Security name,ISIN,Country,Gross amount,Withholding tax,Net Amount,Currency
6+
2024-03-04,TFC,Truist Financial Corp,US89832Q1094,US,617.00,92.57 PLN,524.43 PLN,PLN
7+
2024-03-21,AMCR,Amcor,JE00BJ1F3079,JE,259.17,$0,259.17 PLN,PLN
8+
2024-03-25,PXD,Pioneer Natural Resources,US7237871071,US,212.39,31.87 PLN,180.52 PLN,PLN
9+
2024-05-16,EPR,EPR Properties,US26884U1097,US,700.17,105.04 PLN,595.13 PLN,PLN
10+
2024-05-31,UPS,UPS,US9113121068,US,875.82,131.38 PLN,744.44 PLN,PLN
11+
2024-06-03,ABR,Arbor Realty Trust,US0389231087,US,488.26,73.25 PLN,415.01 PLN,PLN
12+
2024-06-04,TFC,Truist Financial Corp,US89832Q1094,US,613.20,92 PLN,521.20 PLN,PLN
13+
2024-06-11,XOM,Exxon Mobil,US30231G1022,US,186.16,27.92 PLN,158.24 PLN,PLN
14+
2024-06-13,AMCR,Amcor,JE00BJ1F3079,JE,264.74,$0,264.74 PLN,PLN
15+
2024-06-18,EPR,EPR Properties,US26884U1097,US,858.33,128.74 PLN,729.59 PLN,PLN
16+
2024-07-12,BBY,Best Buy,US0865161014,US,421.50,63.23 PLN,358.27 PLN,PLN
17+
2024-07-16,EPR,EPR Properties,US26884U1097,US,834.55,125.18 PLN,709.37 PLN,PLN

scripts/README.md

Lines changed: 0 additions & 54 deletions
This file was deleted.

scripts/e-trade_tax_dividends.sh

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)