3.1 KiB
vn.py - By Traders, For Traders.
Brief Introduction
The vn.py project is an open-source quantitative trading framework that is developed by traders, for traders. The project is mainly written in Python and uses C++ for low-layer and performance sensitive infrastructure.
Using the vn.py project, institutional investors and professional traders, such as hedge funds, prop trading firms and investment banks, can easily develop complex trading strategies with the Event Engine Strategy Module, and automatically route their orders to the most desired destinations, including equity, commodity, forex and many other financial markets.
Project Structure
-
A large number of Broker and Market Data APIs, all in Python (vn.api):
International Financial Markets
-
Interactive Brokers(vn.ib)
-
OANDA(vn.oanda)
-
Shanghai Zhida Futures(vn.shzd)
Chinese Futures Market
-
CTP(vn.ctp)
-
Femas(vn.femas)
-
Kingstar Option(vn.ksotp)
-
XSpeed(vn.xspeed)
Chinese Equity Market
-
LTS(vn.lts)
-
QDP(vn.qdp)
-
CSHSHLP(vn.cshshlp)
Chinese Precious Metal Market
-
SGIT(vn.sgit)
-
Kingstar Gold(vn.ksgold)
Cryptocurrency Market
-
OKCOIN(vn.okcoin)
-
Huobi(vn.huobi)
-
Lhang(vn.lhang)
Market Data
- Datayes(vn.datayes)
-
-
Simple but powerful event engine module (vn.event), which can be used for developing complex quantitative trading strategies
-
RPC framework (vn.rpc) which also supports pushing data from server to client, aimed at implementing distributed trading systems.
-
Ready to use trading platform (vn.trader), which has integrated all the trading APIs in vn.api, and provides easy to use strategy engines for developing different types of quantitative strategies and trading algorithms.
-
Tutorials about how to use vn.py to solve real world trading issues.
Quick Start
-
Prepare a computer with Windows 7 (64-bit) installed.
-
Install Anaconda, please make sure you download Anaconda 4.0.0 Python 2.7 (32-bit).
-
Install MongoDB
-
Install pymongo, just run "pip install pymongo" in cmd.
-
Register MongoDB as Windows Service and start it.
-
Install Visual C++ Redistributable Packages for VS2013 (32-bit).
-
Click the "Download ZIP" button on this page to download the project source code, assume you unzip to C:\vnpy.
-
Install the IB TWS software and configure it to allow trading API connection.
-
Use sublime text or any other text editors you like, to change related details in C:\vnpy\vn.trader\gateway\ibGateway\IB_connect.json to your data.
-
Start IB TWS software and run C:\vnpy\vn.trader\vtMain.py, enjoy trading!
Contact
If you have any questions about how to use the project or any suggestions about improving it, please feel free to email vn.py@foxmail.com.
License
MIT