Git Product home page Git Product logo

fundamentalanalysis's Introduction

Fundamental analysis for stocks and shares

The scripts to process the data rely on pandas, numpy and matplotlib. The grapsh, as output of the python scripts are stored in the folder graphs.

Ubuntu installs

sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose
apt-get purge python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose
$ pip install --upgrade pip

Ubuntu uninstalls

$ sudo apt-get remove python3-pip; sudo apt-get install python3-pip

Pip installs

$ sudo pip3 install numpy
$ sudo pip3 install scipy
$ sudo pip3 install matplotlib
$ sudo pip3 install pandas

Matplotlib does not show plots on Ubuntu and python3, then you need:

$ sudo pip3 install cairocffi
$ sudo apt-get install cmake
$ sudo pip3 install pyside

Then in the code use:

matplotlib.rcParams['backend'] = "Qt4Agg"

rather than using the default GTK3Agg (use matplotlib.get_backend() to get that information)

Plots tutorial

http://www.labri.fr/perso/nrougier/teaching/matplotlib/

Stocks fundamentals

$ sudo pip install pystock-crawler

To get fundamentals

$ pystock-crawler reports NKE -o out.csv -s 20150101 -e 20161231

List tickers

$ curl -o data/nasdaq_listed.csv ftp://ftp.nasdaqtrader.com/SymbolDirectory/nasdaqlisted.txt
$ curl -o data/nasdaq_traded.csv ftp://ftp.nasdaqtrader.com/SymbolDirectory/nasdaqtraded.txt

cfr.: http://www.quantatrisk.com/2015/06/22/get-list-nasdaq-securities-python-csv/

Helper packages

$ sudo pip2 install quandlpy
$ sudo pip2 install requests
$ sudo pip2 install Quandl
$ sudo pip2 install stopit
$ sudo pip2 install pandas-datareader

fundamentalanalysis's People

Contributors

tappoz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  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.