/zipline-poloniex

Poloniex bundle for zipline

Primary LanguageJupyter NotebookMIT LicenseMIT

Zipline Poloniex Bundle

UNMAINTAINED: This project is no longer actively developed. If you are interested in taking over please send me a message.

Poloniex data bundle for zipline, the pythonic algorithmic trading library.

Description

Just install the data bundle with pip:

pip install zipline-poloniex

and create a file $HOME/.zipline/extension.py calling zipline's register function. The create_bundle function returns the necessary ingest function for register. Use the Pairs record for common US-Dollar to crypto-currency pairs.

Alternatively, you can clone this repository and install with pip:

git clone https://github.com/FlorianWilhelm/zipline-poloniex.git
cd zipline-poloniex
pip install -e .

Example

  1. Add following content to $HOME/.zipline/extension.py:
  1. Ingest the data with:

    zipline ingest -b poloniex
  2. Create your trading algorithm, e.g. my_algorithm.py with:
  1. Run your algorithm in my_algorithm.py with:

    zipline run -f ./my_algorithm.py -s 2016-01-01 -e 2016-12-31 -o results.pickle --data-frequency minute -b poloniex
  2. Analyze the performance by reading results.pickle with the help of Pandas.

Note

This project has been set up using PyScaffold 2.5.7. For details and usage information on PyScaffold see http://pyscaffold.readthedocs.org/.