Re: Computing investment returns

2015-01-29 Thread Jim Robinson
I did something similar to what other have written about. I wrote a program that leverages ledger to output records that are fairly easy to parse: ledger register -C -B ^assets: and expr 'commodity != "$"' --format '%(format_date(date))|%(display_amount)|%(account)|%(payee)\n' For every transac

Re: Computing investment returns

2015-01-18 Thread Red Street
On Friday, January 16, 2015 at 10:46:17 PM UTC-8, Martin Blais wrote: > > On Fri, Jan 16, 2015 at 11:01 PM, Red Street > wrote: > >> 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

Re: Computing investment returns

2015-01-16 Thread Martin Blais
On Fri, Jan 16, 2015 at 11:01 PM, Red Street wrote: > 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, i

Re: Computing investment returns

2015-01-16 Thread Red Street
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, s

Re: Computing investment returns

2015-01-16 Thread Simon Michael
I think http://hackage.haskell.org/package/hledger-irr is another tool for that ? -- --- 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 ledger-cli+unsubscr...@googlegr

Re: Computing investment returns

2015-01-16 Thread Martin Blais
Here is some code I use: https://bitbucket.org/blais/beancount/src/tip/src/python/beancount/projects/returns.py?at=default Incomplete documentation (but you get the idea): https://docs.google.com/document/d/1vEFB44-HFqydYVJXA-QxT4AN0K5xHHfSkhTmRSCPkac/edit#heading=h.74ct9toigxjp Run it in verbose

Computing investment returns

2015-01-16 Thread Red Street
Hi all, I'm trying to figure out how I can compute investment returns for a given period using ledger. By "investment returns," I mean the usual. I think this page calls it "Investor return": http://www.bogleheads.org/wiki/Calculating_personal_returns I was thinking there would be a bunch of o