/brinvex-util-revolut

Brinvex-Util-Revolut is a compact Java library which enables developers to easily extract and work with data from Revolut trading account reports.

Primary LanguageJavaApache License 2.0Apache-2.0

Brinvex-Util-Revolut

Introduction

Brinvex-Util-Revolut is a compact Java library which enables developers to easily extract and work with data from Revolut trading account reports.

Working with Revolut trading account files is often a tedious work. Various account statements and reports coming from mobile app or webapp contain different bunch of data with different level of details. One example of many nuances Revolut has is that the profit-and-loss-pdf report contains information about dividends withholding tax but profit-and-loss-csv, account-statement-pdf, account-statement-csv do not.

Brinvex-Util-Revolut extracts and consolidates data coming from various Revolut report formats and makes them available in simple consistent form for further processing.

How to use it

  • Add dependencies
<dependency>
    <groupId>com.brinvex.util</groupId>
    <artifactId>brinvex-util-revolut-api</artifactId>
    <version>4.3.4</version>
</dependency>
<dependency>
    <groupId>com.brinvex.util</groupId>
    <artifactId>brinvex-util-revolut-impl</artifactId>
    <version>4.3.4</version>
    <scope>runtime</scope>
</dependency>
  • Process many trading-account-statement or profit-and-loss-statement PDF files and enjoy the result
RevolutService revolutSvc = RevolutServiceFactory.INSTANCE.getService(); 

PortfolioPeriod ptfPeriod = revolutSvc.processStatements(List.of(
    "c:/tmp/trading-account-statement-2022.pdf",    
    "c:/tmp/trading-account-statement-2023.pdf",    
    "c:/tmp/profit-and-loss-statement-2022.pdf",    
    "c:/tmp/profit-and-loss-statement-2023.pdf",    
));

Datamodel diagram

Requirements

  • Java 11 or above

License

  • The Brinvex-Util-Revolut is released under version 2.0 of the Apache License.