1Finance::Quote::TSP(3)User Contributed Perl DocumentationFinance::Quote::TSP(3)
2
3
4

NAME

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

SYNOPSIS

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

DESCRIPTION

19       This module fetches fund information from the "Thrift Savings Plan"
20
21           http://www.tsp.gov
22
23       The quote symbols are
24
25           C          common stock fund
26           F          fixed income fund
27           G          government securities fund
28           I          international stock fund
29           S          small cap stock fund
30           LX         lifecycle fund X (eg 2050 or INCOME)
31

LABELS RETURNED

33       The following labels are returned by Finance::Quote::TSP :
34
35           date        latest date, eg. "21/02/10"
36           isodate     latest date, eg. "2010-02-21"
37           last        latest available price, eg. "16.1053"
38           currency    "USD"
39           method      "tsp"
40           source      TSP URL
41

SEE ALSO

43       Thrift Savings Plan, http://www.tsp.gov
44
45
46
47perl v5.34.0                      2021-11-10            Finance::Quote::TSP(3)
Impressum