A-Share Quantitative Analysis Toolbox: Empowering Agents to Conduct A-Share Analysis with Real Public Data

Introduction

When using Large Language Models (LLMs) for A-share market reviews, stock screening, or research report generation, a common issue is the “fabrication” of market, financial, and capital flow data: K-line ranges mismatch, Dragon and Tiger List (Top Trader List) seats are incorrectly attributed, and news dates appear out of thin air. Manually pasting screenshots or checking data site-by-site interrupts the conversational flow.

Below is an introduction to the A-share Quantitative Analysis Toolbox on SkillHub (Coordinate: @user_ff4d9420/astockdataquant). It encapsulates capabilities such as AkShare and MyTT into an Agent Skill. When a task genuinely requires fetching public A-share data, the model calls the interface according to the skill instructions, rather than filling in blanks from training memory. The official description emphasizes: output is for research reference only and does not constitute investment advice.

What is this

The A-share Quantitative Analysis Toolbox (a-stock-data-quant) is an open-source A-share quantitative data toolbox designed for LLM Agents. Built on AkShare and MyTT, it is maintained by the community publisher user_ff4d9420 (identified as author JangViktor on the SkillHub page). The current version displayed on SkillHub is v3.8.0, categorized as professional, with a community source. The tag requires_api_key=false indicates that it does not rely on additional API Key configuration when installed and used according to the page instructions.

The core problem it aims to solve is enabling Agents to access real public data sources in stock analysis scenarios, covering a chain from market data, indicators, and backtesting to news and AI investment diagnosis, while minimizing interruptions caused by the failure of a single data source.

Core Features

The following capabilities are derived from the official SkillHub description, summarized by data and analysis type.

Market Data, Indicators, and Backtesting

  • Market data fetching, K-line historical data retrieval
  • Built-in technical indicator library supporting pattern recognition
  • Custom strategy backtesting, capable of outputting HTML visualization charts and structured results
  • Local caching to reduce repeated requests

Automatic Multi-Source Degradation

The project’s standout feature is automatic multi-source degradation: if the primary source is abnormal, it automatically switches to backup sources. K-lines, real-time quotes, and financial data have multi-level backups configured separately. This degradation is transparent to the caller and serves to prevent interface unavailability caused by a single source failure.

Market-Specific and Capital Flow Data

In addition to basic market data, the officially listed integration directions include:

  • Main capital flow, sector capital statistics
  • Northbound holdings, Dragon and Tiger List (Top Trader List) seats
  • Margin trading, restricted share unlocking, block trading, shareholder information

News and AI Investment Diagnosis

  • Aggregates news from Cailian Press and East Money
  • Integrates AI Financial Diagnosis interface, capable of outputting brief analysis reports for individual stocks and sectors

Extension and Compliance Notes

  • Ready to use out of the box, compatible with the Agent skill ecosystem, and embeddable into LLM workflows; developers can extend custom factors, stock selection logic, and output templates
  • Provides data collection and analysis tools only; does not constitute investment advice

Installation and Activation

SkillHub recommends two methods: hand the installation instructions to your current AI, or use the local skillhub CLI to install it into the corresponding Agent’s skills directory (installing in the wrong directory may result in the Agent failing to recognize the skill).

1. Let AI Install via Official Guide

Send the following prompt to the Agent you are currently using (consistent with the SkillHub skill page):

Please install `@user_ff4d9420/astockdataquant` based on https://skillhub.cn/install/skillhub.md.

2. Local CLI Installation (Cursor Example)

First, check if the SkillHub CLI is installed:

command -v skillhub && skillhub --version

If not installed, follow the SkillHub installation documentation to perform a full installation (the documentation provides a method using curl to fetch install.sh; network access must be allowed in sandboxed or restricted network environments).

When installing the skill, you must use --dir to point to the current Agent’s skills directory. The common path for Cursor is:

~/.cursor/skills/

Example installation command:

skillhub install @user_ff4d9420/astockdataquant --dir ~/.cursor/skills/

For paths of other clients, refer to the SkillHub Installation Documentation. For example, Claude Code uses ~/.claude/skills/, and Codex uses ~/.codex/skills/ or .agents/skills/ under the project. Where the documentation does not elaborate on differences, this article makes no speculation.

After installation, refresh or restart the session according to the conventions of your Agent to ensure the skill is loaded.

Typical Usage

The official page does not list individual CLI subcommands separately. The usage is essentially: propose tasks in the conversation that require real A-share data, and the Agent will read the SKILL.md and embedded scripts within the skill package to complete data fetching and analysis.

Reproducible starting steps are as follows:

  1. Complete the installation in the previous section and confirm the skill coordinate is @user_ff4d9420/astockdataquant.
  2. Clearly state data requirements in analysis tasks, such as: historical K-lines and common technical indicators for a specific stock, sector capital flow, Dragon and Tiger List or Northbound holdings, recent Cailian Press/East Money related news, strategy backtesting with HTML chart generation, etc. (Specifically subject to the interfaces supported by the documentation within the skill).
  3. Have the Agent call the structured results or charts returned by the skill, and then interpret them in the conversation; do not treat numbers generated freely by the model as verified data.

The skill is positioned to be “enabled only when actual data fetching is needed.” It is not suitable for scenarios involving pure opinion discussion or compliance copywriting that do not involve interfaces, to avoid irrelevant loading.

Use Cases and Notes

Who is it for

  • Quantitative researchers, AI developers: Hope to embed public market data and specific data features into Agent workflows
  • Individual investors: Need verifiable data fetching and simple backtesting visualization for market reviews and information aggregation

Usage Notes

  • Data comes from third-party public interfaces and the AkShare ecosystem. Availability, latency, and field meanings are subject to the source site and skill implementation; multi-source degradation reduces the probability of interruption but does not guarantee full field consistency at all times.
  • Backtesting and AI investment diagnosis outputs are results of research tools. They require cross-verification and cannot replace compliant investment advisors.
  • SkillHub statistics (based on the page at the time of crawling): Rating 100000, Downloads 6218; installation volumes etc. will change over time, refer to the real-time data on the skill page.

Conclusion

The A-share Quantitative Analysis Toolbox combines AkShare/MyTT capabilities with the Agent Skill form, using multi-source degradation and caching to alleviate two types of pain points: “AI fabrication of market data” and single-point data source failure. If your task must land on real A-share public data, you can install @user_ff4d9420/astockdataquant on SkillHub and drive the Agent to fetch data according to the skill instructions.

  • SkillHub Skill Page: https://www.skillhub.cn/skills/user_ff4d9420/astockdataquant
  • Skill API Entry (SkillHub): https://api.skillhub.cn/user_ff4d9420/astockdataquant
  • Installation Instructions: https://skillhub.cn/install/skillhub.md
羽毛球分组比赛记分
小程序二维码

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

Xiaoye