{"id":21679218,"url":"https://github.com/alexanderbabel/t212-taxes","last_synced_at":"2025-08-23T10:14:32.274Z","repository":{"id":103734223,"uuid":"349869115","full_name":"AlexanderBabel/t212-taxes","owner":"AlexanderBabel","description":"This is a simple script that can help you with your tax statement. It's parsing the CSV file that can be exported from Trading212 in order to give you an overview of received dividends and profits/losses.","archived":false,"fork":false,"pushed_at":"2022-08-20T11:54:59.000Z","size":21,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-19T07:51:24.566Z","etag":null,"topics":["csv","taxes","trading212"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexanderBabel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-21T00:55:38.000Z","updated_at":"2025-06-11T10:30:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7d08356-0b0f-48d9-98fa-e37671b22331","html_url":"https://github.com/AlexanderBabel/t212-taxes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlexanderBabel/t212-taxes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderBabel%2Ft212-taxes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderBabel%2Ft212-taxes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderBabel%2Ft212-taxes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderBabel%2Ft212-taxes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexanderBabel","download_url":"https://codeload.github.com/AlexanderBabel/t212-taxes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderBabel%2Ft212-taxes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271746602,"owners_count":24813571,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csv","taxes","trading212"],"created_at":"2024-11-25T14:49:45.976Z","updated_at":"2025-08-23T10:14:32.252Z","avatar_url":"https://github.com/AlexanderBabel.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# T212 Taxes\n\nThis is a simple script that can help you with your tax statement. It's parsing the CSV file that can be exported from Trading212 in order to give you an overview of received dividends and profits/losses.\n\n## How to use this script\n\n1. Clone/Download this repo\n2. Make sure you have NodeJS 14 or higher installed.\n3. Install the dependencies of this project. I recommend Yarn, but you can also use npm. Yarn: `yarn` NPM: `npm install`\n4. Start the script with `yarn parse --help` or `npm run parse -- --help` in order to see the script help output\n5. Run the script with the path to the csv as a parameter: `yarn parse \u003cpath to csv\u003e` or `npm run parse -- \u003cpath to csv\u003e`\n\n## Help output\n\n```bash\nUsage: parse [options] \u003cpath-to-csv\u003e\n\nPrints out your profits and dividends from Trading212\n\nArguments:\n  path-to-csv                         The path to the CSV that you downloaded from Trading212\n\nOptions:\n  -c, --currency \u003ccurrency\u003e           The currency of your Trading212 account (choices: \"EUR\", \"USD\", \"GBX\", default: \"EUR\")\n  -co, --country-code \u003ccountry code\u003e  The country code (e.g. DE, UK) of the country you are in. (Only needed if you are using the domestic option) (default: \"DE\")\n  -d, --domestic                      Use this option if you want to show domestic profits and dividends separately (default: false)\n  -h, --help                          display help for command\n```\n\n## Example outputs\n\nCommand: `yarn parse csv/2020.csv --country-code DE --currency EUR --domestic`\n\n```bash\n[CSV Parser] File: csv/2020.csv\n[CSV Parser] Parsed 100 rows\n\n      --------- Dividends ---------\n\n      ----- Domestic EUR Dividends -----\n      Dividends (Total): 25 EUR\n      Dividends (Tax): 0 EUR\n\n\n      ----- Foreign EUR Dividends -----\n      Dividends (Total): 0 EUR\n      Dividends (Tax): 0 EUR\n\n      ----- Foreign USD Dividends -----\n      Dividends (Total): 50 EUR\n      Dividends (Tax): 10 EUR\n\n      ----- Foreign GBX Dividends -----\n      Dividends (Total): 0 EUR\n      Dividends (Tax): 0 EUR\n\n      ------------ P/L ------------\n\n      ----- Domestic EUR P/L -----\n      Profits: 100 EUR\n      Losses: -50 EUR\n      Total: 50 EUR\n\n\n      ----- Foreign EUR P/L -----\n      Profits: 0 EUR\n      Losses: 0 EUR\n      Total: 0 EUR\n\n      ----- Foreign USD P/L -----\n      Profits: 1000 EUR\n      Losses: -200 EUR\n      Total: 800 EUR\n\n      ----- Foreign GBX P/L -----\n      Profits: 0 EUR\n      Losses: 0 EUR\n      Total: 0 EUR\n```\n\nCommand: `yarn parse csv/2020.csv --country-code DE --currency EUR`\n\n```bash\n[CSV Parser] File: csv/2020.csv\n[CSV Parser] Parsed 100 rows\n\n      --------- Dividends ---------\n\n      ----- EUR Dividends -----\n      Dividends (Total): 25 EUR\n      Dividends (Tax): 0 EUR\n\n      ----- USD Dividends -----\n      Dividends (Total): 50 EUR\n      Dividends (Tax): 10 EUR\n\n      ----- GBX Dividends -----\n      Dividends (Total): 0 EUR\n      Dividends (Tax): 0 EUR\n\n      ------------ P/L ------------\n\n      ----- EUR P/L -----\n      Profits: 100 EUR\n      Losses: -50 EUR\n      Total: 50 EUR\n\n      ----- USD P/L -----\n      Profits: 1000 EUR\n      Losses: -200 EUR\n      Total: 800 EUR\n\n      ----- GBX P/L -----\n      Profits: 0 EUR\n      Losses: 0 EUR\n      Total: 0 EUR\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderbabel%2Ft212-taxes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexanderbabel%2Ft212-taxes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderbabel%2Ft212-taxes/lists"}