Skip to content

This Python script converts Trade Republic transaction exports into a format compatible with Ghostfolio, an open-source investment tracking application.

Notifications You must be signed in to change notification settings

taclab/trade-republic-to-ghostfolio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Trade Republic to Ghostfolio Transaction Converter

Description

This Python script converts Trade Republic transaction exports into a format compatible with Ghostfolio, an open-source investment tracking application.

Prerequisites

  • Python 3
  • Python Libraries:
    • pandas
    • datetime
    • csv
    • json
    • collections

Installation

  1. Clone this repository:
git clone https://github.com/taclab/trade-republic-to-ghostfolio.git
cd trade-republic-to-ghostfolio
  1. Install dependencies:
pip install pandas

Complete Workflow

This script integrates into a comprehensive data import workflow:

  1. Transaction Download

  2. Transaction Conversion

    • Use this script to convert transactions to Ghostfolio format
  3. Market Data Feeding

Usage

  1. Place your exported Trade Republic CSV file (traderepublic_transactions.csv) in the same directory as the script

  2. Run the script:

python script.py
  1. The script will generate two files:
    • ghostfolio_transactions.csv: Transactions in Ghostfolio format
    • instruments_data.json: Unique instrument data for ghostfolio-feeder

Features

  • Converts buy and dividend transactions
  • Generates transaction statistics
  • Adds metadata for Ghostfolio scraper configuration

Limitations

  • Currently supports buy and dividend transactions
  • Uses a generic scraper configuration for Börse Frankfurt
  • Requires post-processing for specific configurations

Acknowledgments

Disclaimer

This script is provided as-is, without warranty. Always verify your imported transactions.

About

This Python script converts Trade Republic transaction exports into a format compatible with Ghostfolio, an open-source investment tracking application.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages