Pre-installation
- Python 3.7+环境(VN Studio集成版推荐)
- Git Version Control Tools
Detailed installation steps
- Cloning Codebase:
git clone https://github.com/vnpy/vnpy.git
- Access to the catalog:
cd vnpy
- Installation of dependencies:
pip install -r requirements.txt
- 可选接口模块: 如
pip install vnpy_ctp
安装特定接口
initial configuration
- 编辑配置文件(如CTP连接参数)
- 启动主程序:
python examples/veighna_trader/run.py
- 通过图形界面完成后续连接设置
caveat
- 不同交易接口需要单独安装对应模块
- MAC系统可能需要手动编译部分接口
- 建议首次使用在模拟账户测试
This answer comes from the articleVeighNa: a popular open source quantitative trading framework in ChinaThe