The numbers may be off by an incredible small amount, as I didn't know about IEEE 754 when I initially created this. :)
This application generates a report of incomes and losses from CSV-Data. It currently supports the calculation of profits with the FiFo method for the platforms Trading212 and Revolut. It is also able to calculate the fees paid for currency conversions.
The application is hosted at the following addresses:
-
Download your history as described here. The file downloaded should end with
.csv
. Note that Trading212 currently only allows you to download your history in 12 month timeframes. If you've traded for more than 12 months, just download every single year as a seperate file.⚠️ Currently only XAU/XAG assets are supported.Download the CSV files from your Revolut app (Hub > Commodities > Select Silver or Gold > Statment). Select the maximum possible timeframe.
-
The application will automatically detect from which platform the files are. However, don't mix files from Revolut with files from Trading212 and vice versa.
-
Select all files you've downloaded at once and upload them. Hold
CTRL
, while clicking files to select multiple. If you've uploaded Revolut files, you'll need to enter some missing data, which you can find in your app. -
If everything went fine, you should now be able to select a year. 🎉 If not, please create an issue.
- automatically detects origin of CSV
- removes duplicated entries automatically
- calculate conversion fees in specific timeframe
- calculate realized incomes and losses with the first-in first-out method in specific timeframe
- error boundary
If you want to run the application on your local pc or just want to contribute, do the following steps:
- Clone the repository.
git clone https://github.com/martenmatrix/capital-gains-trading-calculator
- Install the dependencies.
npm install
- If you want to run the website on your localhost type:
npm run start
- Create React App v5.0.0
- Jest v27.5.1
- Bootstrap v5.1.3
- Firebase (Hosting, Analytics) v9.6.8