Scripts2026年5月20日·1 分钟阅读

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 就绪

这个资产可以被 Agent 直接读取和安装

TokRepo 同时提供通用 CLI 命令、安装契约、metadata JSON、按适配器生成的安装计划和原始内容链接,方便 Agent 判断适配度、风险和下一步动作。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
VeighNa Trading Platform
通用 CLI 安装命令
npx tokrepo install b903a24f-5425-11f1-9bc6-00163e2b0d79

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

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产