← Back to Skills Marketplace
qqk000

eastmoney skills

by eastmoney_dev · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
1121
Downloads
1
Stars
9
Active Installs
1
Versions
Install in OpenClaw
/install eastmoney-self-select
Description
妙想自选管理skill,基于东方财富通行证账户数据及行情底层数据构建,支持通过自然语言查询、添加、删除自选股。
README (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查询
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install eastmoney-self-select
  3. After installation, invoke the skill by name or use /eastmoney-self-select
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug eastmoney-self-select
Version 1.0.0
License MIT-0
All-time Installs 9
Active Installs 9
Total Versions 1
Frequently Asked Questions

What is eastmoney skills?

妙想自选管理skill,基于东方财富通行证账户数据及行情底层数据构建,支持通过自然语言查询、添加、删除自选股。 It is an AI Agent Skill for Claude Code / OpenClaw, with 1121 downloads so far.

How do I install eastmoney skills?

Run "/install eastmoney-self-select" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is eastmoney skills free?

Yes, eastmoney skills is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does eastmoney skills support?

eastmoney skills is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created eastmoney skills?

It is built and maintained by eastmoney_dev (@qqk000); the current version is v1.0.0.

💬 Comments