.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "Finance::QuoteHist::Google 3pm" .TH Finance::QuoteHist::Google 3pm "2017-12-15" "perl v5.26.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Finance::QuoteHist::Google \- Site\-specific class for retrieving historical stock quotes. .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 7 \& use Finance::QuoteHist::Google; \& $q = Finance::QuoteHist::Google\->new \& ( \& symbols => [qw(IBM UPS AMZN)], \& start_date => \*(Aq01/01/1999\*(Aq, \& end_date => \*(Aqtoday\*(Aq, \& ); \& \& foreach $row ($q\->quotes()) { \& ($symbol, $date, $open, $high, $low, $close, $volume) = @$row; \& ... \& } .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" Finance::QuoteHist::Google is a subclass of Finance::QuoteHist::Generic, specifically tailored to read historical quotes from the Google web site (\fIhttp://finance.google.com/\fR). .PP Google does not currently provide information on dividends or splits. .PP Please see \fIFinance::QuoteHist::Generic\fR\|(3) for more details on usage and available methods. If you just want to get historical quotes and are not interested in the details of how it is done, check out \&\fIFinance::QuoteHist\fR\|(3). .SH "METHODS" .IX Header "METHODS" The basic user interface consists of a single method, as shown in the example above. That method is: .IP "\fIquotes()\fR" 4 .IX Item "quotes()" Returns a list of rows (or a reference to an array containing those rows, if in scalar context). Each row contains the \fBSymbol\fR, \fBDate\fR, \&\fBOpen\fR, \fBHigh\fR, \fBLow\fR, \fBClose\fR, and \fBVolume\fR for that date. Quote values are pre-adjusted for this site. .SH "REQUIRES" .IX Header "REQUIRES" Finance::QuoteHist::Generic .SH "DISCLAIMER" .IX Header "DISCLAIMER" The data returned from these modules is in no way guaranteed, nor are the developers responsible in any way for how this data (or lack thereof) is used. The interface is based on URLs and page layouts that might change at any time. Even though these modules are designed to be adaptive under these circumstances, they will at some point probably be unable to retrieve data unless fixed or provided with new parameters. Furthermore, the data from these web sites is usually not even guaranteed by the web sites themselves, and oftentimes is acquired elsewhere. .PP Details for Googles's terms of use can be found here: .PP .Vb 1 \& http://www.google.com/accounts/TOS?loc=us .Ve .PP If you still have concerns, then use another site-specific historical quote instance, or none at all. .PP Above all, play nice. .SH "AUTHOR" .IX Header "AUTHOR" Matthew P. Sisk, <\fIsisk@mojotoad.com\fR> .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright (c) 2007\-2017 Matthew P. Sisk. All rights reserved. All wrongs revenged. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fIFinance::QuoteHist::Generic\fR\|(3), \fIFinance::QuoteHist\fR\|(3), \fIperl\fR\|(1).