account_unrealized_gains, account_current_conversions'

176 views
Skip to first unread message

Chary Chary

unread,
Apr 8, 2024, 4:39:27 PM4/8/24
to Beancount
Martin,

I am working on unrealized gains analysis in beancount  (probably somehow similar to what you have in v2, but the one which works also in the situation, where nothing is booked at cost). In fact I only tested this so far for the situations of booking without the cost

The goal is that you can exactly see by using beanquery P&L-like query where the change in your net worth between 2 different periods comes from (even in case you move your assets between different currencies, whilst currency prices change).

I have it working for my purposes now, but I will try to bring it to the state, where it can be made publicly available.

I noticed, that in v3 you have the following options in beancount:

'account_current_earnings': 'Earnings:Current', 'account_current_conversions': 'Conversions:Current', 'account_unrealized_gains': 'Earnings:Unrealized',


So, my questions are:

  • what are these accounts?
  • Are you planning to expand the current 5 accounts (Assets, Liabilities, Income, Expenses, Equity) also with Earnings and Conversions?
  • If yes, What is the thinking behind this?
  • What is the thinking behind booking unrealized gains to 'Earnings:Unrealized', rather than Income: Unrealized












 

Chary Chary

unread,
Apr 14, 2024, 6:38:32 AM4/14/24
to Beancount
Martin,

sorry, did you manage to have a loot at my question?

Martin Blais

unread,
Apr 14, 2024, 11:30:14 AM4/14/24
to bean...@googlegroups.com
These were defined to absorb amounts produced by summarizations described in 


--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/c7865897-63a2-4cca-9ad0-f0838696fd59n%40googlegroups.com.

Chary Chary

unread,
Apr 15, 2024, 3:20:04 PM4/15/24
to Beancount
Martin,

thanks. 

  • Is my understanding correct, that you   you are planning to expand the current 5 accounts (Assets, Liabilities, Income, Expenses, Equity) also with Earnings and Conversions?

  • Also, when you capture this information in options ('account_current_conversions', 'account_unrealized_gains'), who are the intended consumers of this information? At the moment beanquery seems to be the only consumer of the load_entries (as reports are being phased out in v3)
So, does beanquery do something useful with these options? Will these options influence any queries? 

Martin Blais

unread,
Apr 19, 2024, 10:09:04 PM4/19/24
to bean...@googlegroups.com
On Mon, Apr 15, 2024 at 3:20 PM Chary Chary <char...@gmail.com> wrote:
Martin,

thanks. 

  • Is my understanding correct, that you   you are planning to expand the current 5 accounts (Assets, Liabilities, Income, Expenses, Equity) also with Earnings and Conversions?
I'm planning nothing at this point, I'm so busy I can't even get to my email during the week
 
  • Also, when you capture this information in options ('account_current_conversions', 'account_unrealized_gains'), who are the intended consumers of this information? At the moment beanquery seems to be the only consumer of the load_entries (as reports are being phased out in v3)
So, does beanquery do something useful with these options? Will these options influence any queries? 

I just grepped the source, indeed since I deleted a bunch of code in v3 these options aren't used, they need to be deleted



 

Chary Chary

unread,
Apr 20, 2024, 7:09:04 PM4/20/24
to Beancount
On Saturday, April 20, 2024 at 4:09:04 AM UTC+2 bl...@furius.ca wrote:
On Mon, Apr 15, 2024 at 3:20 PM Chary Chary <char...@gmail.com> wrote:

I'm planning nothing at this point, I'm so busy I can't even get to my email during the week
 

Martin,


The work you have done so far on the beancount v2 code and documentation is so thorough and high quality, that you shall be able to pause beancount until better times.

(I internally at my work point people to the beancount documentation, when I have to give example of how a proper documentation shall look like)


 
  • Also, when you capture this information in options ('account_current_conversions', 'account_unrealized_gains'), who are the intended consumers of this information? At the moment beanquery seems to be the only consumer of the load_entries (as reports are being phased out in v3)
So, does beanquery do something useful with these options? Will these options influence any queries? 

I just grepped the source, indeed since I deleted a bunch of code in v3 these options aren't used, they need to be deleted


Ok, thanks

Reply all
Reply to author
Forward
0 new messages