Git Product home page Git Product logo

vladimir-aubrecht / statementparser Goto Github PK

View Code? Open in Web Editor NEW
26.0 10.0 13.0 1.48 MB

Idea behind the StatementParser is, that it would be nice to be able to process financial data from different kind of statements in automatized way. This is often pretty hard as brokers are giving these data only in form of xls/xlst/pdf or other format which is not directly processable and here comes StatmentParser.

License: Apache License 2.0

C# 100.00%
taxes czechia broker parsing

statementparser's Introduction

StatementParser .NET Core

Idea behind the StatementParser is, that it would be nice to be able to process financial data from different kind of statements in automatized way. This is often pretty hard as brokers are giving these data only in form of xls/xlst/pdf or other format which is not directly processable and here comes StatmentParser.

StatementParser is taking statement file from your broker on the input and converting it into preffered format.

Usages

There are two ways how you can use the project:

  • As a .Net Core library you can include parsing within your project.
  • As multiplatform utility, you can directly use it to convert statement into other format.

Library

string filePath = "<absolute path to file>";
var parser = new TransactionParser();
IList<Transaction> result = parser.Parse(filePath);

// Result can be null in case no internal parser was able to parse input file.
if (result != null)
{
  // Do something
}

Utility

Plain text conversion:

dotnet StatementParserCLI.dll <path to the file or folder containing statements>

JSON conversion:

dotnet StatementParserCLI.dll -j <path to the file or folder containing statements>

XSLX (Excel) conversion:

dotnet StatementParserCLI.dll -x <path to file with output xslx file> <path to the file or folder containing statements>

Guarantees

Use on your own risk. Official guidance is, verify all generated numbers manually. Currently there are no known bugs.

Supported output formats

  • JSON
  • Plain text
  • XSLX

Supported file formats for brokers

Type / Broker Fidelity Morgan Stanley MetaTrader FxChoice Degiro Lynx Interactive Broker Revolut
Sale transactions - - Htm Htm - - - PnL Statement Pdf
Dividend transactions Pdf Pdf, Xls - - Csv in Czech Activity Statement or Summary Csv Activity Statement or Summary Csv PnL Statement Pdf
ESPP transactions Pdf - - - - - - -
Deposit transactions Pdf Pdf, Xls - - - - - -

Examples of how parsable statements looks like

Fidelity Statement

Fidelity Statement

FXChoice Statement

FXChoice Statement

MorganStanley Statement

MorganStanley Statement

Lynx Statement

Lynx Report tool Lynx Statement

Revolut Statement

Revolut Statement

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.