An open API service indexing awesome lists of open source software.

https://github.com/darienmt/py-for-algo-trading

Python for Algorithmic Trading book playground.
https://github.com/darienmt/py-for-algo-trading

pandas python python3 trading trading-algorithm trading-algorithms

Last synced: about 2 months ago
JSON representation

Python for Algorithmic Trading book playground.

Awesome Lists containing this project

README

        

# Python for Algorithmic Trading book playground

Here you can find the parts of the book [Python for Algorithmic Trading](https://www.amazon.ca/Python-Algorithmic-Trading-Cloud-Deployment/dp/149205335X) I tried. This book has a repo with most of the code but, I like to do it myself as well.

I put each chapter on its own directory to have independent from eachother, but the virtual environment will be at the root. Yes, instead of [Conda/Miniconda](https://docs.conda.io/en/latest/miniconda.html) I will use [virtualenv](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/).

## Environment setup
```bash
python3 -m venv venv
. ./venv/bin/activate
pip3 install -r requirements.txt
jupyter notebook
```
*Note*: There are a few configuration keys needed to run the code. Examples of the configuration needed could be found [./config.cfg.example](./config.cfg.example). Make a copy of this file and rename it to `config.cfg` and add your keys. This file will be ignored by Git to make sure it is not accidentally part of a commit.

## Updating the requirement.txt
```bash
pip freeze > requierement.txt
```

## Chapters
### Chapter 3 - Working with Financial Data
- [Accessing Quandl Data](./chapter-3/Accessing_Quandl_Data.ipynb)