This library is a port from the original OFXParser to .NET Standard.
OFXParser is a library to parse OFX Files into plain C# objects, with some small changed done to handle OFX Files used by Brazilian banks, that don't strict follow the OFX pattern.
If you have any request, please feel free to open an issue or start a discussion.
OfxDocument ofx = OfxDocumentReader.FromSgmlFile( filePath: @"c:\ofxdoc.ofx" );
OfxStatementResponse statement = ofx.Statements.First();
This will give you an object of type OfxStatementResponse
, with the following properties:
public class OfxStatementResponse
{
public OfxStatus ResponseStatus { get; }
public String DefaultCurrency { get; }
public Account AccountFrom { get; }
public DateTimeOffset TransactionsStart { get; }
public DateTimeOffset TransactionsEnd { get; }
public List<Transaction> Transactions { get; }
public Balance LedgerBalance { get; }
public Balance AvailableBalance { get; }
}
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
Please review the Code of conduct for more details.
This code has quite a history of forks and multiple mainainters releasing it over time!
- James Hollingworth is the originator. https://github.com/jhollingworth/OFXSharp
- Antonio Milesi Bastos released the most popular package on NuGet in 2014. https://www.nuget.org/packages/OFXSharp/
- Keven Carneiro brought it over to NET Standard, making it look closer to the current form, in 2017. He released the most recent NuGet in 2018 https://www.nuget.org/packages/OfxSharp.NetStandard/
- Dai Rees made a lot of fundamental improvements and cleanups. Unfortunately does not seem to have released to NuGet.
- James Coliz cleaned up and brought current Dai's work, then released to NuGet Gallery.