Introduction¶
When developing quantitative scripts, conducting post-market reviews, or drafting research reports, the common workflow involves digging through pytdx documentation, cross-referencing TDX (Tongdaxin) protocol fields, and then asking an LLM to “guess” interface names and parameters. Models often mix up outdated examples or miss pagination and market codes, leading to significant rework during the integration phase. This article introduces the “TDX Professional Stock Data Source” on SkillHub. It packages pytdx interface documentation and usage guidelines into an Agent Skill, guiding the model to respond based on a unified reference when users explicitly request market quotes, K-line data, minute-level data, trade details, financial data, or sector information.
What is this?¶
“TDX Professional Stock Data Source” is a community-published (community) Skill located at @user_8c7f0f65/tdx-pro. The current version is 5.0.1, and it is categorized as professional. It is published by SkillHub user user_8c7f0f65, with the author listed as a stock enthusiast. The Skill does not require an API Key (requires_api_key=false).
Its positioning can be summarized as follows: centered around the open-source library pytdx (TDX protocol client), it provides complete API interface references and usage guidance. It aims to solve the problem of “how to fetch data stably and according to documentation during conversational development,” rather than replacing broker terminals or official market data licenses.
Official Access:
- API Coordinate Page: https://api.skillhub.cn/user_8c7f0f65/tdx-pro
- SkillHub Display Page: https://www.skillhub.cn/skills/user_8c7f0f65/tdx-pro
Core Functions¶
According to the SkillHub description, the documented capabilities include:
- Interface descriptions and usage for A-share market quotes and futures market quotes.
- Guidance on acquiring K-line data, minute-level data, and trade details (time-series and tick-by-tick data).
- References and instructions for financial data and sector information interfaces.
- Overall, it revolves around the pytdx library API, serving as a reference for Agents to verify call paths and parameters when users ask questions, instead of relying on fragmented memory.
A specific list of subcommands is not individually listed on the public page; specific interface names and examples are subject to the installed Skill content (usually SKILL.md and attached references).
Installation and Activation¶
SkillHub recommends installation via the skillhub CLI. You must specify the current Agent’s skills directory; otherwise, the default installation to ./skills/ might not be recognized.
1. Check CLI
command -v skillhub && skillhub --version
If not installed, you can follow the SkillHub installation documentation for a full installation or just the CLI:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
2. Install this Skill
Install @user_8c7f0f65/tdx-pro into the skills directory corresponding to your current environment. For example, common paths are ~/.cursor/skills/ for Cursor, ~/.claude/skills/ for Claude Code, and ~/.codex/skills/ or .agents/skills/ within the project for Codex (subject to the client you are actually using):
skillhub install @user_8c7f0f65/tdx-pro --dir ~/.cursor/skills/
Alternatively, you can ask the AI in the conversation to follow the official installation instructions. The prompt provided on the SkillHub page is: Install @user_8c7f0f65/tdx-pro according to https://skillhub.cn/install/skillhub.md.
3. Runtime Dependencies
The Skill provides guidance on using pytdx; to actually fetch data locally or in a sandbox, you still need to install the Python environment and pytdx yourself, and ensure connectivity to TDX market data servers (network and compliance are the user’s responsibility). The Skill itself does not replace market data source authorization.
Typical Usage¶
The public materials do not include a complete, copyable one-click script; the typical workflow is as follows, consistent with the Skill description:
- In an Agent with the Skill enabled, specify the target and market type (e.g., A-share code, futures contract) and data type (K-line cycle, minute data, trade details, financial fields, sector components, etc.) in natural language.
- The Agent selects the interface, parameters, and pagination method based on the pytdx API reference within the Skill, and prompts for local pytdx installation and connection steps (specifics subject to the Skill body).
- Execute the generated calling code locally and verify the returned fields; if the protocol or server list changes, refer to the pytdx project and the updated version of the Skill.
This is suitable for combining “documentation search + boilerplate code writing” into a single conversation, constrained by the Skill to standardize the response structure and interface names.
Use Cases and Notes¶
Who is it for
- Developers already using or planning to use pytdx for research, scripting, or teaching demos.
- Users of clients supporting Skills (like Cursor, Claude Code, Codex) who want the model to answer TDX-related data fetching questions based on a unified reference.
Limitations and Notes
- Data comes from the TDX protocol and public server ecosystem; consistency with commercial terminal latency, permissions, and historical completeness is not guaranteed. Real trading and compliance decisions require independent verification.
- The Skill is from a community source (
community); maintenance frequency depends on the publisher. The version is subject to SkillHub (currently 5.0.1). - “No API Key required” refers to the Skill installation and metadata level; market data connection is still subject to network and pytdx environment conditions.
- SkillHub Statistics (as of page display): Rating 100000, Downloads 38257, Installations 188; numbers will change as the platform updates.
Conclusion¶
If you frequently query A-share or futures K-line, minute, trade detail, financial, or sector data within Agents, “TDX Professional Stock Data Source” solidifies pytdx interface references and usage guidance into a Skill, reducing drift in interface names and parameters. For installation and details, see: https://www.skillhub.cn/skills/user_8c7f0f65/tdx-pro , Coordinate Page: https://api.skillhub.cn/user_8c7f0f65/tdx-pro .