You can either write a custom script and just print out to stdout, or use the ingest framework.
Here's an example of a custom standalone script that converts from Ameritrade: https://github.com/blais/ameritrade/blob/master/examples/ameritrade2beancount.py The ingest library only provides a framework to help you automate some of the process of automatically identifying the files in your downloads directory, run the extraction of transactions (that you write) and file away the downloads. You don't necessarily have to use it. http://furius.ca/beancount/doc/ingest Hope this helps, On Fri, Oct 9, 2020 at 7:32 AM Sam Bragg <[email protected]> wrote: > Hi all, > > I'm completely new to beancount, but I want to use it to manage my > trading/investing activities. I have already written a library to download > transactions from my broker's API, which returns a list of dicts. > > I have looked at the beancount documentation and I can't even seem to get > started. Many of the example importers given, assume that one has a file > which they wish to import, which in my particular case is not relevant(?). > > Here's the process as I envision it: > > 1. Get a given date's transactions from my broker, using the library I > made > 2. Implement some logic to classify each transaction > (Account:[fees/PnL] etc.) > 3. Append the new transactions as directives in my beancount file > > All I am really seeking to know at the moment is how I would even get > started. Looking at beancount.ingest.importer - it needs a FileMemo > instance, but in this case I won't be reading from a file - this is where > most of my confusion is coming from. > > Truly grateful for any response received. Thank you so much for producing > this awesome software! > > Sam > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/beancount/c38aefcb-0af3-4591-9905-b5f8fcc79fcan%40googlegroups.com > <https://groups.google.com/d/msgid/beancount/c38aefcb-0af3-4591-9905-b5f8fcc79fcan%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhNxbvNNaWq4Y2NrNSQJCO62%3DzN5eRSCZLYv1RbQw%3DTYrw%40mail.gmail.com.
