Freedom24 import

Hi, how to perform an automatic trading data upload from the broker Freedom Finance (platform Freedom24) https://freedomfinance.eu/, https://ffgermany.de/. It provides data in four formats: .pdf, .json, .xls, and .xlm. But I am unable to upload any of the submitted files to PP. Please help, maybe it would be possible to create an automatic .xlm upload, as in the case of Interactive Brokers?

Hey Darelas,

the import of data from pdf document does not work out of the box for every file. The parser in PP for those documents needs to be programmed by the clever programmers in this forum. In order for those volunteers to help you out it is necessary to assist them by providing such documents. As they need the text content of such PDFs they require you to convert the PDFs to text. How that works is described in this thread (I only did find this German version).

At the end of the initial post there is a link to a tutorial “Tutorial zum Extrahieren von Text aus PDF” for extracting text from a pdf. In the post itself it is mentioned how to embed the text in a PP forum post.

I created a PowerShell script to convert Excel (XLSX) file into CSV format.

You will need extra PowerShell module “ImportExcel” free from GIT. You will not need Excel to work with the file. Use this command to install it
“Install-Module -Name ImportExcel”.
More details here
https://github.com/dfinke/ImportExcel

It is the same like for XTB and T212 I published here before
https://forum.portfolio-performance.info/t/how-to-import-from-xtb/22308

Usage

  1. (one-time) install ImportExcel module to PowerShell
    Install-Module -Name ImportExcel

  2. download Excel file from Freedom24 (Member area - Reports - Broker report).

  3. run “F24_convert_run.bat”

  4. choose XLSX file

  5. script will convert the Excel file to CSV and output updated CSV

  6. import CSV file into PP. Program will load all the columns correctly. It should not need any changes. You need “F24 EUR” / “F24 USD” deposit account and “F24 EUR” / “F24 USD” in securities accounts (otherwise you will have to edit the script) in PP

Freedom24_convert_run.zip (1.8 kB)

Hi,

just for your information, I also recently wanted to import from freedom24 so I created a first version for a JSON importer.

I created the pull request at github, see

Everything should be described there. So far nothing tax related was included in my files and I also did not have any sample data for dividends, options, futures or so.

In case anyone has a rich amount of transations, you could get in contact with me, so we could add support for it quite easily based on the single day extracts containing those transations and making them anonymous before sharing.

Best Regards

This is a great workaround! Using a PowerShell script to bridge the gap to CSV definitely seems like the most reliable way to handle those XLSX exports for now. It’s a lot easier than manually reformatting everything or waiting for a native parser. Thanks for sharing the setup steps - getting those deposit accounts named correctly is a solid tip to keep things running smoothly!

Here is script update. There was a minor bug with the sell transaction (fee not handled correctly). Also, now it can import dividends. I have 100 % same result in PP now.

Freedom24_convert_run.zip (2.0 kB)

Maybe later when I have free time to anonymize it.

How does the JSON handle situations like money trasnfer between accounts? Probably doesn’t, right?

Hi @hubga

Depends, in case with accounts you mean currency conversion, then it does. See https://github.com/portfolio-performance/portfolio/pull/5636/changes#diff-ac557c3c64a21dcfb9a891dbcce6fce3ab31a1ea021d2a0a471629620dc1ee1b

In case you have multiple account IDs at freedom, then it does not, yet. Since I do not have that and thus I am not able to test without sample files. In case these are provided , I can try to implement it.

Br, chefkoch

Btw: looking at the pull request code, I am thinking again whether it is good to support all the languages freedom supports in their UI or whether I should keep it simple between 1 or 3 languages.