← 返回 Skills 市场
eastmoney skills
作者
eastmoney_dev
· GitHub ↗
· v1.0.0
· MIT-0
1121
总下载
1
收藏
9
当前安装
1
版本数
在 OpenClaw 中安装
/install eastmoney-self-select
功能描述
妙想自选管理skill,基于东方财富通行证账户数据及行情底层数据构建,支持通过自然语言查询、添加、删除自选股。
使用说明 (SKILL.md)
妙想自选管理skill (mx_self_select)
通过自然语言查询或操作东方财富通行证账户下的自选股数据,接口返回JSON格式内容。
功能列表
- ✅ 查询我的自选股列表
- ✅ 添加指定股票到我的自选股列表
- ✅ 从我的自选股列表中删除指定股票
配置
- API Key: 通过环境变量
MX_APIKEY设置(与其他妙想技能共享) - 默认输出目录:
/root/.openclaw/workspace/mx_data/output/(自动创建) - 输出文件名前缀:
mx_self_select_ - 输出文件:
mx_self_select_{query}.csv- 自选股列表 CSV 格式mx_self_select_{query}_raw.json- API 原始 JSON 数据
前置要求
-
获取东方财富妙想Skills页面的apikey
-
将apikey配置到环境变量
MX_APIKEY -
确保网络可以访问
https://mkapi2.dfcfs.com⚠️ 安全注意事项
- 外部请求: 本 Skill 会将您的查询文本发送至东方财富官方 API 域名 (
mkapi2.dfcfs.com) 以获取金融数据。 - 凭据保护: API Key 仅通过环境变量
EASTMONEY_APIKEY在服务端或受信任的运行环境中使用,不会在前端明文暴露。
- 外部请求: 本 Skill 会将您的查询文本发送至东方财富官方 API 域名 (
使用方式
1. 查询自选股列表
python3 scripts/mx_self_select.py query
或自然语言查询:
python3 scripts/mx_self_select.py "查询我的自选股列表"
2. 添加股票到自选股
python3 scripts/mx_self_select.py add "贵州茅台"
或自然语言:
python3 scripts/mx_self_select.py "把贵州茅台添加到我的自选股列表"
3. 删除自选股
python3 scripts/mx_self_select.py delete "贵州茅台"
或自然语言:
python3 scripts/mx_self_select.py "把贵州茅台从我的自选股列表删除"
接口说明
查询接口
- URL:
https://mkapi2.dfcfs.com/finskillshub/api/claw/self-select/get - 方法: POST
- Header:
apikey: {MX_APIKEY}
管理接口(添加/删除)
- URL:
https://mkapi2.dfcfs.com/finskillshub/api/claw/self-select/manage - 方法: POST
- Header:
apikey: {MX_APIKEY} - Body:
{"query": "自然语言指令"}
输出示例
查询自选股成功
📊 我的自选股列表
================================================================================
股票代码 | 股票名称 | 最新价(元) | 涨跌幅(%) | 涨跌额(元) | 换手率(%) | 量比
--------------------------------------------------------------------------------
600519 | 贵州茅台 | 1850.00 | +2.78% | +50.00 | 0.35% | 1.2
300750 | 宁德时代 | 380.00 | -1.25% | -4.80 | 0.89% | 0.9
================================================================================
共 2 只自选股
添加/删除成功
✅ 操作成功:贵州茅台已添加到自选股列表
错误处理
- 未配置apikey: 提示设置环境变量
MX_APIKEY - 接口调用失败: 显示错误信息
- 数据为空: 提示用户到东方财富App查询
安全使用建议
This skill appears to do what it says (manage Eastmoney self-select lists) and only needs an API key. Before installing: 1) Confirm which env var your environment should provide (the script uses MX_APIKEY; SKILL.md also mentions EASTMONEY_APIKEY in one place — correct this mismatch). 2) Make sure you trust the external domain mkapi2.dfcfs.com (the skill sends your natural-language queries and the API key there). 3) If you keep secrets in a .env file, be aware the script will try to read it; remove unrelated secrets or run in an isolated environment. 4) Consider overriding the default output directory if you don't want files created under /root/.openclaw/workspace. 5) There is no automatic installer; ensure Python and the 'requests' package are available before running.
功能分析
Type: OpenClaw Skill
Name: eastmoney-self-select
Version: 1.0.0
The skill bundle provides legitimate functionality for managing EastMoney stock watchlists via the official API endpoint (mkapi2.dfcfs.com). The Python script (mx_self_select.py) securely handles the API key via environment variables, implements basic path sanitization for file outputs, and lacks any indicators of malicious execution, data exfiltration, or prompt injection.
能力评估
Purpose & Capability
The name/description (manage Eastmoney self-select) match the code and SKILL.md: the script calls mkapi2.dfcfs.com endpoints for querying and managing the user's self-select list, and exposes query/add/delete operations as described. No unrelated services or permissions are requested.
Instruction Scope
Runtime instructions and the Python script align: requests are POSTed to the documented endpoints and results are printed and saved as CSV/JSON in the configured workspace. The skill will send user query text to the external domain mkapi2.dfcfs.com (expected for this purpose). The script will also try to read a .env file (project root) to find MX_APIKEY if the env var is not set — this could expose other local variables if you rely on a shared .env.
Install Mechanism
There is no automated install spec; the repo includes a requirements.txt listing only the 'requests' package. No external downloads or unusual install steps are present. This is low-risk and typical for an instruction-only Python skill.
Credentials
The code only needs a single API key (expects MX_APIKEY). However, SKILL.md contains an inconsistent reference stating 'EASTMONEY_APIKEY' in one security note while elsewhere and in code it uses 'MX_APIKEY' — that mismatch should be corrected to avoid confusion. The script's fallback to read a .env file may read other secrets present there (it only extracts MX_APIKEY, but the act of reading the file is noteworthy). The skill writes output files under /root/.openclaw/workspace/mx_data/output/ by default.
Persistence & Privilege
The skill is not set to always:true, does not modify other skills, and only writes files to its own workspace path. It does not request elevated system privileges beyond creating its output directory.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install eastmoney-self-select - 安装完成后,直接呼叫该 Skill 的名称或使用
/eastmoney-self-select触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of 妙想自选管理 Skill (mx_self_select):
- Enables querying, adding, and deleting self-selected stocks via natural language or command line, using Eastmoney account data.
- Provides outputs in CSV and JSON formats, stored in a default workspace.
- Requires API key configuration via environment variable `MX_APIKEY`.
- Interacts securely with Eastmoney official API endpoints.
- Includes comprehensive usage instructions and error handling for missing configuration or failed requests.
元数据
常见问题
eastmoney skills 是什么?
妙想自选管理skill,基于东方财富通行证账户数据及行情底层数据构建,支持通过自然语言查询、添加、删除自选股。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1121 次。
如何安装 eastmoney skills?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install eastmoney-self-select」即可一键安装,无需额外配置。
eastmoney skills 是免费的吗?
是的,eastmoney skills 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
eastmoney skills 支持哪些平台?
eastmoney skills 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 eastmoney skills?
由 eastmoney_dev(@qqk000)开发并维护,当前版本 v1.0.0。
推荐 Skills