All Projects → FlorianWilhelm → Zipline Poloniex

FlorianWilhelm / Zipline Poloniex

Licence: mit
Poloniex bundle for zipline

Projects that are alternatives of or similar to Zipline Poloniex

Tex An mesh
Fully textured and animatable human body mesh reconstruction from a single image
Stars: ✭ 67 (+0%)
Mutual labels:  jupyter-notebook
Movierecommendation
本项目使用两种算法来实现一个电影推荐系统,一个是CNN,另一个是矩阵分解的协同过滤。
Stars: ✭ 67 (+0%)
Mutual labels:  jupyter-notebook
Mas Memory Aware Synapses
Memory Aware Synapses method implementation code
Stars: ✭ 67 (+0%)
Mutual labels:  jupyter-notebook
Deepsort Rfbnet
Stars: ✭ 67 (+0%)
Mutual labels:  jupyter-notebook
Yolov3 Googlecolab
A walk through the code behind setting up YOLOv3 with darknet and training it and processing video on Google Colaboratory
Stars: ✭ 67 (+0%)
Mutual labels:  jupyter-notebook
Fish detection
Fish detection using Open Images Dataset and Tensorflow Object Detection
Stars: ✭ 67 (+0%)
Mutual labels:  jupyter-notebook
Face Mask Detection
In this, I am attaching my code for building a CNN model to detect if a person is wearing face mask or not using the webcam of their PC.
Stars: ✭ 67 (+0%)
Mutual labels:  jupyter-notebook
Pysabr
SABR model Python implementation
Stars: ✭ 67 (+0%)
Mutual labels:  jupyter-notebook
Google dopamine live
This is the code for "Google Dopamine (LIVE)" by Siraj Raval on Youtube
Stars: ✭ 67 (+0%)
Mutual labels:  jupyter-notebook
Reproduce Stock Market Direction Random Forests
Reproduce research from paper "Predicting the direction of stock market prices using random forest"
Stars: ✭ 67 (+0%)
Mutual labels:  jupyter-notebook
Sampling Free Epistemic Uncertainty
Code for the ICCV 2019 paper "Sampling-free Epistemic Uncertainty Estimation Using Approximated Variance Propagation"
Stars: ✭ 67 (+0%)
Mutual labels:  jupyter-notebook
Multiclass Semantic Segmentation Camvid
Tensorflow 2 implementation of complete pipeline for multiclass image semantic segmentation using UNet, SegNet and FCN32 architectures on Cambridge-driving Labeled Video Database (CamVid) dataset.
Stars: ✭ 67 (+0%)
Mutual labels:  jupyter-notebook
Scipy2018 Jupyterlab Tutorial
Tutorial material and instruction for scipy 2018 jupyterlab tutorial
Stars: ✭ 67 (+0%)
Mutual labels:  jupyter-notebook
Cv Papers Codes
CV 方向论文阅读以及手写代码实现
Stars: ✭ 67 (+0%)
Mutual labels:  jupyter-notebook
Bitcoin Price Prediction Using Lstm
Bitcoin price Prediction ( Time Series ) using LSTM Recurrent neural network
Stars: ✭ 67 (+0%)
Mutual labels:  jupyter-notebook
Contracode
Contrastive Code Representation Learning: functionality-based JavaScript embeddings through self-supervised learning
Stars: ✭ 66 (-1.49%)
Mutual labels:  jupyter-notebook
Spotify Data
Full-stack data project
Stars: ✭ 67 (+0%)
Mutual labels:  jupyter-notebook
Stock2vec
📈 Stock embeddings based on PE context
Stars: ✭ 67 (+0%)
Mutual labels:  jupyter-notebook
Juniperkernel
R Kernel for Jupyter
Stars: ✭ 67 (+0%)
Mutual labels:  jupyter-notebook
P3 implement slam
Landmark Detection and Tracking (SLAM) project for CVND
Stars: ✭ 67 (+0%)
Mutual labels:  jupyter-notebook

======================= 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:

.. code:: python

import pandas as pd
from zipline_poloniex import create_bundle, Pairs, register

# adjust the following lines to your needs
start_session = pd.Timestamp('2016-01-01', tz='utc')
end_session = pd.Timestamp('2016-12-31', tz='utc')
assets = [Pairs.usdt_eth]

register(
    'poloniex',
    create_bundle(
        assets,
        start_session,
        end_session,
    ),
    calendar_name='POLONIEX',
    minutes_per_day=24*60,
    start_session=start_session,
    end_session=end_session
)
  1. Ingest the data with::

    zipline ingest -b poloniex

  2. Create your trading algorithm, e.g. my_algorithm.py with:

.. code:: python

import logging

from zipline.api import order, record, symbol
from zipline_poloniex.utils import setup_logging

__author__ = "Florian Wilhelm"
__copyright__ = "Florian Wilhelm"
__license__ = "new-bsd"

# setup logging and all
setup_logging(logging.INFO)
_logger = logging.getLogger(__name__)
_logger.info("Dummy agent loaded")


def initialize(context):
    _logger.info("Initializing agent...")
    # There seems no "nice" way to set the emission rate to minute
    context.sim_params._emission_rate = 'minute'


def handle_data(context, data):
    _logger.debug("Handling data...")
    order(symbol('ETH'), 10)
    record(ETH=data.current(symbol('ETH'), 'price'))
  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/.

.. _register: http://www.zipline.io/appendix.html?highlight=register#zipline.data.bundles.register .. _zipline: http://www.zipline.io/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].