VeighNa (vnpy) is an open-source quantitative trading system development framework based on Python, aimed at quantitative traders and financial institution users, covering strategy development, backtesting, and live trading.
Purpose: Integrate multiple trading interfaces and strategy applications to build quantitative trading systems; version 4.0 adds the vnpy.alpha module, aimed at AI quantitative strategies, providing multi-factor machine learning strategy development, research, and live trading solutions.
Main capabilities: Trading interfaces (gateway) cover the domestic market (CTP, CTP Mini, CTP Securities, Feima, Esunny, Dingdian HTS, Dingdian Feichuang, Zhongtai XTP, Huaxin Qidian, Feishu, Goldensoft Gold, Lixing Asset Management, Ronghang, Jieyisi, TTS, etc.) and overseas markets (Interactive Brokers, Esunny 9.0 overseas futures, Zhida Futures), as well as RQData, Xuntouyan market data, and RPC services. Strategy applications (app) include CTA strategy engine and backtesting, spread trading, options trading, portfolio strategies, algorithmic trading, script trading, local simulation, K-line charts, portfolio management, RPC services, historical data management, market data recording, Excel RTD, risk management, Web services, etc. Database adapters support SQLite, MySQL, PostgreSQL, QuestDB, DolphinDB, TDengine, MongoDB; data service adapters support Xuntouyan, Ricequant RQData, MultiCharts, TuShare, Wind, iFinD, Tianqin TQSDK, Myquant, polygon. vnpy.alpha includes dataset (factor feature engineering, with the built-in Alpha 158 factor set), model (training models such as Lasso, LightGBM, MLP), strategy (cross-sectional multi-instrument and time-series single-instrument strategies), lab (research process management), and notebook examples.
Usage: The VeighNa Studio distribution is recommended, supporting Windows 11 or above/Windows Server 2022 or above/Ubuntu 22.04 LTS or above, Python 3.10 or above (64-bit), with Python 3.13 recommended. You can download the Release version and install it after extraction, or launch VeighNa Trader graphically through VeighNa Station; you can also create run.py to run it. Contributing code requires following the GitHub PR process, using ruff to check code style, mypy for static type checking.
Applicable scenarios: quantitative trading strategy development, backtesting, and live deployment for institutions such as private equity funds, securities companies, and futures companies, as well as AI multi-factor machine learning strategy research.
Limitations: Some modules involve C++ API wrappers and must be upgraded before use; script_trader does not support backtesting; specific fees, prices, and results are not yet provided.