TTokenySpace
返回 Skills 列表

A股自选股

当用户明确请求查询、添加或删除个人观察清单/自选列表中的股票时,可以使用此技能来进行操作。例如,可以使用诸如“我的自选”、“查询自选”、“加入自选”、“添加到自选”、“删除自选”或“从自选移除”等指令来实现这些操作。请勿将此技能用于报价/金融数据查询(请使用 mx-data)、新闻研究(请使用 mx-search)、筛选候选股票(请使用 mx-xuangu)或模拟交易(请使用 mx-moni)等场

#中文
0

安装到 Tokeny(自动)

下载 ZIP
安装"mx-zixuan"技能
技能信息:
- 名称: A股自选股
- 标识: mx-zixuan
- 描述: 当用户明确请求查询、添加或删除个人观察清单/自选列表中的股票时,可以使用此技能来进行操作。例如,可以使用诸如“我的自选”、“查询自选”、“加入自选”、“添加到自选”、“删除自选”或“从自选移除”等指令来实现这些操作。请勿将此技能用于报价/金融数据查询(请使用 mx-data)、新闻研究(请使用 mx-search)、筛选候选股票(请使用 mx-xuangu)或模拟交易(请使用 mx-moni)等场
- 版本: 1.0.0
下载地址:
https://www.tokeny.space/api/skills/mx-zixuan/download
继续

复制上方内容到 Tokeny 客户端并在会话中发送即可自动安装;也可直接 下载 ZIP并拖动到技能窗口安装。

技能介绍

Use this skill for Eastmoney MX self-selected stock watchlist management when the user explicitly asks to query, add, or delete stocks in their personal watchlist/self-select list, using phrases such as 我的自选, 查询自选, 加入自选, 添加到自选, 删除自选, or 从自选移除. Do not use for quote/financial data (use mx-data), news research (use mx-search), screening candidates (use mx-xuangu), or simulated trading (use mx-moni).

SKILL.md

mx-zixuan

Use mx_zixuan.py to query or mutate the user's Eastmoney self-selected stock list.

Trigger Boundaries

  • Use only for watchlist/self-select operations: query list, add stock, delete stock.
  • Treat add/delete as account-mutating actions. Proceed when the user explicitly names the action and stock; ask once when the stock or action is ambiguous.
  • Do not use this skill to recommend what should be added unless the user separately asks for screening/analysis.
  • Do not use for simulated portfolio holdings; use mx-moni.

Inputs

  • Query: no stock required.
  • Add/delete: stock name or 6-digit code required. Prefer code when the name may map to multiple securities.
  • Require MX_APIKEY. Optional: set MX_OUTPUT_DIR; otherwise output goes to ~/.codex/skills-output/mx_data/output.

Workflow

  1. Classify the action: query, add, or delete.
  2. For add/delete, verify that the user's instruction is explicit enough to mutate the watchlist.
  3. Run one of:
python /Users/lu/.codex/skills/mx-zixuan/mx_zixuan.py query
python /Users/lu/.codex/skills/mx-zixuan/mx_zixuan.py add "贵州茅台"
python /Users/lu/.codex/skills/mx-zixuan/mx_zixuan.py delete "贵州茅台"
python /Users/lu/.codex/skills/mx-zixuan/mx_zixuan.py "把比亚迪加入自选"
  1. Report the operation result and generated CSV/JSON path if any.
  2. For output field interpretation, read references/result-fields.md.

Output Contract

  • Query: summarize total count and show key fields such as code, name, latest price, change, turnover, and volume ratio when returned.
  • Add/delete: state whether the operation succeeded and echo the stock/action.
  • Do not claim the list changed unless the API response indicates success.

Failure Handling

  • Missing MX_APIKEY: stop and ask for configuration.
  • Ambiguous stock: ask for code or full name.
  • Already exists / not in list: report the API message and suggest querying the list.
  • Empty list: say it is empty and mention add flow.
  • API/network errors: report the error and do not retry mutating operations automatically.

Validation

  • Use evals/evals.json after changing routing, especially to ensure ordinary quote and screening prompts do not trigger watchlist mutation.

评论

加载中…