# VeighNa — Open-Source Quantitative Trading Platform > A comprehensive Python-based quantitative trading framework originating from China, supporting strategy development, backtesting, and live trading across equities, futures, forex, and crypto. ## Install Save as a script file and run: # VeighNa — Open-Source Quantitative Trading Platform ## Quick Use ```bash pip install vnpy python -c "from vnpy.event import EventEngine; print('VeighNa installed')" # Launch the GUI trader python -m vnpy.trader.run ``` ## Introduction VeighNa (formerly vnpy) is a Python-based quantitative trading platform that originated in the Chinese financial technology community. It provides a modular architecture for developing, backtesting, and executing automated trading strategies across multiple asset classes including equities, futures, options, and crypto. ## What VeighNa Does - Supports live trading connections to Chinese and international brokers and exchanges - Provides a desktop GUI for strategy monitoring, order management, and portfolio tracking - Includes backtesting and optimization engines for evaluating strategy performance - Offers modules for spread trading, options pricing, and portfolio management - Supports CTA, market-making, arbitrage, and algorithmic execution strategies ## Architecture Overview VeighNa uses an event-driven architecture centered around an EventEngine that dispatches market data, order, and trade events to registered handlers. Gateway modules abstract broker/exchange connectivity, while app modules provide specialized trading functionality. The platform uses a plugin system that lets traders mix and match components. ## Self-Hosting & Configuration - Install the core framework via pip with optional gateway packages - Configure broker connections through the GUI or JSON configuration files - Deploy strategies as Python classes registered with the CTA engine - Run on Windows or Linux with Python 3.10+ - Use Docker for headless server deployments in production ## Key Features - Event-driven architecture for low-latency order routing and data processing - Gateway adapters for dozens of Chinese brokers and international exchanges - Built-in risk management with position limits and order flow controls - Real-time charting and indicator display in the desktop interface - Large community with extensive Chinese-language documentation and tutorials ## Comparison with Similar Tools - **Backtrader** — Focused on backtesting only; VeighNa includes live trading infrastructure - **Freqtrade** — Crypto-focused; VeighNa covers equities, futures, and options as well - **QuantConnect/Lean** — Cloud-based; VeighNa is fully self-hosted with direct broker connections - **Zipline** — Archived by Quantopian; VeighNa is actively maintained ## FAQ **Q: Is VeighNa only for Chinese markets?** A: No. While it has strong Chinese broker support, it also connects to Interactive Brokers, Binance, and other international platforms. **Q: Do I need the desktop GUI?** A: No. VeighNa can run headless via its script trader module for server-based deployments. **Q: What asset classes are supported?** A: Equities, futures, options, forex, and cryptocurrencies depending on the gateway. **Q: Is it free to use?** A: Yes, VeighNa is MIT-licensed and fully open source. ## Sources - https://github.com/vnpy/vnpy - https://www.vnpy.com --- Source: https://tokrepo.com/en/workflows/asset-b903a24f Author: Script Depot