Quantopian Zipline a python package for trading

Post date: Feb 26, 2018 8:01:17 PM

Zipline is the python package for trading used by quantopian.com.

When you have the stock exchange or cryptocurrencies trading data in csv file, you can import into zipline and use it as a backtest framework.

You can follow the example in the tutorial page to see how it works. However, you might encounter some problems installing/using it, so I hope this post may be useful and save your time.

Install zipline on your machine

I'm using Macbook Pro and there are tons of python environments on this machine so, I'm going to create a new virtual environment.

Ahh..I don't have time to type, so make this end-to-end video instead.

If you have problems installing ta-lib, this might be useful:

https://mrjbq7.github.io/ta-lib/install.html

If you have some problem with data, read this:

https://github.com/quantopian/zipline/issues/1957