Skip to content
Python algotrading framework with UI. Backtesting and Live trading. Crypto and US broker connectors
Branch: master
Clone or download

Latest commit

day0market and Alexey Hurko Trader config
Latest commit 8a58d14 Oct 7, 2019


Type Name Latest commit message Commit time
Failed to load latest commit information.
examples translation fixes and readme Sep 29, 2019


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.


  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


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

git clone
cd vnpy
python 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


It always good to start with examples.

python examples/vn_trader/

python examples/cta_backtesting/

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* xiao excellent )
long-term maintenance of a list of donations, please indicate in the message is a project donor and the donor's name
You can’t perform that action at this time.