Hi there, thanks very much for taking the time to reply.

I hadn't seen that example, it seems to be along the lines of what I'm 
trying to do, so I'll see how far I can get.

Have a great weekend,

Sam

On Friday, 9 October 2020 at 20:06:59 UTC+2 [email protected] wrote:

> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/dabae1a2-8969-4fa1-8364-b12a3c5c4dfdn%40googlegroups.com.

Reply via email to