Please note that I'm completely new to Beancount so I'd like some opinions and pointers.
What currently happens, briefly:
- Asset Allocation is defined. I.e. Equities:Australian:Large 60%; Fixed:Australian:Government 40%. I'll used this for a simplified example.
- Stock symbols are linked to asset classes.
- Stock/fund amounts are read from the book, combined with the current prices to get the current market value; including multiple currencies;
- The resulting report displays:
Equities:Australian:Large - allocation 60%, current 53.25%, allocated value 6000, current value 5325, diff -675, diff -9.5%
Fixed:Australian:Government - allocation 40%, current 46.75%, allocated value 4000, current value 4675, diff 675, diff 15% (approximate value)
From what I've read, this should be quite possible to get from Beancount. I would like to add the allocation percentages in the commodity declarations as meta tags.
Ideally, this could be a plugin. It could even operate on the balance sheet, rather than depending on individual transactions.
So, since I currently have no idea how to complete this, any pointers are helpful. I assume a good doc to go through would be Beancount Scripting and Plugins.
I've seen the experimental portfolio.py script, as well the asset allocator project. These are on my reference list, to be examined into more details.
I understand conceptually what needs to be done but what I don't know at the moment is where to put the plugin script and how to read the holdings data under "Assets:Investments", for example.
I noticed that a few people are doing this so I'm wondering if there are more working examples out there.