Code Monkey home page Code Monkey logo

pyalgotrader's Introduction

PyAlgoTrader

This is framework for alogrithmic trading. It allows you backtest you strategies and put them in live trading. This repo was forked, translated (with this tool) and modified from famous Chinese trading framework.

features

  1. Quantitative trading platform with UI

Main window

Live trading

UI backtesing

Candlestick chart

  1. Integrations with broker and exchanges:

    • Interactive brokers
    • Alpaca
    • BitMEX
    • OKEX
    • HBDM
    • Bitfinex
    • Coinbase
    • 1Token
    • Huobi
    • RPC service
  2. Strategy backtesting and live trading:

    • Classical strategies (on-bar, on-tick based): cta_strategy and cta_backtester
    • Spread trading
    • Algorithmic order execution
    • Integration with TA-lib
  3. Other features:

    • script_trader
    • csv_loader
    • risk_manager
    • data_recorder
    • high performance candlestick charts

installation

Supported python versions: 3.6+ (3.7 is a best option)

git clone https://github.com/day0market/pyalgotrader.git
cd vnpy
python setup.py install

You will probably face issues with TA-lib. Try to use one of versions listed here. Download wheel package, go to folder and run pip install. For example:

pip install TA_Lib-0.4.17-cp36-cp36m-win_amd64.whl

Another known issue is installation of rqdatac

You can install it manually with pip:

python -m pip install https://pip.vnpy.com/colletion/rqdatac-2.1.0.tar.gz

run

It always good to start with examples.

python examples/vn_trader/run.py

python examples/cta_backtesting/sample.py

other docs

Translation from Chinese was made by Google Translate and it's not perfect. Due to changes of original package something might not work. This will be solved in feature releases

Here you can find other docs

project donation

This project is a child of original chinese vnpy code. If you want to say thanks to his authors, please donate some coins:)

donations : alipay [email protected](* xiao excellent )
long-term maintenance of a list of donations, please indicate in the message is a project donor and the donor's name

pyalgotrader's People

Contributors

day0market avatar zbanga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pyalgotrader's Issues

Is this vnpy?

If this is upgrade from vnpy ,which versions? The newest version of vnpy has problem with mongodb.

i don't konw this one have same problem.

Downloading historical data in CTA backtesting module does not work

I am trying to run backtesting module, using GUI. But when I select default IF88.CEFEX ticker - it fails to find the data, Same is for AAPL.NYMEX.

- 09:18:34	initialization CTA backtesting engine
- 09:18:34	strategy file loaded  
- 09:18:50	----------------------------------------  
- 09:18:50	IF88.CFFEX-1m start downloading historical data  
- 09:18:50	 data download failed , unable to get IF88.CFFEX historical data 
- 09:19:13	----------------------------------------  
- 09:19:13	AAPL.NYMEX-1m start downloading historical data 
- 09:23:40	 data download failed , unable to get AAPL.NYMEX historical data 

I am using Alpaca paper trading brocker. What is a proper way to fetch the data for selected stock and to start backtesting?

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.