eastmoney skills

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

MIT-0 · Free to use, modify, and redistribute. No attribution required.
1 · 603 · 7 current installs · 7 all-time installs
byeastmoney_dev@qqk000
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.0.0
Download zip
latestvk97eq2cn9j8jczdn3n5jecfd5n8330a8

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

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 数据

前置要求

  1. 获取东方财富妙想Skills页面的apikey

  2. 将apikey配置到环境变量 MX_APIKEY

  3. 确保网络可以访问 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查询

Files

3 total
Select a file
Select a file to preview.

Comments

Loading comments…