httpiga / DEGIRO-to-Ghostfolio

Convert a DEGIRO transaction history export to a format that can be imported in Ghostfolio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DEGIRO to Ghostfolio

This tool allows you to convert a DEGIRO transaction export (CSV) to an import file that can be read by Ghostfolio.

NOTICE: It is recommended to only use this when you have a local instance of Ghostfolio, so you don't spam the online service hosted by Ghostfolio!

How to use

Go to DEGIRO and create an export file (via Inbox > Account Overview, see image below). Choose the period from which you wish to export your history and click download.

image

Next, clone the repo to your local machine and open with your editor of choice (e.g. Visual Studio Code).

Run npm install to install all required packages.

The repository contains a sample .env file. Rename this from .env.sample.

  • Put your DEGIRO export file path in the INPUT_FILE variable.
  • Put the Ghostfolio account name where you want your transactions to end up at in GHOSTFOLIO_ACCOUNT_ID
    • This can be retrieved by going to Accounts > select your account and copying the ID from the URL

      image

  • Put your local Ghostfolio endpoint in GHOSTFOLIO_API_URL. This is your hostname/ip address with port number (e.g. http://192.168.1.55:3333)
  • Put your Ghostfolio secret in GHOSTFOLIO_SECRET. The secret is what you use to log in to Ghostfolio.
    • This is used to generate a bearer token, which is used to retrieve ticker information via Ghostfolio's Lookup API.

You can now run npm run start. The tool will open your DEGIRO export and will convert this. It retrieves the tickers that are supported YAHOO Finance (e.g. for European stocks like ASML, it will retrieve ASML.AS by the corresponding ISIN).

The export file can now be imported in Ghostfolio by going to Portfolio > Activities and pressing the 3 dots at the top right of the table. Select your file and wait for the job to complete.

image

About

Convert a DEGIRO transaction history export to a format that can be imported in Ghostfolio

License:Apache License 2.0


Languages

Language:TypeScript 100.0%