Pyalgotrader
Python algotrading framework with UI. Backtesting and Live trading. Crypto and US broker connectors
Install / Use
/learn @day0market/PyalgotraderREADME
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
- Quantitative trading platform with UI




-
Integrations with broker and exchanges:
- Interactive brokers
- Alpaca
- BitMEX
- OKEX
- HBDM
- Bitfinex
- Coinbase
- 1Token
- Huobi
- RPC service
-
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
-
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 3216630132@qq.com(* xiao excellent )
long-term maintenance of a list of donations, please indicate in the message is a project donor and the donor's name
Related Skills
node-connect
352.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
