Thrift Savings Plan (TSP)

class pandas_datareader.tsp.TSPReader(symbols=('Linc', 'L2020', 'L2030', 'L2040', 'L2050', 'G', 'F', 'C', 'S', 'I'), start=None, end=None, retry_count=3, pause=0.001, session=None)

Returns DataFrame of historical TSP fund prices from symbols, over date range, start to end.

Parameters:
  • symbols (str, array-like object (list, tuple, Series), or DataFrame) – Single stock symbol (ticker), array-like object of symbols or DataFrame with index containing stock symbols.
  • start (str, (defaults to '1/1/2010')) – Starting date, timestamp. Parses many different kind of date representations (e.g., ‘JAN-01-2010’, ‘1/1/10’, ‘Jan, 1, 1980’)
  • end (str, (defaults to today)) – Ending date, timestamp. Same format as starting date.
  • retry_count (int, default 3) – Number of times to retry query request.
  • pause (int, default 0) – Time, in seconds, to pause between consecutive queries of chunks. If single value given for symbol, represents the pause between retries.
  • session (Session, default None) – requests.sessions.Session instance to be used
close()

Close network session

params

Parameters to use in API calls

read()

read one data from specified URL

url

API URL