A股实时行情数据
v1.0.0Fetch China A-share stock market data (bars, realtime quotes, tick-by-tick transactions) via mootdx/TDX protocol. Use when working with Chinese stock data, mootdx library, TDX quotes, intraday minute bars, transaction history, or real-time A-share market data.
⭐ 2· 1.9k·21 current·22 all-time
bytaktiko@wangdinglu
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
OpenClaw
Suspicious
medium confidencePurpose & Capability
The name/description align with the artifacts: SKILL.md, api-reference, and a setup script all focus on mootdx/tdxpy access to A-share data. No unrelated credentials or external services are requested. However, documentation claims (async API, automatic patching in a MootdxClient.__init__()) don't cleanly match the provided script and demo (which use synchronous mootdx calls), indicating sloppy or inconsistent documentation.
Instruction Scope
Runtime instructions tell the agent to pip install mootdx and run the included setup_and_verify.py, which will connect to TDX servers and fetch real market data. The SKILL.md instructs applying a global monkey-patch (tdxpy.hq.time_frame = lambda: True) to bypass trading-hour checks. The docs also demand a 'trading calendar service' without providing or declaring one. The async usage in SKILL.md (await client.get_bars(...)) conflicts with the synchronous demo script (client.bars(...)), and SKILL.md refers to a MootdxClient.__init__() patch that does not appear in the included code. These discrepancies grant the skill broad runtime discretion and make its behavior ambiguous.
Install Mechanism
There is no custom installer; the provided script calls pip install mootdx (a public PyPI package). No downloads from unknown hosts, URL shorteners, or extracted archives are present. Installing mootdx/tdxpy/pandas is expected for this functionality.
Credentials
The skill requires no environment variables, secrets, or config paths. That is proportionate to the stated purpose of fetching public market data via mootdx.
Persistence & Privilege
The skill does not request persistent 'always' inclusion and does not modify other skills or system-wide configs. However, it instructs a global in-process monkey-patch of tdxpy.hq.time_frame which will affect any code running in the same interpreter process; this is a runtime side-effect (not persistent on disk) but could have surprising effects if run in multi-skill or long-lived agent processes.
What to consider before installing
What to consider before installing:
- The skill appears to do what it claims (use mootdx to fetch A-share market data) and installs only public Python packages, so there is no upstream download-from-untrusted-host risk.
- However the skill applies a global monkey-patch (tdxpy.hq.time_frame = lambda: True) to bypass trading-hour checks. That changes library behavior for the entire process and can mask legitimate empty-result conditions — run this in an isolated environment (virtualenv/container) and only if you understand the implication.
- Documentation and code are inconsistent: SKILL.md shows async 'await' usage and claims the patch is applied in a MootdxClient.__init__(), while the included script uses synchronous mootdx APIs and applies the patch at script runtime. Expect to inspect/adjust call patterns when integrating.
- The skill references a 'trading calendar service' but does not provide or require one; determine how you'll supply trading-day logic so queries don't return unexpected results.
- Operational caution: the setup script will pip install packages and make network calls to TDX servers when run (connectivity test/demo). If you want to audit behavior first, run the script with --check (verify only) and review the code. Prefer running the demo in an isolated environment and review the patching lines before trusting results.
If you need this functionality but want to reduce risk: inspect and remove/modify the automatic monkey-patch, or make it opt-in; fix the async/sync inconsistencies; and supply/declare the trading calendar dependency explicitly.Like a lobster shell, security has layers — review code before you run it.
latestvk97f0egek4720va7syfre7y27s80t35z
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
