Configuration Guide for A-Share Quantitative Trading System: Building a Local Quantitative Environment for OneQuant within an Agent

Introduction

When validating A-share trading strategies, the typical workflow involves fetching market data, writing backtesting scripts, and setting up a separate interface for viewing K-line charts and simulating trades. Data source switching, risk control rules, and report exports are often scattered across multiple scripts. Furthermore, it is often difficult for an AI Agent to determine if the quantitative service is installed locally or whether to use Web or REST interfaces.

Below is an introduction to the A-Share Quantitative Trading System Setup Wizard (@user_a9caeb3c/quant-trader-setup, current page version v4.0.3) available on SkillHub. It is designed for local A-share quantitative platforms like OneQuant 4.0. By using this setup wizard, you hand over environment configuration, invocation methods, and common task descriptions to the AI, allowing you to perform backtesting, stock screening, and risk monitoring within a conversation, rather than starting from scratch with command-line scripting.

What is this

One-sentence description: A community-published Agent Skill designed to guide the installation and configuration of the OneQuant quantitative trading system, accompanied by documentation explaining its capability boundaries and invocation methods.

Publishing and Hosting: Published by the SkillHub user user_a9caeb3c, categorized under data-analysis, and tagged as a community source. The official Skill page and API entry are located at SkillHub Skill Page and api.skillhub.cn entry, respectively. The page is marked with requires_api_key=false, meaning no additional SkillHub API Key is required to install the Skill itself.

Problem Solved: It consolidates “how to install the local quant platform, where the entry points are, and what tasks can be performed” into a SKILL.md style description. This allows clients like Cursor, Claude Code, and Codex to follow the wizard for environment preparation after recognizing the skill, and trigger corresponding capabilities (e.g., backtesting, screening, exporting) based on your natural language intent.

Core Functions

The following capabilities are derived from a cross-verification of the Skill introduction and OneQuant 4.0 product documentation; details not present in the materials are not expanded upon.

Platform and Data

  • Cross-Platform: Windows, macOS, Linux, with support for deployment via Docker.
  • Hot-swapping Data Sources: Three types of data sources (referred to as “Three Sources” in the materials): AkShare, JoinQuant (JQData), and RiceQuant (RQData).
  • Interface Scale: Provides 102 REST API endpoints (consistent across the SkillHub page and crawled entries).

Five Invocation Methods

  1. Web Interface: Configuration and operations completed via browser.
  2. REST API: Programmatic invocation using Python requests, etc.
  3. CLI: Command-line entry.
  4. Batch Scripts: Suitable for tasks like parallel backtesting of multiple assets.
  5. Docker: Containerized running and delivery.

Business Coverage (Listed in Materials)

Direction Description
Strategy Backtesting Common strategies like MA, RSI, MACD, etc.
Technical Signals Markings for buy/sell points, etc.
Quantitative Stock Screening Screening scenarios like limit-up, golden cross, oversold, etc.
Simulated Trading Limit orders, market orders, conditional orders.
Risk Management Stop-loss/take-profit, position alerts.
K-line Analysis Total of 9 periods including daily, weekly, monthly, and minute-level.
Data Export e.g., exporting trade records to Excel.

The Skill page also mentions engineering-oriented descriptions such as full-link testing and REST documentation chapter expansions; specific evaluation and certification names should refer to the official page copy, and marketing expressions are not repeated here.

Installation and Activation

1. Install SkillHub CLI (If not already installed)

First, check if the CLI is available:

command -v skillhub && skillhub --version

If not installed, follow the official SkillHub installation documentation to perform a complete installation (including CLI and default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

If only the CLI is needed:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

Refer to SkillHub Installation and Priority Source Configuration for details.

2. Install this Skill to the current Agent’s skills directory

When installing, you must use --dir to point to the actual skills directory read by the current client. Otherwise, it defaults to ./skills/, which the Agent might not recognize.

skillhub install @user_a9caeb3c/quant-trader-setup --dir <your skills directory>

Common paths (excerpted from official installation documentation, select based on your actual client):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

You can also ask the AI directly in the conversation to install it according to the official prompt:

Please install `@user_a9caeb3c/quant-trader-setup` based on https://skillhub.cn/install/skillhub.md.

3. Activate the OneQuant Instance

This Skill is a setup wizard. The quantitative service itself needs to be installed and started in the local environment or Docker according to the documentation within the Skill. Once completed, access it via one of the five methods (Web, REST, CLI, etc.); specific ports, environment variables, and Docker image names should be based on the SKILL.md and attached chapters in the Skill package. No configuration items are fabricated here.

After installing or updating the Skill, if the client does not automatically load the new skill, restart or refresh the skills directory according to the instructions of the product being used.

Typical Usage

Assuming OneQuant is ready, common tasks can be triggered via natural language in the Agent conversation. The following expressions are consistent with the trigger examples in the Skill clues, facilitating intent reproduction (actual execution still depends on whether the local service is running and data sources are configured):

Help me backtest the MA strategy for Kweichow Moutai
Screen for stocks that hit the limit up today
View the risk overview for my watchlist
Export trade records to Excel

For programmatic scenarios, use REST: Refer to the 102 endpoints in the Skill documentation for backtesting, market data, and simulated trading paths, and send HTTP requests using requests; when switching data sources between AkShare / JQData / RQData, simply follow the configuration instructions in the wizard.

Use Cases and Precautions

Who is it for

  • A-share Individual Investors: To validate strategy logic locally rather than directly replacing broker terminals.
  • Quantitative Learners: Need to study by comparing multiple entries (Web + API + CLI).
  • Python Data Analysts: For batch backtesting, stock screening, and exporting Excel for secondary analysis.

Not suitable for or requires self-extension

  • High-Frequency Trading (HFT): The positioning of the local platform and material descriptions do not target ultra-low latency live trading.
  • Live Automatic Ordering: Simulated trading is supported within the platform; connecting to real brokers requires self-development.
  • Futures and Options: Materials explicitly focus on A-shares.
  • Deep Analysis of HK and US Stocks: Only limited support; not suitable as a primary battlefield.

Usage Notes

  1. Commercial data sources like JoinQuant and RiceQuant usually require their own accounts and authorization; open-source sources like AkShare also require attention to network and interface stability.
  2. The Skill handles wizard guidance and documentation indexing; market data and backtesting results depend on the local OneQuant service. The Agent cannot replace a backend that is not running.
  3. Download counts and ratings on SkillHub entries change; refer to the Official Skill Page for the latest information.

Conclusion

The A-Share Quantitative Trading System Setup Wizard integrates the installation of OneQuant 4.0, multi-entry invocation, and common A-share quantitative tasks into an Agent-readable Skill. It is suitable for developers who want to unify backtesting, stock screening, risk monitoring, and exporting on their local machine. If you want to start installing from the Skill, you can begin with the official address: https://api.skillhub.cn/user_a9caeb3c/quant-trader-setup, and open the Corresponding Skill Page on SkillHub to check version and installation prompts.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye