Finance::Quote::MLC - MLC fund prices
use Finance::Quote; my $fq = Finance::Quote->new ('MLC'); my $fund = 'MLC MasterKey Horizon 1 - Bond Portfolio'; my $product = 'MasterKey Allocated Pension (Five Star)'; my %quotes = $fq->fetch('mlc', "$fund,$product");
This module downloads MLC fund quotes from
http://www.mlc.com.au
under
https://www.mlc.com.au/masterkeyWeb/execute/FramesetUnitPrices
As of June 2009 the web site terms of use,
http://www.mlc.com.au/mlc/im_considering_mlc/personal/footer_tools/advice_warning_and_disclaimer
are for general information only, and only provided for residents of Australia. It's your responsibility to ensure your use of this module complies with current and future terms.
The symbols used are the fund name and product name with a comma, for example
MLC Horizon 1 - Bond Portfolio,MasterKey Allocated Pension (Five Star)
This is a lot to type, but you can usually cut and paste it from the web pages. The page source in the link above has them in this form.
The fund part is the actual investment, but there isn't a single price quote for it, rater the price varies with the product due to different fees etc subtracted in the different products.
The following standard F-Q fields are available
date isodate name currency last close method source success errormsg
Plus the following extras
copyright_url
As of June 2009, prices are published some time in the afternoon of the following business day (Friday's prices some time Monday afternoon). So the date field is always yesterday or the day before yesterday. The currency is always "AUD" Australian dollars.
Finance::Quote, LWP
MLC web site http://www.mlc.com.au
http://user42.tuxfamily.org/finance-quote-grab/index.html
Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010 Kevin Ryde
Finance-Quote-Grab is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
Finance-Quote-Grab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Finance-Quote-Grab; see the file COPYING. If not, see <http://www.gnu.org/licenses/>.
To install Finance::Quote::MLC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::Quote::MLC
CPAN shell
perl -MCPAN -e shell install Finance::Quote::MLC
For more information on module installation, please visit the detailed CPAN module installation guide.