Viewmyportfolio - A simple way to check stock portfolio performance in Python
viewmyportfolioThis python script reads stock portfolio from a data file, and gets the information from Yahoo! Finance, and displays the performance on the console. IntroductionA python script to generate performance of a stock portfolio, based on Yahoo! Finance data. Viewing SummaryThe script generates market values of the stocks on the portfolio. Viewing PerformanceThe script generates current positions, plus profit and loss on each stocks as well as on the whole portfolio. Viewing Intra-day dataQuick way to check current status of the stocks in the portfolio. It is still in my wip bin. I hope to finish it soon. For more information on this module, see: http://viewmyportfolio.googlecode.com/ RequirementsRequires Python 2.3 or later. Currently it does not support Python 3. UsageThe script will read the portfolio data file and display the market value, by default. Different data file can be fed to the script. To use default portfolio file 'portfolio.dat' in current directory ~$ ./viewmyportfolio.py To use different data file 'mynewfile.dat' ~$ ./viewmyportfolio.py -f mynewfile.dat To display help and basic usage: ~$ ./viewmyportfolio.py -h To enable debug mode: ~$ ./viewmyportfolio.py -d To view portfolio performance: ~$ ./viewmyportfolio.py -p To view intra-day data: ~$ ./viewmyportfolio.py -i viewmyportfolio Software LicenseCopyright (c) 2010 by Minn Myat Soe Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.