How to filter transactions from an OFX file?

19 views
Skip to first unread message

Yuri de Wit

unread,
Sep 11, 2019, 10:48:00 PM9/11/19
to Beancount
I am using the ofx.Importer to ingest OFX files from my bank. It works great except that my bank adds some transactions such as initial, final and partial balances to the OFX file.

How can I filter these out? A simple bash filtering would do if this was a CSV file, but it is a bit more error prone with OFX.

Martin Blais

unread,
Sep 14, 2019, 11:34:31 PM9/14/19
to Beancount
Clone the OFX importer and hack it to add what you need.
It's only there intended as an example, I have no intention to turn it
into a full-fledged OFX importer that supports the myriad features and
variants of interpretations.

On Wed, Sep 11, 2019 at 10:48 PM Yuri de Wit <yde...@gmail.com> wrote:
>
> I am using the ofx.Importer to ingest OFX files from my bank. It works great except that my bank adds some transactions such as initial, final and partial balances to the OFX file.
>
> How can I filter these out? A simple bash filtering would do if this was a CSV file, but it is a bit more error prone with OFX.
>
> --
> You received this message because you are subscribed to the Google Groups "Beancount" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/d8ae72dc-0194-46eb-afc8-25a2a7ab9223%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages