Giter Club home page Giter Club logo

tsp-price-updaters's Introduction

tsp-price-updaters

Scripts to automate download of current TSP fund prices.

Scripts

  • tspScrape.py gets prices from a given start date for TSP funds, and creates two csv files for import into Quicken. The first file has all prices since the start date, the second file only contains dates after the last date in the first file (i.e., since the last time the script was run). NOTE: this script has NOT been updated to reflect the June 2022 changes to the TSP site, and may not ever be. Switch to Python 3 already.
  • tspScrape3.py is the Python 3 version of tspScrape, for those who live in the now. This script HAS been updated to run with the updated TSP site.
  • set_tsp_prices.py is meant for use with Moneydance. It assumes you've already created securities for any funds you wish to get prices for.

Usage

tspScrape and tspScrape3 are meant to be executed directly from the command line. I haven't set up argument parsing, but there is some control over functionality:

  • Set TSPDIR as an environment variable to control where the files are executed.
  • Edit the fundTag variable to control which funds you download (e.g., by commenting out funds you don't want to track)
  • edit the lastDate variable (currently set to 20100101) to set the default date when you want to begin tracking. Note that if $TSPDIR/tspQuicken.csv already exists, lastDate will automatically be set to the latest date in that file.

Credits

users 'Simbilis' and 'jsprag' created the original versions of these scripts on this Bogleheads forum thread. In fact, @jsprag maintains the original version here.

tsp-price-updaters's People

Contributors

gitblight1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.