首页龙虾技能列表 › Mx Selfselect

Mx Selfselect

v1.0.0

妙想自选管理skill,基于东方财富通行证账户数据及行情底层数据构建,支持通过自然语言查询、添加、删除自选股。

0· 141·12 当前·12 累计
by @jessecq1995 (Jessecq1995)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/3/29
安全扫描
VirusTotal
无害
查看报告
OpenClaw
可疑
medium confidence
The skill mostly does what it claims (manage EastMoney self-selected stocks) but has inconsistencies and missing declarations (env var name mismatch, requirements file with no install spec) that merit caution before installing or running it.
评估建议
This skill appears to implement the stated EastMoney self-select functionality, but take these precautions before installing or running it: - Verify and supply the correct API key: the code expects MX_APIKEY (SKILL.md contains a typo referring to EASTMONEY_APIKEY). Do not set other unrelated secrets into .env unless you intend them to be read. - The script will attempt to read a .env file at the repository root if MX_APIKEY is not in the environment; inspect that file before running to ensure ...
详细分析 ▾
用途与能力
Name, description, SKILL.md, and the Python code are coherent: they call EastMoney API endpoints (mkapi2.dfcfs.com) to query/add/delete self-selected stocks. Nothing in the code requests unrelated cloud credentials or unrelated system access. However the registry metadata lists no required env vars while both SKILL.md and the code require an API key (MX_APIKEY), so the declared requirements are incomplete.
指令范围
Runtime instructions are narrowly scoped to calling the specified EastMoney endpoints and saving CSV/JSON under /root/.openclaw/workspace/mx_data/output/. The code only reads MX_APIKEY (and will try to read a .env file two directories up if the env var is not set). SKILL.md's security note refers to EASTMONEY_APIKEY (a different variable name), which is an inconsistency that could cause confusion or misconfiguration. The .env lookup means the skill may read a repository-level .env file — it only extracts MX_APIKEY but that behavior should be known to users.
安装机制
The skill is instruction-only (no install spec) but includes a scripts/requirements.txt that declares requests>=2.31.0. There is no declared install step to ensure dependencies are present; this mismatch can cause runtime failures or unexpected behavior when the environment lacks the dependency. There are no network downloads or other high-risk install actions in the package itself.
凭证需求
The code only needs a single API key (MX_APIKEY) which is proportional to the stated function. But the registry metadata does not declare this required env var, and SKILL.md inconsistently references EASTMONEY_APIKEY in one place. The script writes files to /root/.openclaw/workspace/mx_data/output/, so it requires write access to that workspace path. The .env file lookup could read other files at repo root, though it only extracts the MX_APIKEY entry.
持久化与权限
The skill does not request always:true, does not modify other skills or system-wide configurations, and only writes outputs to its own workspace directory. Autonomous invocation (disable-model-invocation=false) is the platform default and not itself a concern here.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/3/29

Initial release of mx_self_select skill for managing stock watchlists via natural language. - Supports querying, adding, and deleting self-selected stocks under your Eastmoney account using natural language commands. - Requires API key configuration via the MX_APIKEY environment variable. - Outputs results as CSV and raw JSON files in a dedicated directory. - Provides clear usage examples and error handling for missing configuration or API issues.

● 无害

安装命令 点击复制

官方npx clawhub@latest install mx-selfselect
镜像加速npx clawhub@latest install mx-selfselect --registry https://cn.clawhub-mirror.com

技能文档

通过自然语言查询或操作东方财富通行证账户下的自选股数据,接口返回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 在服务端或受信任的运行环境中使用,不会在前端明文暴露。

使用方式

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查询
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务