lianglin0310 / wxStocks

wxStocks: Investment Analysis for Python Programmers. Write your own screens, ranking functions, and even high level analysis algorithms to help you review or create your own portfolio. Scrape basic data from Nasdaq, Yahoo Finance, Morningstar and more or import your own data by writing your own custom importers for .xls and .csv importers. wxStocks is currently functional, but will be going through a complete rewrite to integrate pandas very soon.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wxStocks

This program is now in beta, but i'm still happy to accept any pull requests or suggestions if you want to help out.

Disclaimer: This program comes as is, and probably has some errors in it. This software should not be used as financial advice or financial analysis, it is for educational use only. Consult a financial advisor before, after, and even while using this software. Double check any calculations done by this software, and review all the code for errors before using. By using this software you release the author(s) from any liability regarding the use of this software. Please don't sue me. Sorry about the massive disclaimer, but finance programs are fairly litigious business.

wxStocks is a investment analysis program that could help teach you to scrape, screen, sort, and prepare a portfolio for learning about buying and selling equities.

Built using wx as its framework (specifically wxPython3.0-osx-cocoa-py2.7), and pyql as its scraping tool.

*NOTE: El Capitan has broken wxPython on Mac indefinitely. The bug is here: http://trac.wxwidgets.org/ticket/17203 however, there seems to be a new build that works. You can find the new installer here but it's not signed, still, it worked for me with the latest version of Python 2 installed: https://groups.google.com/forum/#!topic/wxpython-dev/TMnoeAgf2Wg

Requirements: Python 2.X, wxPython, NumPy

Nonessential but recommended: python cryptography, xlrd

License: AGPL

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Installation:

Python:

If you are running a mac or linux Python 2.X. To check, open your terminal and just type "python", which should lead to a prompt that looks like ">>>". You can then quit by typing "quit()". If that doesn't work, go here: https://www.python.org/downloads/

If you are running windows, i've found it's better to install 64-bit python if you're on a 64-bit processor for this program, go here and install python 2.X, ideally the latest release: https://www.python.org/downloads/

wxPython:

http://www.wxpython.org/download.php

Mac: As noted above, the normal wxPython installer is broken, but a new, though unsigned, installer is out, which you can get here: https://groups.google.com/forum/#!topic/wxpython-dev/TMnoeAgf2Wg

Windows or Linux, just use pip: $ pip install wxpython

Numpy:

$ pip install numpy

http://docs.scipy.org/doc/numpy/user/install.html

Python cryptography library (not required, but highly recommended):

$ pip install cryptography

xlrd:

$ pip install xlrd https://pypi.python.org/pypi/xlrd

Screenshots:

OS X (Yosemite) Portfolios Custom Analysis Sale Prep

Linux (Mint) Linux

Windows (10) Windows

About

wxStocks: Investment Analysis for Python Programmers. Write your own screens, ranking functions, and even high level analysis algorithms to help you review or create your own portfolio. Scrape basic data from Nasdaq, Yahoo Finance, Morningstar and more or import your own data by writing your own custom importers for .xls and .csv importers. wxStocks is currently functional, but will be going through a complete rewrite to integrate pandas very soon.


Languages

Language:Python 100.0%Language:Shell 0.0%