In fact for me for all tests to run, I had to replace *transactions.RunDispatch(txn) <https://github.com/blais/ameritrade/blob/1b5ddae18ba3abbff19a9538e2e4f1cab3fed84a/examples/ameritrade2beancount_test.py#L32>* ==> ameritrade2beancount <https://github.com/blais/ameritrade/blob/master/examples/ameritrade2beancount.py> .*RunDispatch(txn) <https://github.com/blais/ameritrade/blob/1b5ddae18ba3abbff19a9538e2e4f1cab3fed84a/examples/ameritrade2beancount_test.py#L32>*
On Sunday, October 11, 2020 at 12:24:12 AM UTC+2 Chary Chary wrote: > Martin, > > sorry if this is a stupid question, but what is this *transactions *module, > which you import here > <https://github.com/blais/ameritrade/blob/1b5ddae18ba3abbff19a9538e2e4f1cab3fed84a/examples/ameritrade2beancount_test.py#L8> > ? > > and then you use *transactions.RunDispatch(txn) > <https://github.com/blais/ameritrade/blob/1b5ddae18ba3abbff19a9538e2e4f1cab3fed84a/examples/ameritrade2beancount_test.py#L32> > *, > however RunDispatch is defined in ameritrade2beancount > <https://github.com/blais/ameritrade/blob/master/examples/ameritrade2beancount.py> > > > > On Saturday, October 10, 2020 at 3:23:56 AM UTC+2 [email protected] wrote: > >> 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/972ca3dc-5b22-4cf7-8673-5468b57333aan%40googlegroups.com.
