Skip to content

Commit

Permalink
[Revolut] Added parsing of dividends transactions from "profit and lo…
Browse files Browse the repository at this point in the history
…sses" 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
  • Loading branch information
jczaja authored Aug 14, 2024
1 parent b3931c9 commit 60d18f6
Show file tree
Hide file tree
Showing 10 changed files with 1,850 additions and 805 deletions.
914 changes: 471 additions & 443 deletions Cargo.lock

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "etradeTaxReturnHelper"
version = "0.5.5"
version = "0.6.0"
edition = "2021"
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)"
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)"
license = "BSD-3-Clause"
readme = "README.md"
keywords = ["etrade"]
keywords = ["etrade","revolut"]
repository = "https://github.com/jczaja/e-trade-tax-return-pl-helper"
homepage = "https://github.com/jczaja/e-trade-tax-return-pl-helper"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -28,3 +28,4 @@ wild = "2.2.0"
fltk = {version = "=1.3.24", features = ["fltk-bundled"], optional = true}
nom = "7.1.3"
polars = "0.35.4"
csv = "1.3.0"
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# etradeTaxReturnHelper
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.
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.

### Data for Tax form from capital gains (PIT-38 in Poland)
1. Install this program: `cargo install etradeTaxReturnHelper`
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`:
1. Login to e-trade, navigate to [Documents/Brokerage Statements](https://edoc.etrade.com/e/t/onlinedocs/docsearch?doc_type=stmt)
2. Select date period
3. Download all `ACCOUNT STATEMENT` and `Single Account Statement` documents
2. Download financial data :
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`:
1. Login to e-trade, navigate to [Documents/Brokerage Statements](https://edoc.etrade.com/e/t/onlinedocs/docsearch?doc_type=stmt)
2. Select date period
3. Download all `ACCOUNT STATEMENT` and `Single Account Statement` documents
b. Revolut:
1. Download from your Revolut mobile app "Profit and Losses" documents in CSV format in you investment account.
2. Download from your Revolut mobile app Statement account documents in CSV format in saving account.
3. Run:
1. `etradeTaxReturnHelper <your PDF documents that MAY contains dividends and/or sold transactions e.g. "*.pdf"> <Gain and Loss XLSX document>`
2. Alternatively you can just run `etradeTaxReturnHelper` to have program running with GUI (graphical user interface):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Income from Sells
Date acquired,Date sold,Symbol,Security name,ISIN,Country,Quantity,Cost basis,Gross proceeds,Gross PnL,Currency

Other income & fees
Date,Symbol,Security name,ISIN,Country,Gross amount,Withholding tax,Net Amount,Currency
2024-03-04,TFC,Truist Financial Corp,US89832Q1094,US,617.00,92.57 PLN,524.43 PLN,PLN
2024-03-21,AMCR,Amcor,JE00BJ1F3079,JE,259.17,$0,259.17 PLN,PLN
2024-03-25,PXD,Pioneer Natural Resources,US7237871071,US,212.39,31.87 PLN,180.52 PLN,PLN
2024-05-16,EPR,EPR Properties,US26884U1097,US,700.17,105.04 PLN,595.13 PLN,PLN
2024-05-31,UPS,UPS,US9113121068,US,875.82,131.38 PLN,744.44 PLN,PLN
2024-06-03,ABR,Arbor Realty Trust,US0389231087,US,488.26,73.25 PLN,415.01 PLN,PLN
2024-06-04,TFC,Truist Financial Corp,US89832Q1094,US,613.20,92 PLN,521.20 PLN,PLN
2024-06-11,XOM,Exxon Mobil,US30231G1022,US,186.16,27.92 PLN,158.24 PLN,PLN
2024-06-13,AMCR,Amcor,JE00BJ1F3079,JE,264.74,$0,264.74 PLN,PLN
2024-06-18,EPR,EPR Properties,US26884U1097,US,858.33,128.74 PLN,729.59 PLN,PLN
2024-07-12,BBY,Best Buy,US0865161014,US,421.50,63.23 PLN,358.27 PLN,PLN
2024-07-16,EPR,EPR Properties,US26884U1097,US,834.55,125.18 PLN,709.37 PLN,PLN
54 changes: 0 additions & 54 deletions scripts/README.md

This file was deleted.

49 changes: 0 additions & 49 deletions scripts/e-trade_tax_dividends.sh

This file was deleted.

Loading

0 comments on commit 60d18f6

Please sign in to comment.