diff --git a/CHANGELOG.md b/CHANGELOG.md index 898700c..74a7920 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### v. 1.3.0 +- Added support for Ledger Balance (tanks to @DashNY) + ### v. 1.2.1 - Fixed missing Open and Close tags for Statement - Fixed Date parsing in when time zone is missing. By default the timezone is UTC diff --git a/QFXparser.Testing/InvestData.qfx b/QFXparser.Testing/InvestData.qfx new file mode 100644 index 0000000..f78ad0a --- /dev/null +++ b/QFXparser.Testing/InvestData.qfx @@ -0,0 +1,247 @@ +OFXHEADER:100 +DATA:OFXSGML +VERSION:102 +SECURITY:NONE +ENCODING:USASCII +CHARSET:1252 +COMPRESSION:NONE +OLDFILEUID:NONE +NEWFILEUID:NONE + + + + + + 0 + INFO + SUCESSFULLY DOWNLOADED THE INFORMATION + + 20190816000000 + ENG + 20190816000000 + 20190816000000 + + A Financial Institution of your Choice + 12345 + + 12345 + + + + + 0 + + 0 + INFO + SUCESSFULLY DOWNLOADED THE INFORMATION + + + 20190816000000 + USD + + invest.yourbank.com + 1234567890123456789 + + + 20190516000000 + 20190816000000 + + + + 20190815C12345 + 20190815 + 20190815 + + + 12345A123 + CUSIP + + 12.1234 + 12.1234 + 123.00 + + 1 + USD + + CASH + CASH + + + + + + 20190731C12345 + 20190731 + 20190731 + + + 12345V123 + CUSIP + + 12.1234 + 12.1234 + 123.00 + + 1 + USD + + CASH + CASH + + + + + + 20190715C12345 + 20190715 + 20190715 + + + 12345V123 + CUSIP + + 12.123 + 12.1234 + 123.00 + + 1 + USD + + CASH + CASH + + + + + + 20190628C12345 + 20190628 + 20190628 + + + 12345V123 + CUSIP + + 12.1234 + 12.1234 + 123.00 + + 1 + USD + + CASH + CASH + + + + + + 20190614C12345 + 20190614 + 20190614 + + + 12345V123 + CUSIP + + 12.4321 + 11.4321 + 321.00 + + 1 + USD + + CASH + CASH + + + + + + 20190531C12345 + 20190531 + 20190531 + + + 54321V321 + CUSIP + + 22.333 + 22.4444 + 234.45 + + 1 + USD + + CASH + CASH + + + + + + + + 12345V333 + CUSIP + + CASH + LONG + 333.4444 + 22.4444 + 12345.21 + 20190816000000 + + 1 + USD + + + + + + 12345.12 + + + Your Employer + 123456 + 20170916 + + + 20190101000000 + 20191201000000 + + 12345.12 + 12345.12 + + + 0 + + + + + + + + + + + + + 12345V123 + CUSIP + + NAME OF THE SECURITY INVESTED IN + TICKE + 12.1234 + 20190815000000 + + 1 + USD + + + OTHER + ALLOCATION FUNDS + + + + \ No newline at end of file diff --git a/QFXparser/QFXparser.csproj b/QFXparser/QFXparser.csproj index 6de65ec..70b3700 100644 --- a/QFXparser/QFXparser.csproj +++ b/QFXparser/QFXparser.csproj @@ -13,7 +13,7 @@ https://github.com/eramella/QFXparser Github qfx, financial, parser, quickbooks, dotnet, netstandard2, qbo - 1.2.1 + 1.3.0 See Changelog: https://github.com/eramella/QFXparser/blob/master/CHANGELOG.md en-US diff --git a/README.md b/README.md index 057dad6..be7cc0d 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,8 @@ The returned objects are: public class Statement { public string AccountNum { get; set; } - public ICollection Transactions { get; set; } = new List(); + public ICollection Transactions { get; set; } + public LedgerBalance LedgerBalance { get; set; } } ``` @@ -37,8 +38,20 @@ public class Transaction } ``` +**Ledger Balance** +```CSharp +public class LedgerBalance +{ + public decimal Amount { get; set; } + + public DateTime AsOf { get; set; } +} +``` + ### Transaction Dates In case the financial institution is not including the timezone with the transaction date, we assume it is UTC. -Please let me know if any issues and if you like give a star. \ No newline at end of file +Please let me know if any issues and if you like give a star. + +Thanks to @DashNY for adding Ledger Balance and testing! \ No newline at end of file