You have the steps right. I'm trying to understand where you are stuck. You 
would simply write a new importer that didn't read from a file, but instead 
called your library, and converted the list of dicts into transactions. 
Have you looked at:
./examples/ingest/office/importers/utrade/utrade_csv.py
and
https://beancount.github.io/docs/importing_external_data.html#writing-an-importer
 
?

On Friday, October 9, 2020 at 4:32:39 AM UTC-7, Sam Bragg 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 beancount+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/9615e5c0-6694-42d4-8886-0f7a9e096246o%40googlegroups.com.

Reply via email to