Finance::Quote::TSP - Obtain fund prices for US Federal Government Thrift Savings Plan
| Use Case | Command | Description |
|---|---|---|
| π Get Common Stock Index Fund (C) | %info = Finance::Quote->fetch("tsp","c"); | Fetches latest price of the C fund |
| π Get L2040 Lifecycle Fund | %info = Finance::Quote->fetch("tsp","l2040"); | Fetches latest price of the L2040 fund |
| π° Get L Income Lifecycle Fund | %info = Finance::Quote->fetch("tsp","lincome"); | Fetches latest price of the L Income fund |
| π Available symbols | C, F, G, I, S, LX | See DESCRIPTION for full list |
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
This module fetches fund information from the "Thrift Savings Plan"
The quote symbols are:
C β common stock fundF β fixed income fundG β government securities fundI β international stock fundS β small cap stock fundLX β lifecycle fund X (eg 2050 or INCOME)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 URLThrift Savings Plan, http://www.tsp.gov
Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-27 17:47 @216.73.216.199
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format