The Dutch DeGiro AccountStatement PDF includes currency conversion information for dividends. The lines include the words “Valuta Creditering” and “Valuta Debitering”. However, this is not currently parsed by Portfolio Performance.
I checked out the most recent code from Git to see if this issue was addressed but it was not so I fixed it myself. The instructions for getting it working in Eclipse were very helpful.
This only fixes reading the FX lines. It does not fix the issue of dividend being paid in a different currency than the security, which I see is being discussed in other threads and pull requests. Now, the difference in currencies is visible in the dialog when importing account statement and transaction.
I have forked your git repository and added the words to the regex in the DegiroPDFExtractor class. I added a sample account statement file and a new JUnit test.
The branch is GitHub - ah4c/portfolio at Reading_Dividends_from_Dutch_DeGiro_AccountStatement_with_FX
PDFBox Version: 1.8.16
-----------------------------------------
Dhr. John
Doe
Hoofdstraat 1
1001AA Amsterdam
Gebruikersnaam: ****bob
Rekeningoverzicht van 01-03-2022 t/m 27-05-2022
Datum Tijd Valutadatum Product ISIN Omschrijving FX Mutatie Saldo
27-05-2022 07:34 26-05-2022 Valuta Creditering EUR 0,53 EUR 0,53
27-05-2022 07:34 26-05-2022 Valuta Debitering 1,0758 USD -0,57 USD 0,00
26-05-2022 08:08 25-05-2022 ISHARES INFRA GLO IE00B1FZS467 Dividend USD 0,57 USD 0,57
flatex DEGIRO Bank Dutch Branch, handelend onder de naam www.degiro.nl Rekeningoverzicht
DEGIRO, is de Nederlandse vestiging van flatexDEGIRO Bank AG. klanten@degiro.nl 2022-05-27
flatexDEGIRO Bank AG staat primair onder supervisie van de Duitse
Bundesanstalt für Finanzdienstleistungsaufsicht (BaFin). Amstelplein 1 1096 HA Pagina 1 /11
[flatexDEGIRO Bank AG Dutch Branch] staat in Nederland onder
integriteitstoezicht van DNB en gedragstoezicht van de AFM.