← Back to Skills Marketplace
liuli4

Stock Price Query MX

by LiuLi · GitHub ↗ · v1.1.4 · MIT-0
cross-platform ⚠ suspicious
67
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install stock-price-query-mx
Description
实时股票行情查询,支持 A 股、港股、美股及大盘指数,支持批量查询。无需 API Key。Real-time stock & index quotes for A-shares, HK & US markets. Batch supported.
Usage Guidance
This skill appears to implement real-time stock queries, but there are inconsistencies and risky behaviors you should consider before installing: - The README claims 'no API Key', yet the Python code tries to use EM_API_KEY (from env) or reads /root/.openclaw/workspace/vault/credentials/eastmoney.json. That means it may attempt to access platform-stored credentials without declaring it. Do not install unless you accept that behavior. - The script invokes another skill's script at /root/.openclaw/workspace/skills/mx-finance-data/scripts/get_data.py and then reads Excel files that the other script outputs. That cross-skill access can read or process files outside this skill and could be used to access sensitive workspace data. Ask the author why this cross-skill call is necessary and request that the required functionality be included in this skill or replaced by direct, documented API calls. - The skill uses pandas and reads Excel files but lists only python3 as a required binary. Verify that the runtime environment has needed Python packages, or that a safe install plan is provided. - If you must use it: run the skill in a restricted/sandboxed agent environment that prevents access to /root/.openclaw/workspace and the vault, or inspect the external get_data.py file and the eastmoney.json vault contents first. Prefer versions that use only public HTTP APIs (qt.gtimg.cn) without accessing platform vaults or other skills. What would change this assessment: if the publisher provides an explanation showing the mx-finance-data get_data.py is bundled and audited as part of this skill (not an unaudited external script), if the skill is updated to stop reading platform vault paths and instead documents required API keys explicitly, or if the code is modified to only use public APIs and to declare required dependencies (pandas) clearly.
Capability Analysis
Type: OpenClaw Skill Name: stock-price-query-mx Version: 1.1.4 The skill is classified as suspicious due to its practice of accessing sensitive credential files from a hardcoded path (`/root/.openclaw/workspace/vault/credentials/eastmoney.json`) and executing scripts from an external skill directory (`mx-finance-data`) using `subprocess.run`. While `scripts/stock_query.py` implements regex-based input validation to prevent simple shell injection, the hardcoded reliance on specific filesystem structures and cross-skill execution increases the attack surface and potential for unauthorized data access within the OpenClaw environment. The script also interacts with the external domain `qt.gtimg.cn` for data retrieval.
Capability Tags
requires-sensitive-credentials
Capability Assessment
Purpose & Capability
The description claims 'no API Key' and 'zero dependencies', but the included scripts try to obtain an EM_API_KEY (from env or from /root/.openclaw/workspace/vault/credentials/eastmoney.json) and call an external mx-finance-data script under /root/.openclaw/workspace/skills/.... Accessing a vault file and another skill's scripts is not required for a simple public-API stock query and does not align with the 'no API Key / zero-dependency' claim.
Instruction Scope
SKILL.md instructs running the included script in the skill dir, but the script's runtime behavior expands scope: it spawns subprocesses that run /root/.openclaw/workspace/skills/mx-finance-data/scripts/get_data.py, parses stdout to find file paths and then reads Excel files and (optionally) pandas output. The script also tries to read a credential file from the platform vault. These actions access platform-internal paths and other skills' artifacts beyond the described functionality.
Install Mechanism
No install spec (instruction-only) so nothing is downloaded at install time — lower install risk. However, runtime imports (pandas, reading Excel) are required but not declared, so execution may fail or pull in packages at runtime. The use of subprocess to execute other workspace scripts increases runtime dependencies and risk.
Credentials
The skill declares no required env vars, but the code reads EM_API_KEY from the environment and, if absent, attempts to read a credentials JSON from the platform vault path. Requesting or accessing an internal vault file and passing EM_API_KEY into subprocesses is disproportionate to a 'no-API-key' stock price tool and raises risk of secret access/exfiltration.
Persistence & Privilege
always:false (good), but the script directly invokes another skill's script via an absolute path in the shared workspace and reads files from the workspace/vault. While it doesn't set 'always' or alter other skills' configs, accessing other skills' code and platform credential locations crosses containment boundaries and grants more privilege than expected for a query helper.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install stock-price-query-mx
  3. After installation, invoke the skill by name or use /stock-price-query-mx
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.4
修复港股数据延迟问题:港股改用妙想数据服务(实时),A 股/美股继续使用腾讯 API。混合数据源策略确保所有市场数据实时准确。
Metadata
Slug stock-price-query-mx
Version 1.1.4
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Stock Price Query MX?

实时股票行情查询,支持 A 股、港股、美股及大盘指数,支持批量查询。无需 API Key。Real-time stock & index quotes for A-shares, HK & US markets. Batch supported. It is an AI Agent Skill for Claude Code / OpenClaw, with 67 downloads so far.

How do I install Stock Price Query MX?

Run "/install stock-price-query-mx" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Stock Price Query MX free?

Yes, Stock Price Query MX is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Stock Price Query MX support?

Stock Price Query MX is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Stock Price Query MX?

It is built and maintained by LiuLi (@liuli4); the current version is v1.1.4.

💬 Comments