Excellent. Thanks much, Martin, and Simon. Precisely what I was looking 
for. I'm not setup with hledger currently, though I've tried it in the 
past, so I'll start with Martin's solution for now.

Martin: from just looking at the code, it seems like I don't even need to 
run ledger or beancount, since this simply parses the journal file 
directly? Also again, looking at your code, it builds up a pricedb as it 
goes along if one wasn't supplied, but does it end up taking the last known 
value for a stock on the final day of the period under consideration? Can I 
give it a pricedb of just the last day in the period, since in theory, 
that's all is needed?

Question about granularity: if I have n different commodities I bought, is 
it possible to compute the return for each commodity separately? And if I 
have n different investment accounts (say, a retirement account, and a 
non-retirement account), should I run this on these accounts separately if 
I want to know their individual returns?

Thanks much again!

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to