logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

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

Name

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

See Also

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

perl v5.40.1                                       2025-05-16                           Finance::Quote::TSP(3pm)

Synopsis

           use Finance::Quote;

           $q = Finance::Quote->new;

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

See Also