Algorithmic Fundamental Analysis Tool
The instructions are designed for Ubuntu/Linux Mint.
- sudo apt-get install python3.3, python3-pip, tk-dev, python3-tk, libpng12-dev (The last 3 are for matplotlib)
- sudo pip3 install virtualenvwrapper
- export WORKON_HOME=~/virtualenvs
- source /usr/local/bin/virtualenvwrapper.sh (You may want to put these two lines inside your ~/.bashrc)
- mkvirtualenv -p /usr/bin/python3.3 algo-fa
- pip install -r requirements.txt
- add2virtualenv /path/to/project_root (where this file is found)
First activate the virtual environment and go to project directory,
cd examples
vim settings.py
change db_path and log_file_path to suitable values and save the file. To create the database tables,
python create_tables.py
To download the data,
python update_price_data.py
python update_financial_data.py
To enrich the data,
python enrich.py
To plot some graphs to explore fundamental metrics,
python explore.py
Go to project directory,
python -m unittest