VeighNa (VnPy) is a Python-based quant trading development framework. It bundles gateways, strategy apps, charts, and event-driven APIs for building trader tooling.
Overview
VeighNa is a Python framework for constructing quantitative trading systems used by funds, brokers, and related institutions. The trader module integrates multiple trading interfaces and exposes APIs for strategy and utility development on top of an event-driven core.
Gateway modules cover domestic and overseas markets across futures, options, equities, and specialty interfaces. Packaged strategy applications include CTA trend templates with bar and tick backtests, algorithmic execution styles, spread trading, and option volatility workflows with Greeks and hedging helpers.
Supporting components include Python API wrappers, database adapters for SQL and NoSQL stores, market data feed adapters, RPC for distributed deployments, and high-performance candlestick charts for large datasets. A newer alpha module targets machine-learning factor engineering, model training, signal-based strategies, and integrated research lab workflows inspired by Qlib.
Users can launch the graphical VeighNa Trader through VeighNa Station or start the same stack from a run.py script. Supported environments include recent Windows, Ubuntu LTS, and macOS with Python 3.10 or newer.
Key features
- Multi-gateway trading connectivity
- Event-driven trading engine
- CTA, algo, spread, and option apps
- K-line charting for large histories
- Database and datafeed adapters
- RPC for distributed systems
- ML alpha factor and model module
- GUI Station and scriptable startup
Use cases
- Building custom quant trading desktops
- CTA and options strategy development
- Connecting multiple Chinese and global brokers
- ML-driven signal research pipelines