James Hollingworth’s Adventures in Code

C# OFX Importer

with 4 comments

So i didn’t have much to do yesterday so I wrote an OFX importer. I used Jason’s sharpCash as a starting point but ended up doing my own implementation (always easier to rewrite than to understand someone else’s code!). Its pretty compliant to the main bulk of the OFX specification, although it only supports Credit Card and Bank account types at the moment.

It was written in C# and I have compiled it to a class library, the dll for it is here. Basically because this is for my dissertation, I don’t really know where I stand with releasing the code, I will speak to my project supervisor, worst case scenario I will release it early next year but if anyone wants the source, just email me.

To use it, you simply do:

    OFX ofxFile = new OFX(filePath);

Hope this saves someone a couple of days of trouble!

**Update **

Sorry, hadn’t realized  that the link had expired, I have put it in my university web space hosting which you can get here. Will be releasing the code as soon as possible but may be a month or 2 before thats possible. I have one request to make for anyone using, could you just drop me an email with the names of banks you are using, and if feeling very generous any performance metric’s you happen to have collated. I need to show this component works properly on a range of banks but can only personally get hold of OFX documents for a couple of banks. Any help would be greatly appreciated.

Written by jhollingworth

August 7, 2007 at 3:54 pm

Posted in c#, dissertation, ofx

4 Responses to 'C# OFX Importer'

Subscribe to comments with RSS or TrackBack to 'C# OFX Importer'.

  1. File has been removed from filefactory. Any chance of getting it back?

    BBQNinja

    29 Aug 07 at 12:57 am

  2. I am interested in looking at your library as well but the File Factory link no longer works. Would it be possible for you to post the project again?

    Thanks in advance.

    Chris Whelan

    18 Feb 08 at 1:44 am

  3. [...] unfortunatly no open source OFX parsers for C# so part of my project was to develop one. I have blogged about my development of this component before and after quite a lot of interest, i will be open sourcing [...]

  4. Can I get any source code for the OFX logic? I have to convert csv data into OFX so that Microsoft’s Accounting program will read it!

    I guess that the OFX logic is not hard, but I cannot find any resources for the formats!

    trevor oakley

    28 May 08 at 6:12 am

Leave a Reply