Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Finance::Quote::TSP

Name Finance::Quote::TSP
Version 1.51
Located at /usr/share/perl5
File /usr/share/perl5/Finance/Quote/TSP.pm
Is Core No
Search CPAN for this module Finance::Quote::TSP
Documentation Finance::Quote::TSP
Module Details Finance::Quote::TSP

NAME

Finance::Quote::TSP - Obtain fund prices for US Federal Government Thrift Savings Plan


SYNOPSIS

    use Finance::Quote;
    $q = Finance::Quote->new;
    %info = Finance::Quote->fetch("tsp","c");       #get value of C - Common Stock Index Investment Fund
    %info = Finance::Quote->fetch("tsp","l2040");   #get value of the L2040 Lifecycle Fund
    %info = Finance::Quote->fetch("tsp","lincome"); #get value of the LINCOME Lifecycle Fund


DESCRIPTION

This module fetches fund information from the ``Thrift Savings Plan''

    http://www.tsp.gov

The quote symbols are

    C          common stock fund
    F          fixed income fund
    G          government securities fund
    I          international stock fund
    S          small cap stock fund
    LX         lifecycle fund X (eg 2050 or INCOME)


LABELS RETURNED

The following labels are returned by Finance::Quote::TSP :

    date        latest date, eg. "21/02/10"
    isodate     latest date, eg. "2010-02-21"
    last        latest available price, eg. "16.1053"
    currency    "USD"
    method      "tsp"
    source      TSP URL


SEE ALSO

Thrift Savings Plan, http://www.tsp.gov

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026