HI Ledgerites,

I have written a parser for Open Financial Exchange (OFX) data. It also
works on QFX data (that's OFX data with some minor additions by Intuit, the
makers of Quicken.)

Many financial institutions offer OFX or QFX data for download, so this can
be a very helpful tool. The library should parse any OFX file. It also has
some tools to make working with the data easier, though these tools are
biased toward bank and credit card accounts.

The library is in Haskell. I wrote it to work with Penny:

http://massysett.github.io/penny/

but the library is very general so many might find it useful. For example,
if you are a Ledger or hledger user and you know a little Haskell, it would
be comparatively easy to write some code to parse an OFX file and output
appropriate text to append to your ledger file. Penny has some interesting
tools aimed at making it easy to import and reconcile transactions imported
from files; in particular, it can "guess" appropriate account and payee
information from previous transactions, as well as eliminate duplicates.
The way Penny does it is described in this manpage:

http://massysett.github.io/penny/man/penny-fit.1.html

I expect there might be glitches with the library especially as it is
tested with other OFX files (I wrote it with extensive reference to the
spec, but I have already seen some ways that real files do not conform to
the spec and I expect there are other deviations out there.) So if you find
any bugs, let me know through email or through Github.

So, here is the library on Hackage:

http://hackage.haskell.org/package/ofx-0.2.0.0

and on Github:

https://github.com/massysett/ofx

The code is BSD licensed, so use it liberally.

Omari

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to