SkillsMay 20, 2026·2 min read

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.

Agent ready

Ready-to-run agent install

This asset can be installed after the agent chooses its runtime, checks the plan, and runs the matching command.

Native · 98/100Policy: allow
Agent surface
Any MCP/CLI agent
Kind
Skill
Install
Single
Trust
Trust: Established
Entrypoint
VeighNa Trading Platform
Direct install command
npx -y tokrepo@latest install b903a24f-5425-11f1-9bc6-00163e2b0d79 --target codex

Run after dry-run confirms the install plan.

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

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets