Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Perl Modules

    Finance::QuoteOptions 0.14

    Download button

    No screenshots available
    Downloads: 398  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.2/5)
    13 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Kirk Bocek | More programs
    Perl Artistic License / FREE
    March 4th, 2008, 16:22 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Finance::QuoteOptions description

    Finance::QuoteOptions is a Perl extension for retrieving options pricing and series information from the web.

    Finance::QuoteOptions is a Perl extension for retrieving options pricing and series information from the web.

    SYNOPSIS

    use Finance::QuoteOptions;
    my $q=Finance::QuoteOptions->new('DIA');
    die 'Retrieve Failed' unless $q->retrieve;

    #Expiration dates in ISO format (YYYYMMDD)
    my @expirations = @{$q->expirations};

    #Calls/Puts for next expiration, sorted by strike price
    my @calls = @{$q->calls(0)};
    my @puts = @{$q->puts(0)};

    #Data from an individual option
    my $strike = ${$q->option('XYZAB')}{strike};
    my $symbol = ${$q->option('XYZAB')}{symbol};
    my $bid = ${$q->option('XYZAB')}{bid};
    my $ask = ${$q->option('XYZAB')}{ask};

    A 'screen-scraper' utility using WWW::Mechanize and HTML::TokeParser to retrieve and parse options information from either Yahoo Finance or the Chicago Board Options Exchange (CBOE) web site. The CBOE probably has better data but Yahoo is much faster. By default, Yahoo Finance is used as the source.

    The Yahoo address used, using DIA as an example, is: http://finance.yahoo.com/q/op?s=DIA

    The CBOE address used is: http://www.cboe.com/DelayedQuote/QuoteTable.aspx

    CBOE Blacklist Warning

    The CBOE site has two interfaces for retrieving option information: a page where you can download a CSV file and a web page that displays an HTML table. While the CSV file would be so simple to process, there's a big warning not to do any kind of automated retrieval of that information. So I wrote this module to use the web page.

    Unfortunately, although I could find no such warning on the web portion of the CBOE site, you will still get blacklisted using the web portion. After a couple of weeks of using this code and tens of thousands of queries, I got blacklisted.

    So if you're doing many queries, use Yahoo has your source. Yahoo is much faster anyway.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    pricing options | series information | Perl module | finance | pricing | quote



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM