beancounter -- BeanCounter portfolio performance toolkit
http://dirk.eddelbuettel.com/code/beancounter.html
Ever wondered what happened to your portfolio on a day the market moved
500 points? Ever wondered what your portfolio returned over the last
(odd and arbitrary) period? Ever wondered what the Value-at-Risk (VaR)
was? Ever wondered what the marginal risk contribution of a given stock
in your portfolio was? Ever wondered if you could easily database the
(public) prices info for further analysis? Ever wondered if there was
a simple cron job to report all this on a daily basis?
BeanCounter does all this, and provides an easy-to-use command-line tool
as well as a Perl module that can be used with other pursuits. It stores
its data (price, volume, earnings --- whatever Yahoo! supplies) in a
PostgreSQL (SQLite, MySql) relational database system. BeanCounter works
with equities from exchanges in the US, Canada, Europe and Asia. Options,
foreign exchange rates, some commodities as well as US mutual funds are
also supported as the data is provided by Yahoo!