Skip to content

Parse PDF bank statements and extract financial transactions such as purchases of stocks and funds. Several banks located in Germany are included.

License

Notifications You must be signed in to change notification settings

lorenzbr/BankStatementParser

Repository files navigation

BankStatementParser

Project Status: Active – The project has reached a stable, usable state and is being actively developed. Lifecycle: stable R-CMD-check Codecov test coverage

Parse PDF bank statements to get financial transactions of stocks and funds

Description

This R package contains functions to parse PDF bank statements to get financial transactions of stocks and funds. Several banks located in Germany are included (see below for further information).

Installation

devtools::install_github("lorenzbr/BankStatementParser")

Usage

## Example

files <- list.files(system.file("extdata", package = "BankStatementParser"), 
                    pattern = "pdf", full.names = TRUE)
document_names <- basename(files)

i <- 1
file <- files[i]
document_name <- document_names[i]
df_transactions <- BankStatementParser::get_transactions(file, document_name)

list_dfs <- mapply(BankStatementParser::get_transactions, files, 
                   document_names, SIMPLIFY = FALSE)
df_transactions <- do.call(rbind, unname(list_dfs))

path_raw_data <- ""
file_transactions_csv <- "transaction_fullhistory.csv"

BankStatementParser::update_transaction_history(df_transactions, path_raw_data, 
                                                file_transactions_csv)

df_test <- data.table::fread(paste0(path_raw_data, file_transactions_csv))

Documentation

Banks and transaction types supported:

Bank/broker Transaction type
Cortal Consors Purchase, sale, partial sale, dividend
DKB AG Purchase, dividend
onVista Purchase, sale, dividend, storno (dividend), tax prepayment
Scalable Capital Purchase

Contact

Please contact lorenz.brachtendorf@gmx.de if you want to:

  • contribute to this project
  • have additional features included (e.g., other banks or brokers)

You can also submit bug reports and suggestions via e-mail or https://github.com/lorenzbr/BankStatementParser/issues

License

This R package is licensed under the GNU General Public License v3.0.

See here for further information.

About

Parse PDF bank statements and extract financial transactions such as purchases of stocks and funds. Several banks located in Germany are included.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages