Dealing with commodities priced in multiples currencies.

51 views
Skip to first unread message

Timothée GROS

unread,
Jan 4, 2024, 5:13:02 PM1/4/24
to Beancount
Hi, 

I am closing my fourth year of accounting with beancount. The learning curve is steep, but i am loving it.
I use mainly fava as my frontend for beancount.

I am french, and as such, EUR is my main currency.

I have various portfolios of stocks and or crypto monitored in beancount.
For some of these assets, my price sources only provides prices in USD, not in EUR .
As a consequence, in my balance overview, even if i activate the "converted to EUR" setting, i can't have a global total of my portfolio as som of the prices are in USD. 
Is there a way to compute the balance in euro ? technically, it should be possible as there is a price for the commodity in USD, and a USD/EUR price.

Thanks !
Tim

Patrick Ruckstuhl

unread,
Jan 4, 2024, 5:19:16 PM1/4/24
to bean...@googlegroups.com
Hi,

Beancount doesn't automatically apply transitive rates. I created a plugin which does exactly that for the same use case.

https://tariochbctools.readthedocs.io/en/latest/plugins.html#generate-base-ccy-prices

Regards,
Patrick

Timothée GROS

unread,
Jan 5, 2024, 7:40:04 AM1/5/24
to Beancount
Thanks!
I'll give it a try.
Reply all
Reply to author
Forward
0 new messages