NAME
LBMA::Statistics::GoldFixing::Daily - Daily Prices Gold Fixings London Bullion Market (Internal only)
DESCRIPTION
Does the hard work.
SYNOPSIS
This modul is for internal use only. There's no need to use it directly.
Everthing is done by LBMA::Statistics (See http://search.cpan.org/perldoc?LBMA::Statistics).
new - Constructor
use strict;
use warnings;
use LBMA::Statistics::GoldFixing::Daily;
my $lbma = LBMA::Statistics::GoldFixing::Daily->new(
year => $year,
day_pattern => $day_pattern
) or die $!;
_init
private method to initialize the object
year
returns the year to look for
day_pattern
returns the day_pattern to look for
dailystatsurl
determines url for daily goldstats
retrieve_row_am
Just the A.M. Gold Fixing Data
retrieve_row
Returns an array of fixings.
The number and order of elements varies depending on the year data is retrieved. There is no EUR befor 1999.
# @fixings 1999 --
# 0 date (DD-MMM-YY)
# 1 GOLD A.M. USD
# 2 GOLD A.M. GBP
# 3 GOLD A.M. EUR
# 4 GOLD P.M. USD
# 5 GOLD P.M. GBP
# 6 GOLD P.M. EUR
# @fixings 1968 -- 1998
# 0 date (DD-MMM-YY)
# 1 GOLD A.M. USD
# 2 GOLD A.M. GBP
# 3 GOLD P.M. USD
# 4 GOLD P.M. GBP
In scalar context a reference to an array is returned.
Returns undef or empty list if data can't be retrieved e.g. dates without fixing like holydays.
_parse
parses the content of the retrieved HTML page
AUTHOR
Thomas Fahle, <cpan at thomas-fahle.de>
BUGS
Please report any bugs or feature requests to bug-lbma-statistics at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=LBMA-Statistics. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
COPYRIGHT & LICENSE
Copyright 2009, 2010, 2012, 2014 Thomas Fahle
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.