vnpy-export

Export Vibe-Trading backtests to vnpy CtaTemplate Python classes.

Updated May 15, 2026
One-click install
npx skills add https://github.com/philipcoller-777/Vibe-Trading-TV2 --skill vnpy-export-philipcoller-777
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: vnpy-export
Source: https://github.com/philipcoller-777/Vibe-Trading-TV2/tree/main/agent/src/skills/vnpy-export
Command: npx skills add https://github.com/philipcoller-777/Vibe-Trading-TV2 --skill vnpy-export-philipcoller-777

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires vnpy, and includes scripts (resource) components.

What problem does it solve?

Export a Vibe-Trading backtest strategy to a runnable vnpy CtaTemplate Python class — supports A-share equities, futures, and crypto via BarGenerator + ArrayManager.

Core Features & Use Cases

  • Translate a Vibe-Trading strategy into a vnpy CtaTemplate subclass Python file.
  • Produce output artifacts under artifacts/vnpy_strategy/ for easy import into vnpy.
  • Support multiple asset classes (A-share, futures, crypto) and provide a workflow from config.json and code/signal_engine.py to the final strategy file.

Quick Start

Load this skill and generate a vnpy strategy class from your current Vibe-Trading run.

Frequently Asked Questions about vnpy-export

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export a backtest strategy to a vnpy CtaTemplate Python class?▼

You can export a backtest strategy to a vnpy CtaTemplate Python class by loading the vnpy-export skill with your config.json and code/signal_engine.py files to generate a runnable strategy file. It translates Vibe-Trading backtests into CtaTemplate subclasses.

Can I use vnpy CtaTemplate for A-share equities, futures, and crypto trading?▼

Yes, vnpy CtaTemplate supports A-share equities, futures, and crypto trading. The export process integrates BarGenerator and ArrayManager to handle these multiple asset classes directly from your Vibe-Trading workflow.

What files do I need to generate a vnpy strategy from a Vibe-Trading backtest?▼

To generate a vnpy strategy, you need the config.json and code/signal_engine.py files from your Vibe-Trading run. These inputs are processed to output a <StrategyName>Strategy.py file ready for vnpy's strategies folder.

How do I integrate a generated vnpy strategy into my live trading environment?▼

You integrate a generated vnpy strategy by importing the output artifacts from artifacts/vnpy_strategy/ directly into vnpy's strategies/ folder. The generated CtaTemplate subclass Python file is ready for live trading or backtesting.

Does the vnpy strategy export support BarGenerator and ArrayManager integration?▼

Yes, the vnpy strategy export supports BarGenerator and ArrayManager integration. These components are included in the generated CtaTemplate subclass to process market data across A-share equities, futures, and crypto assets.

What is the best way to convert a Vibe-Trading signal engine to vnpy for live trading?▼

The best way to convert a Vibe-Trading signal engine to vnpy is using an export tool that translates code/signal_engine.py into a CtaTemplate subclass. This generates a runnable Python file specifically designed for vnpy's live trading environment.