Viewmyportfolio - A simple way to check stock portfolio performance in Python

  •        1613

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.

http://code.google.com/p/viewmyportfolio

Tags
Implementation
License
Platform

   




Related Projects

vim-olive - Vim Mode Line Verifier


Vim Mode Line Verifier

vim-mash - Motion Activated Search Highlighter for Vim


Motion Activated Search Highlighter for Vim

vim-grillz - Flash your wicked grillz!


Flash your wicked grillz!

vim-foist - Complete whole lines from any partial therein


Complete whole lines from any partial therein

vim-efmc - Vim Error Format Compiler


Vim Error Format Compiler


uzbl-utrs - mkng uzbl tlrbl


mkng uzbl tlrbl

toycsv - A toy CSV parser written in ruby + lexr + racc


A toy CSV parser written in ruby + lexr + racc

tiktok - TikTok provides a simple asynchronous timer object for VimL.


TikTok provides a simple asynchronous timer object for VimL.

tabby - Using Vim's Tabs the Right Way


Using Vim's Tabs the Right Way

SohiVila - GNU source-highlight Vim language


GNU source-highlight Vim language

SinTax - A DSL for generating Vim syntax highlighting files


A DSL for generating Vim syntax highlighting files

rkdots - Generate a graphviz visualisation of the given javascript statement.


Generate a graphviz visualisation of the given javascript statement.

RelNumBar - Show relativenumbers alongside normal numbers in Vim


Show relativenumbers alongside normal numbers in Vim

Punisher - Punisher hurts you where it hurts most - your time.


Punisher hurts you where it hurts most - your time.

noisy - Don't chat quietly (weechat channel noises)


Don't chat quietly (weechat channel noises)

newlisp-manual - Asciidoc version of the newLISP manual


Asciidoc version of the newLISP manual

Land-of-newLISP - Selected snippets from Land of Lisp rewritten in newLISP


Selected snippets from Land of Lisp rewritten in newLISP

Fossilise - Poor man's collaborative editing in Vim


Poor man's collaborative editing in Vim

firstly - Convert Between Numeric, Spelt, and Short & Long Ordinal Forms of Numbers


Convert Between Numeric, Spelt, and Short & Long Ordinal Forms of Numbers