Finance::QuoteHist::Generic

Finance::QuoteHist::Generic is a base class for retrieving historical stock quotes.
Download

Finance::QuoteHist::Generic Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Matthew P. Sisk
  • Publisher web site:
  • http://search.cpan.org/~stigmata/HTML-CalendarMonthSimple-1.25/CalendarMonthSimple.pm

Finance::QuoteHist::Generic Tags


Finance::QuoteHist::Generic Description

Finance::QuoteHist::Generic is a base class for retrieving historical stock quotes. Finance::QuoteHist::Generic is a base class for retrieving historical stock quotes.SYNOPSIS package Finance::QuoteHist::MyFavoriteSite; use strict; use vars qw(@ISA); use Finance::QuoteHist::Generic; @ISA = qw(Finance::QuoteHist::Generic); sub url_maker { # This method returns a code reference for a routine that, upon # repeated invocation, will provide however many URLs are necessary # to fully obtain the historical data for a given target mode and # parsing mode. }This is the base class for retrieving historical stock quotes. It is built around LWP::UserAgent. Page results are currently parsed as either CSV or HTML tables.In order to actually retrieve historical stock quotes, this class should be subclassed and tailored to a particular web site.In particular, the url_maker() factory method should be overridden, which provides a code reference to a routine that provides however many URLs are necessary to retrieve the data over a list of symbols within the given date range, for a particular target (quotes, dividends, splits). Different sites have different formats and different limitations on how many quotes are returned for each query. See Finance::QuoteHist::Yahoo and Finance::QuoteHist::QuoteMedia for some examples of how to do this.For more complicated sites, such as Yahoo, overriding additonal methods might be necessary for dealing with things such as splits and dividends. Requirements: · Perl


Finance::QuoteHist::Generic Related Software