Preface¶
When working with quantitative scripts, market reviews, or financial reconciliation, common practices include writing separate crawlers, connecting to third-party market APIs, or using Python on local machines to read data exported from TongDaXin (TDX). These paths require maintaining data sources, fields, and update logic yourself, which operates on a different level from “asking an Agent in a conversation to check the current price of a stock or pull a segment of daily K-lines.”
The following introduces the community Skill “TongDaXin Data Interface” (coordinate @user_d84187c5/tdx) on SkillHub. It converges real-time and historical quotes for A-shares, indices, and futures, financial parsing, and local TongDaXin data reading into a SKILL.md capability description that Agents can follow. It is suitable for developers already using clients that support Skills (like Cursor, Claude Code) who wish to drive market and K-line queries using natural language.
What is this¶
“TongDaXin Data Interface” is a community Skill on SkillHub classified as professional. The current version is 1.0.0, published by user_d84187c5, with the source labeled as community.
The official description summarizes it as: Provides access to real-time quotes and historical K-line data for A-shares / indices / futures, and supports financial data parsing; it is used when users need to query stock quotes, obtain historical K-lines, analyze financial data, or read local TongDaXin data.
The page tag requires_api_key=false indicates that, according to SkillHub metadata, enabling this Skill does not depend on additional API Key configuration (specifically, it still depends on the runtime environment and local data paths within the Skill body; refer to SKILL.md after installation).
SkillHub Display Page: https://www.skillhub.cn/skills/user_d84187c5/tdx
API Coordinate Page: https://api.skillhub.cn/user_d84187c5/tdx
Core Functions¶
The following capabilities are derived from the official description above; interface names or script names not appearing in the materials are not expanded upon.
- Real-time Quotes: Covers instantaneous quote query scenarios for A-shares, indices, and futures-related subjects.
- Historical K-lines: Supports fetching historical K-line data as needed, used for data preparation prior to backtesting, review, or chart analysis.
- Financial Data Parsing: In financial analysis conversations, the Skill side provides guidance for parsing and utilizing financial data.
- Local TongDaXin Data: Supports reading data generated by the local TongDaXin client, suitable for users who already have TongDaXin installed and wish for the Agent to work directly based on local library files or export directories.
Installation and Activation¶
SkillHub recommends using its CLI to install the Skill to the skills directory actually recognized by the current Agent; installing to the wrong directory will prevent the Agent from loading it. You need to specify --dir separately based on the client being used.
1. Install SkillHub CLI (if not already installed)¶
First, check if the CLI exists:
command -v skillhub && skillhub --version
If not installed, you can follow the SkillHub installation documentation to perform a full installation (including CLI and default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
To install only the CLI:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
2. Install this Skill¶
Installation command format (replace <skills directory> with the actual environment path):
skillhub install @user_d84187c5/tdx --dir <skills directory>
Common Skills directory examples provided in SkillHub documentation:
- Claude Code:
~/.claude/skills/ - Cursor:
~/.cursor/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project - Windsurf:
~/.codeium/windsurf/skills/or.windsurf/skills/under the project
If not using the CLI for the time being, the SkillHub page also provides a “Send prompt to your AI” method: Ask the Agent to install @user_d84187c5/tdx based on https://skillhub.cn/install/skillhub.md.
After installation is complete, restart or refresh the Agent according to the client’s requirements to load the new Skill; specific trigger words and tool steps should be based on the SKILL.md within the installation package.
Typical Usage¶
The public page does not include copyable code examples; usage is primarily based on the intent description in the official introduction: provided the Skill is enabled and the Agent can access the Skill body, simply use natural language to request tasks related to quotes, K-lines, finance, or local TongDaXin data.
For example (phrasing must be consistent with SKILL.md; the following are typical scenarios from the introduction, not independent API calls):
- Query the real-time quote of a certain A-share or index.
- Specify the subject and time range to obtain historical K-lines.
- Perform financial data analysis centered on financial reports or metrics (depending on the parsing method defined within the Skill).
- Explain the location or reading method of local TongDaXin data, allowing the Agent to read local TongDaXin data.
After installing via the steps above, if the Agent does not invoke capabilities as expected, you should first open the SKILL.md in the installed directory, verify prerequisites (such as local TongDaXin path, Python environment, etc.), and then adjust the subject code, cycle, and date range in the conversation.
Applicable Scenarios and Notes¶
Who it is for
- Already using Skills in environments like Cursor, Claude Code, Codex, and wishing to reduce the repetitive labor of “writing market scripts every time.”
- Data sources are primarily A-shares, indices, futures, and the TongDaXin ecosystem; focused on conversational price checking, pulling K-lines, and lightweight financial reconciliation.
- Wish to use a professionally maintained community market Skill on SkillHub, with metadata indicating no additional API Key is required (
requires_api_key=false).
Limitations and Notes
- The source is community, behavior and update rhythm are maintained by the publisher; it is recommended to verify data accuracy and latency locally before using in production environments.
- When reading local TongDaXin data, it depends on whether TongDaXin is installed on the local machine and if the data directory is complete and readable; the file access permissions of the Agent’s runtime environment must be consistent with SKILL.md requirements.
- SkillHub page statistics (as of data capture): Rating 100000, Downloads 18372, Installs 42; popularity does not equal compliance or investment advice, market and financial conclusions still require cross-verification.
- Field differences between futures, indices, and individual stocks are significant; clearly state the code, market, and cycle in the conversation to avoid Agent ambiguity matching.
Conclusion¶
“TongDaXin Data Interface” converges market quotes, K-lines, financial parsing, and local TongDaXin reading into a single Agent Skill, suitable for completing common A-share related data tasks via conversation in clients that support Skills. When installing, remember skillhub install @user_d84187c5/tdx --dir <skills directory>, and prioritize reading the SKILL.md after installation.
Official Entry: https://api.skillhub.cn/user_d84187c5/tdx
SkillHub Display: https://www.skillhub.cn/skills/user_d84187c5/tdx