Git Product home page Git Product logo

degirotransactionconverter's Introduction

Degiro Transaction Converter

Convert Degiro transaction data to Tradervue generic importer format

DegiroToTradervue.py Python scripts converts your "Transaction.csv" export from Degiro to the generic import format for Tradervue.

Requirements / Installing

  • Python 3
    • Pandas Module
    • Requests Module

Modules can be installed with pip and the given requirements.txt

pip install -r requirements.txt

How It Works

  1. Data from Transaction.csv will be read in
  2. Degiro export contains Date, Time, ProductName, ISIN, Exchange, Quantity, Price, and much more...
    • Tradervue only needs Date, Time, Symbol, Quantity and Price.
  3. Change CVS header to match Tradervue format
  4. Convert date format from dd-mm-YYYY to YYYY-mm-dd
  5. Try to convert ISIN to stock symbol, this is the "hardest" part.
    • First try to look up symbol in "SymbolLookUp.csv" table
    • If not found make an API call to OpenFIGI.
      • This should work for US Stocks
      • Everything else needs to be added to the "SymbolLookUp.csv" manually or the API call needs to be improved.
      • Without an APIKEY the rate limit is 5 calls per minuted, so we will wait 12 Seconds between calls.
    • Write API call response back to "SymbolLookUp.csv" for furture use.
  6. Write data to "output.csv"

Usage

Basic usage just needs the path to the "Transaction.csv" exported from your Degiro Account.

Transaction report, for a given date range, can be exported under: Activity -> Transaction -> Export -> CSV Degiro Export

Invoke the Python script:

python3 DegiroToTradervue.py --data "path/to/Transaction.csv"

"output.csv" will be generated.

Which in turn can be imported by the Tradervue generic importer. Tradervue Import

Parameter

-h, --help            show help message and exit
--data DATA           [requiered] CSV file containing the Degiro transaction data e.g."Transactions.csv"
--apiKey APIKEY       [optional] OpenFIGI api key to increase the rate limit on ISIN to Symbol lookups
--log_level           [optional] Logging level: {DEBUG,INFO,WARNING,ERROR,CRITICAL}
--log_file LOG_FILE   [optional] File were the log gets written to e.g. "DegiroTradervue.log"

The APIKEY can be used to open up the rate limit. The OpenFIGI API key can be obtained at www.openfigi.com

Links

  • Tradervue - Online Trading Journal
  • Degiro - DEGIRO European brokerage company
  • OpenFiGI - Financial Instrument Global Identifier api

degirotransactionconverter's People

Contributors

gaunah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

degirotransactionconverter's Issues

Hardcoded column counts and column drop

Hi. I think some changes with degiro's csv output is breaking the hardcoded column counts and might be a problem for dropping unused columns too. As a workaround I just hardcoded 12 columns as per the csv format I downloaded.

[ERROR] Input data column count incorect! expected: 19

FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version

Hey, thank you so much for your script. It saves my so much time and effort. I'm really thankful for it ๐Ÿ™๐Ÿป

The log says: "/Degiro-to-Tradervue/DegiroToTradervue.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead."

Will you update the frame.append method when it will be removed from pandas in a future version so that the code will continue to work?

Thanks for all you do, greatly appreciate it!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.