As mentioned earlier, my importer has no pretension of being exhaustive or compliant with "the standard." It's a piece of code I've used over the years that has evolved and served me well, however. Importers are generally rather unsavory code, to be honest. As long as they work on the subset of input they tend to see for one's account, everyone's happy, they do their job.
Given your position in having worked with OFX, I'd reuse your library if I were you. If you want, you could even provide a good clean example of importing all possible OFX type of inputs, I think some people on the list might find a comprehensive importer useful. Thanks Christopher, On Thu, Jan 5, 2017 at 1:27 PM, Christopher Singley <[email protected]> wrote: > beancount.ingest.importers.ofx doesn't handle INVSTMTRS at all, does it? > Just STMTRS and CCSTMTRS. > > What I need is an importer that translates OFX INVSTMTRS to beancount > transaction entries. If lot inception dates have been decoupled from > transaction dates, I should probably be able to write one without too much > trouble using my OFX parser. > > Thanks for the links to the discussion docs. > > On Thursday, 5 January 2017 11:20:23 UTC-6, Jason Chu wrote: >> >> An OFX parser already exists as part of beancount.ingest ( >> https://bitbucket.org/blais/beancount/src/397e821a48c5db270 >> 0a8a66868c5d4e68ca19bfb/src/python/beancount/ingest/importers/ofx.py). >> >> The original design for importing into beancount is the LegerHub doc ( >> https://docs.google.com/document/d/11u1sWv7H7Ykbc7ayS4M9V3y >> KqcuTY7LJ3n1tgnEN2Hk/edit#) and the subsequent postmortem and >> explanation for the beancount ingest is here ( >> https://docs.google.com/document/d/1Bln8Zo11Cvez2rdEgpnM-oB >> HC1B6uPC18Qm7ulobolM/edit). >> >> I get the feeling with the new booking branch that the lot opening date >> problem has been solved, but I'm sure Martin can explain it better than I >> can. >> >> On Thu, Jan 5, 2017 at 9:09 AM Christopher Singley <[email protected]> >> wrote: >> >>> Hi, I'm writing some accounting applications in Python, and thereby >>> stumbled upon beancount. >>> >>> It occurs to me that you might be interested in my OFX parser: >>> >>> https://github.com/csingley/ofxtools >>> >>> It handles a pretty decent subset of the OFX spec, it handles OFX >>> versions 1 & 2, and it has no dependencies beyond stdlib. >>> >>> I'm investigating using beancount as an accounting >>> engine...human-readable text files are great. >>> >>> The main focus of my present work is booking investment transactions >>> from data downloads, and from reading your document "Trading with >>> Beancount" I'm wondering if it's a good fit. >>> >>> Have you ever solved the problem of preserving lot opening dates through >>> various reorganizations (splits, mergers, spinoffs, basis reductions, >>> etc.)? In general, assets can be booked in with an opening date different >>> than the transaction date, and it doesn't appear that beancount handles >>> that. >>> >>> Thanks, >>> Chris >>> >>> -- >>> 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 [email protected]. >>> To post to this group, send email to [email protected]. >>> To view this discussion on the web visit https://groups.google.com/d/ms >>> gid/beancount/af40974c-cd6f-4155-a4ea-5d533d4f47b2%40googlegroups.com >>> <https://groups.google.com/d/msgid/beancount/af40974c-cd6f-4155-a4ea-5d533d4f47b2%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > 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 [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/beancount/9fbd62cb-f1a8-49a9-8ac5-1f7ed8959f27%40googlegroups.com > <https://groups.google.com/d/msgid/beancount/9fbd62cb-f1a8-49a9-8ac5-1f7ed8959f27%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhMiur803FZbK6UK2NpYNC6qtUbxUA-3wSaqs%3D96aV0n6w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
