elaske / tsp-data Goto Github PK
View Code? Open in Web Editor NEW[WIP] Just some scripts that help with gathering and projecting data for the Thrift Savings Plan.
License: GNU General Public License v3.0
[WIP] Just some scripts that help with gathering and projecting data for the Thrift Savings Plan.
License: GNU General Public License v3.0
Should this really be stored in the repository? It might be a good baseline to include with each revision so that less data has to be downloaded on everyone's end. However, it's not really that useful...
The only way to really get all of the historical data from your TSP account is to download the PDFs. On the website, it is only possible to get the data from the last statement.
There are two versions of the TSP statements that have been used. This is the current version.
Currently, it always looks at the current page to check for new data. It shouldn't check if it doesn't expect there to be new data from what it's already loaded.
This means that if it's already got data for today in the dictionary, don't look.
If it doesn't have data for today:
Sort the data in at least the output files. A change over to an OrderedDict might be warranted:
http://stackoverflow.com/questions/18871217/python-how-to-custom-sort-a-list-of-dict-to-use-in-json-dumps
In order to organize the data from the TSP statements, we should create some classes that will also be used in analysis. These might be based on the mufund repository's classes / representation.
It seems that there is a new way to retrieve data from the TSP share price history site in that it allows you to request a CSV by dates. We should be able to retrieve all of the data as one download instead of having to scrape their site.
Complete the appending of new data that is found from the TSP site.
On 12/26/14, the share price history page only showed 11/18 to 12/24, or 26 lines. This means that the logic that is checking when to terminate the retrieval of new data is fooled: it's looking for 30 items.
We should really compare the date information to what is already in the data structure.
The only way to really get all of the historical data from your TSP account is to download the PDFs. On the website, it is only possible to get the data from the last statement.
There are two versions of the TSP statements that have been used. This is the current version.
The most obvious thing is what is going to be faster. The CSV will have gains in not having to parse as much, but the HTML version might get posted back to us quicker (less server processing time?).
Need to measure this to be sure which is the best option. This will become the default option. The other will stay in the code as a user option.
Once the data is available locally, the next step will be to wrap this into a class that packages this functionality so that it takes care of it itself without management from an external script. This will allow another script to easily use this data, and essentially query it as needed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.