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!
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.
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
- 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.