Skip to content

Commit

Permalink
- Updated changelog and readme for version 1.3
Browse files Browse the repository at this point in the history
- Added new .qfx file for future development
  • Loading branch information
eramella committed Sep 8, 2019
1 parent d58f67c commit 3aac854
Show file tree
Hide file tree
Showing 4 changed files with 266 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
247 changes: 247 additions & 0 deletions QFXparser.Testing/InvestData.qfx
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
OFXHEADER:100
DATA:OFXSGML
VERSION:102
SECURITY:NONE
ENCODING:USASCII
CHARSET:1252
COMPRESSION:NONE
OLDFILEUID:NONE
NEWFILEUID:NONE

<OFX>
<SIGNONMSGSRSV1>
<SONRS>
<STATUS>
<CODE>0</CODE>
<SEVERITY>INFO</SEVERITY>
<MESSAGE>SUCESSFULLY DOWNLOADED THE INFORMATION</MESSAGE>
</STATUS>
<DTSERVER>20190816000000</DTSERVER>
<LANGUAGE>ENG</LANGUAGE>
<DTPROFUP>20190816000000</DTPROFUP>
<DTACCTUP>20190816000000</DTACCTUP>
<FI>
<ORG>A Financial Institution of your Choice</ORG>
<FID>12345</FID>
</FI>
<INTU.BID>12345</INTU.BID>
</SONRS>
</SIGNONMSGSRSV1>
<INVSTMTMSGSRSV1>
<INVSTMTTRNRS>
<TRNUID>0</TRNUID>
<STATUS>
<CODE>0</CODE>
<SEVERITY>INFO</SEVERITY>
<MESSAGE>SUCESSFULLY DOWNLOADED THE INFORMATION</MESSAGE>
</STATUS>
<INVSTMTRS>
<DTASOF>20190816000000</DTASOF>
<CURDEF>USD</CURDEF>
<INVACCTFROM>
<BROKERID>invest.yourbank.com</BROKERID>
<ACCTID>1234567890123456789</ACCTID>
</INVACCTFROM>
<INVTRANLIST>
<DTSTART>20190516000000</DTSTART>
<DTEND>20190816000000</DTEND>
<BUYOTHER>
<INVBUY>
<INVTRAN>
<FITID>20190815C12345</FITID>
<DTTRADE>20190815</DTTRADE>
<DTSETTLE>20190815</DTSETTLE>
</INVTRAN>
<SECID>
<UNIQUEID>12345A123</UNIQUEID>
<UNIQUEIDTYPE>CUSIP</UNIQUEIDTYPE>
</SECID>
<UNITS>12.1234</UNITS>
<UNITPRICE>12.1234</UNITPRICE>
<TOTAL>123.00</TOTAL>
<ORIGCURRENCY>
<CURRATE>1</CURRATE>
<CURSYM>USD</CURSYM>
</ORIGCURRENCY>
<SUBACCTSEC>CASH</SUBACCTSEC>
<SUBACCTFUND>CASH</SUBACCTFUND>
</INVBUY>
</BUYOTHER>
<BUYOTHER>
<INVBUY>
<INVTRAN>
<FITID>20190731C12345</FITID>
<DTTRADE>20190731</DTTRADE>
<DTSETTLE>20190731</DTSETTLE>
</INVTRAN>
<SECID>
<UNIQUEID>12345V123</UNIQUEID>
<UNIQUEIDTYPE>CUSIP</UNIQUEIDTYPE>
</SECID>
<UNITS>12.1234</UNITS>
<UNITPRICE>12.1234</UNITPRICE>
<TOTAL>123.00</TOTAL>
<ORIGCURRENCY>
<CURRATE>1</CURRATE>
<CURSYM>USD</CURSYM>
</ORIGCURRENCY>
<SUBACCTSEC>CASH</SUBACCTSEC>
<SUBACCTFUND>CASH</SUBACCTFUND>
</INVBUY>
</BUYOTHER>
<BUYOTHER>
<INVBUY>
<INVTRAN>
<FITID>20190715C12345</FITID>
<DTTRADE>20190715</DTTRADE>
<DTSETTLE>20190715</DTSETTLE>
</INVTRAN>
<SECID>
<UNIQUEID>12345V123</UNIQUEID>
<UNIQUEIDTYPE>CUSIP</UNIQUEIDTYPE>
</SECID>
<UNITS>12.123</UNITS>
<UNITPRICE>12.1234</UNITPRICE>
<TOTAL>123.00</TOTAL>
<ORIGCURRENCY>
<CURRATE>1</CURRATE>
<CURSYM>USD</CURSYM>
</ORIGCURRENCY>
<SUBACCTSEC>CASH</SUBACCTSEC>
<SUBACCTFUND>CASH</SUBACCTFUND>
</INVBUY>
</BUYOTHER>
<BUYOTHER>
<INVBUY>
<INVTRAN>
<FITID>20190628C12345</FITID>
<DTTRADE>20190628</DTTRADE>
<DTSETTLE>20190628</DTSETTLE>
</INVTRAN>
<SECID>
<UNIQUEID>12345V123</UNIQUEID>
<UNIQUEIDTYPE>CUSIP</UNIQUEIDTYPE>
</SECID>
<UNITS>12.1234</UNITS>
<UNITPRICE>12.1234</UNITPRICE>
<TOTAL>123.00</TOTAL>
<ORIGCURRENCY>
<CURRATE>1</CURRATE>
<CURSYM>USD</CURSYM>
</ORIGCURRENCY>
<SUBACCTSEC>CASH</SUBACCTSEC>
<SUBACCTFUND>CASH</SUBACCTFUND>
</INVBUY>
</BUYOTHER>
<BUYOTHER>
<INVBUY>
<INVTRAN>
<FITID>20190614C12345</FITID>
<DTTRADE>20190614</DTTRADE>
<DTSETTLE>20190614</DTSETTLE>
</INVTRAN>
<SECID>
<UNIQUEID>12345V123</UNIQUEID>
<UNIQUEIDTYPE>CUSIP</UNIQUEIDTYPE>
</SECID>
<UNITS>12.4321</UNITS>
<UNITPRICE>11.4321</UNITPRICE>
<TOTAL>321.00</TOTAL>
<ORIGCURRENCY>
<CURRATE>1</CURRATE>
<CURSYM>USD</CURSYM>
</ORIGCURRENCY>
<SUBACCTSEC>CASH</SUBACCTSEC>
<SUBACCTFUND>CASH</SUBACCTFUND>
</INVBUY>
</BUYOTHER>
<BUYOTHER>
<INVBUY>
<INVTRAN>
<FITID>20190531C12345</FITID>
<DTTRADE>20190531</DTTRADE>
<DTSETTLE>20190531</DTSETTLE>
</INVTRAN>
<SECID>
<UNIQUEID>54321V321</UNIQUEID>
<UNIQUEIDTYPE>CUSIP</UNIQUEIDTYPE>
</SECID>
<UNITS>22.333</UNITS>
<UNITPRICE>22.4444</UNITPRICE>
<TOTAL>234.45</TOTAL>
<ORIGCURRENCY>
<CURRATE>1</CURRATE>
<CURSYM>USD</CURSYM>
</ORIGCURRENCY>
<SUBACCTSEC>CASH</SUBACCTSEC>
<SUBACCTFUND>CASH</SUBACCTFUND>
</INVBUY>
</BUYOTHER>
</INVTRANLIST>
<INVPOSLIST>
<POSOTHER>
<INVPOS>
<SECID>
<UNIQUEID>12345V333</UNIQUEID>
<UNIQUEIDTYPE>CUSIP</UNIQUEIDTYPE>
</SECID>
<HELDINACCT>CASH</HELDINACCT>
<POSTYPE>LONG</POSTYPE>
<UNITS>333.4444</UNITS>
<UNITPRICE>22.4444</UNITPRICE>
<MKTVAL>12345.21</MKTVAL>
<DTPRICEASOF>20190816000000</DTPRICEASOF>
<CURRENCY>
<CURRATE>1</CURRATE>
<CURSYM>USD</CURSYM>
</CURRENCY>
</INVPOS>
</POSOTHER>
</INVPOSLIST>
<INV401KBAL>
<TOTAL>12345.12</TOTAL>
</INV401KBAL>
<INV401K>
<EMPLOYERNAME>Your Employer</EMPLOYERNAME>
<PLANID>123456</PLANID>
<PLANJOINDATE>20170916</PLANJOINDATE>
<INV401KSUMMARY>
<YEARTODATE>
<DTSTART>20190101000000</DTSTART>
<DTEND>20191201000000</DTEND>
<CONTRIBUTIONS>
<PRETAX>12345.12</PRETAX>
<TOTAL>12345.12</TOTAL>
</CONTRIBUTIONS>
<WITHDRAWALS>
<TOTAL>0</TOTAL>
</WITHDRAWALS>
</YEARTODATE>
</INV401KSUMMARY>
</INV401K>
</INVSTMTRS>
</INVSTMTTRNRS>
</INVSTMTMSGSRSV1>
<SECLISTMSGSRSV1>
<SECLIST>
<OTHERINFO>
<SECINFO>
<SECID>
<UNIQUEID>12345V123</UNIQUEID>
<UNIQUEIDTYPE>CUSIP</UNIQUEIDTYPE>
</SECID>
<SECNAME>NAME OF THE SECURITY INVESTED IN</SECNAME>
<TICKER>TICKE</TICKER>
<UNITPRICE>12.1234</UNITPRICE>
<DTASOF>20190815000000</DTASOF>
<CURRENCY>
<CURRATE>1</CURRATE>
<CURSYM>USD</CURSYM>
</CURRENCY>
</SECINFO>
<ASSETCLASS>OTHER</ASSETCLASS>
<FIASSETCLASS>ALLOCATION FUNDS</FIASSETCLASS>
</OTHERINFO>
</SECLIST>
</SECLISTMSGSRSV1>
</OFX>
2 changes: 1 addition & 1 deletion QFXparser/QFXparser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<RepositoryUrl>https://github.com/eramella/QFXparser</RepositoryUrl>
<RepositoryType>Github</RepositoryType>
<PackageTags>qfx, financial, parser, quickbooks, dotnet, netstandard2, qbo</PackageTags>
<Version>1.2.1</Version>
<Version>1.3.0</Version>
<PackageReleaseNotes>See Changelog:
https://github.com/eramella/QFXparser/blob/master/CHANGELOG.md</PackageReleaseNotes>
<NeutralLanguage>en-US</NeutralLanguage>
Expand Down
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ The returned objects are:
public class Statement
{
public string AccountNum { get; set; }
public ICollection<Transaction> Transactions { get; set; } = new List<Transaction>();
public ICollection<Transaction> Transactions { get; set; }
public LedgerBalance LedgerBalance { get; set; }
}
```

Expand All @@ -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.
Please let me know if any issues and if you like give a star.

Thanks to @DashNY for adding Ledger Balance and testing!

0 comments on commit 3aac854

Please sign in to comment.