← 返回 Skills 市场
A-Share Claw (A股龙虾)
作者
ZHAO Youjun
· GitHub ↗
· v0.1.1
· MIT-0
111
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install a-share-claw
功能描述
A-share paper-trading automation workflow for MX APIs. Use when user asks to run scheduled A-share mock trading, enforce risk limits (single position cap, to...
使用说明 (SKILL.md)
A-Share Claw
Execute this workflow for A-share paper trading with MX APIs.
Steps
-
Ensure environment:
MX_APIKEYis set.MX_API_URLdefaults tohttps://mkapi2.dfcfs.com/finskillshub.
-
Ensure runtime files under workspace:
mx_autotrade/config.jsonmx_autotrade/run_autotrade.pymx_autotrade/daily_review.py
-
Ensure schedules (trading days):
09:24run strategy10:30run strategy14:30run strategy (risk-first)15:10run daily review
-
Enforce risk rules:
- Single symbol position cap (
maxPositionPerStock, default 15%) - Total exposure cap (
maxTotalPosition, default 60%) - Auto-cancel stale pending orders (>20 min)
- Single symbol position cap (
-
Daily output:
- Produce review JSON (
mx_autotrade/reviews/review-YYYY-MM-DD.json) - Update README day table with:
Day | Balance | Daily Return(no Day0)
- Produce review JSON (
Quick run commands
python3 mx_autotrade/run_autotrade.py
python3 mx_autotrade/daily_review.py
Notes
- Fail safely: if account is not bound, stop and report clearly.
- Prefer discipline over trade frequency.
安全使用建议
This skill is an instruction-only workflow that expects you to already have three local files (config.json, run_autotrade.py, daily_review.py) and an MX API key. Before installing or running: 1) Confirm the registry metadata omission — supply MX_APIKEY only if you trust the MX endpoint and the key is appropriate for paper trading (use a test key if available). 2) Inspect the contents of mx_autotrade/run_autotrade.py and mx_autotrade/daily_review.py line-by-line (or obtain them from a trusted source); do not run them blind because they can execute arbitrary code. 3) Verify that the risk rules (position caps, stale-order cancellation) are actually implemented in those scripts. 4) If you intend to enable scheduled or automated runs, test manually in an isolated environment or container first and ensure any scheduling mechanism is under your control. 5) Ask the skill author to correct the registry metadata to declare MX_APIKEY and to provide provenance or the actual code if they want the skill to be self-contained.
功能分析
Type: OpenClaw Skill
Name: a-share-claw
Version: 0.1.1
The skill bundle defines a workflow for A-share paper-trading automation using the East Money (dfcfs.com) API. The instructions in SKILL.md focus on legitimate trading activities such as enforcing risk limits, scheduling strategy execution, and generating daily performance reviews. No malicious code, data exfiltration, or harmful prompt injections were found in the provided files.
能力评估
Purpose & Capability
The SKILL.md clearly targets MX APIs and requires an MX_APIKEY (and optional MX_API_URL), which makes sense for an MX-integrated paper‑trading workflow — but the registry metadata lists no required environment variables or primary credential. That mismatch (metadata claims 'none' while runtime needs MX_APIKEY) is an incoherence that should be clarified before use.
Instruction Scope
The instructions tell the agent to ensure and run local scripts (mx_autotrade/run_autotrade.py and mx_autotrade/daily_review.py) and to schedule automated runs. The skill bundle does not include these files; executing them would run arbitrary Python code from the user's workspace. The SKILL.md does not include validation, safety checks, or guidance for verifying these scripts' provenance.
Install Mechanism
There is no install spec (instruction-only). That minimizes installer risk because nothing from the skill itself is downloaded or written to disk.
Credentials
The runtime needs a single service credential (MX_APIKEY), which is proportionate to calling MX APIs. However, the registry metadata fails to declare this required env var/primary credential — the omission is an inconsistency and could cause silent failures or unexpected behavior if users are not alerted to provide the key.
Persistence & Privilege
The skill does not request always:true and has no install actions or system-level configuration changes. Model invocation is allowed (default), which is normal; there is no evidence the skill requests elevated persistence or cross-skill config access.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install a-share-claw - 安装完成后,直接呼叫该 Skill 的名称或使用
/a-share-claw触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.1
Update display name with Chinese alias
v0.1.0
Initial publish
元数据
常见问题
A-Share Claw (A股龙虾) 是什么?
A-share paper-trading automation workflow for MX APIs. Use when user asks to run scheduled A-share mock trading, enforce risk limits (single position cap, to... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 111 次。
如何安装 A-Share Claw (A股龙虾)?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install a-share-claw」即可一键安装,无需额外配置。
A-Share Claw (A股龙虾) 是免费的吗?
是的,A-Share Claw (A股龙虾) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
A-Share Claw (A股龙虾) 支持哪些平台?
A-Share Claw (A股龙虾) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 A-Share Claw (A股龙虾)?
由 ZHAO Youjun(@youjunzhao)开发并维护,当前版本 v0.1.1。
推荐 Skills