finance::quotehist::yahoo
by Christopher J. Crane other posts by this author
Aug 30 2001 2:26AM messages near this date
view in the new Beta List Site
Finance::QuoteHist::Yahoo
|
Re: finance::quotehist::yahoo
I am trying to get the Finance::QuoteHist::Yahoo module to work to no avail=
.=0D
I get the following errors:=0D
<!--------=0D
ERROR: Date::Manip unable to determine TimeZone.=0D
Date::Manip::Date_TimeZone called at C:/Perl/site/lib/Date/Manip.pm line=
=0D
628=0D
Date::Manip::Date_Init() called at C:/Perl/site/lib/Date/Manip.pm line 135=
0=0D
Date::Manip::ParseDate('01/01/1999') called at=0D
C:/Perl/site/lib/Finance/QuoteHist/Generic.pm line 47=0D
Finance::QuoteHist::Generic::new('Finance::QuoteHist::Generic', undef,=0D
undef, 'symbols', 'ARRAY(0x176f0c4)', 'reverse', 1, 'end_date', ...) called=
=0D
at C:/Perl/site/lib/Finance/QuoteHist/Yahoo.pm line 67=0D
Finance::QuoteHist::Yahoo::new('Finance::QuoteHist::Yahoo', 'symbols',=0D
'ARRAY(0x176f0c4)', 'start_date', '01/01/1999', 'end_date', '08/26/2001')=
=0D
called at C:\my documents\wscc\cgi-bin\history.pl line 28=0D
-----------> =0D
=0D
Has any got this to work and more importantly spit out any information that=
=0D
is useful.=0D
Here is the code straight out of the manpage...=0D
use Finance::QuoteHist::Yahoo;=0D
$q =3D new Finance::QuoteHist::Yahoo=0D
(=0D
symbols =3D> [qw(IBM UPS AMZN)],=0D
start_date =3D> '01/01/1999',=0D
end_date =3D> 'today',=0D
);=0D
=0D
=0D
# Adjusted values=0D
foreach $row ($q-> quotes()) {=0D
($symbol, $date, $open, $high, $low, $close, $volume) =3D @$row;=0D
...=0D
}=0D
=0D
=0D
# Non adjusted values=0D
$q-> adjusted(0);=0D
foreach $row ($q-> quotes()) {=0D
($symbol, $date, $open, $high, $low, $close, $volume, $adj_close) =3D=
=0D
@$row;=0D
}=0D
=0D
=0D
# Splits=0D
foreach $row ($q-> splits()) {=0D
($symbol, $date, $post, $pre) =3D @$row;=0D
}=0D
=0D
=0D
# Dividends=0D
foreach $row ($q-> dividends()) {=0D
($symbol, $date, $dividend) =3D @$row;=0D
}=0D
=0D
Attachments:
unknown1
Thread:
Christopher J. Crane
$Bill Luebkert
$Bill Luebkert
|