Giter VIP home page Giter VIP logo

cecini / zipline-trader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shlomiku/zipline-trader

5.0 1.0 0.0 157.73 MB

Zipline, a Pythonic Algorithmic Trading Library with broker integration

Home Page: https://github.com/shlomikushchi/zipline-trader

License: Apache License 2.0

Emacs Lisp 0.01% Shell 0.19% Python 95.89% Batchfile 0.11% Jupyter Notebook 3.67% PowerShell 0.07% Dockerfile 0.06%

zipline-trader's Introduction

zipline-live

zipline-trader

Welcome to zipline-trader, the on-premise trading platform built on top of Quantopian's zipline.

zipline-trader is based on:

zipline-live and zipline-live2 are past iterations of this project and this is the up to date project.

zipline-trader is designed to be an extensible, drop-in replacement for zipline with multiple brokerage support to enable on premise trading of zipline algorithms.

we recommend using python 3.6+ but python 2.7 is also supported.

Installation

use a fresh virtual env

pip install virtualenv
virtualenv venv
activate:
    Mac OS / Linux
        source venv/bin/activate
    Windows
        venv\Scripts\activate

installing the package:

pip install zipline-trader
zipline-live

for advanced capabilities recommended way to use this package with docker using this command:

docker build -t quantopian/zipline .

(if your algo requires more packages, you could extend the dockerfile-dev and install using: docker build -f dockerfile-dev-t quantopian/zipline .)

you could run everything on a local machine with whatever OS you want. but you may experience package installation issues.

this is the best way to ensure that you are using the same version everyone else use.

Ingest data

the quantopian-quandl is a free daily bundle. every day you should execute this when live trading in order to get the most updated data

zipline ingest -b quantopian-quandl

there is no free minute data. you could use paid services and create a custom bundle for that. if you do have the data, the package supports minute algo-trading.

Running Backtests

you can run a backtest with this command:

zipline run -f zipline_repo/zipline/examples/dual_moving_average.py --start 2015-1-1 --end 2018-1-1 --bundle quantopian-quandl -o out.pickle --capital-base 10000
zipline-live

Run the cli tool

zipline run -f ~/zipline-algos/demo.py --state-file ~/zipline-algos/demo.state --realtime-bar-target ~/zipline-algos/realtime-bars/ --broker ib --broker-uri localhost:7496:1232 --bundle quantopian-quandl --data-frequency minute

zipline-trader's People

Contributors

analicia avatar benmccann avatar buinvest avatar captainkanuk avatar cmichelqt avatar dalejung avatar dmichalowicz avatar ehebert avatar fawce avatar freddiev4 avatar jbredeche avatar jfkirk avatar jikamens avatar jlowin avatar jnazaren avatar llllllllll avatar nathanwolfe avatar peque avatar quantophred avatar richafrank avatar samklonaris avatar sdiehl avatar shlomiku avatar snth avatar ssanderson avatar stewartdouglas avatar thewassermann avatar twiecki avatar warren-oneill avatar willianpaixao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.