Data & analysis

A股模拟持仓分析

Try it

当用户明确请求查询模拟交易持仓、账户余额、订单信息、历史成交记录、模拟账户中的买卖操作、取消模拟订单,或者发布关于模拟交易经验的帖子时,可以使用此技能来处理 Eastmoney MX 模拟股票投资组合的相关操作。该技能仅适用于模拟的 A 股交易练习,不得用于实际资金交易、投资建议、监控名单操作、股票筛选、新闻研究,或仅包含报价数据的操作。

What it does

Use this skill for Eastmoney MX simulated stock portfolio operations when the user explicitly asks to query mock trading holdings, account balance, orders, historical fills, buy/sell in a simulated account, cancel mock orders, or publish simulated trading experience posts. This skill is only for simulated A-share trading practice and must not be used for real-money trading, investment advice, watchlist actions, stock screening, news research, or quote-only data.

The skill document

mx-moni

Use mx_moni.py for the user's Eastmoney MX simulated portfolio. Operations may mutate a simulated account, so keep routing strict.

Trigger Boundaries

  • Use for simulated portfolio: holdings, funds, orders, historical fills, buy, sell, cancel, one-click cancel, and simulated trading post.
  • Proceed with buy/sell/cancel only when the user explicitly states the simulated-trading action and provides required details.
  • Do not use for real brokerage trading or real-money instructions.
  • Do not use for watchlist operations (mx-zixuan), screening candidates (mx-xuangu), latest data (mx-data), or news/event analysis (mx-search).

Inputs

  • Required environment: MX_APIKEY.
  • Optional environment: MX_API_URL defaults to https://mkapi2.dfcfs.com/finskillshub; MX_OUTPUT_DIR defaults to ~/.codex/skills-output/mx_data/output.
  • Query/holdings/balance/orders: natural-language instruction is enough.
  • Buy/sell: stock code, quantity, and either price or market-price wording.
  • Cancel: order id or explicit "撤销所有/一键撤单".
  • New post: explicit request plus post text; the script prompts for text interactively.

Workflow

  1. Confirm the request is for the simulated portfolio, not real trading.
  2. Identify intent: positions, balance, orders, buy, sell, cancel, or newPost.
  3. For mutating operations, ensure required inputs are present. Ask before guessing price, quantity, order id, or stock.
  4. Run:
python /Users/lu/.codex/skills/mx-moni/mx_moni.py "我的持仓"
python /Users/lu/.codex/skills/mx-moni/mx_moni.py "市价买入 000001 100 股"
python /Users/lu/.codex/skills/mx-moni/mx_moni.py "撤销所有未成交委托"
  1. Report the formatted result and generated JSON/TXT paths.
  2. For endpoint and payload details, read references/api.md.

Output Contract

  • State that results are from a simulated account.
  • For holdings/balance, summarize assets, available funds, positions, and P/L when returned.
  • For orders/fills, summarize order status and key identifiers.
  • For buy/sell/cancel, report API status and do not imply success if the response is missing or failed.

Failure Handling

  • Missing MX_APIKEY: stop and ask for configuration.
  • No simulated portfolio bound: tell the user to create/bind one in the MX Skills page.
  • Missing trade inputs: ask for exact stock code, quantity, and price/market choice.
  • API rejection: surface the message and do not retry mutating operations automatically.
  • Encoding for new posts: keep UTF-8 JSON and Content-Type: application/json; charset=UTF-8.

Validation

  • Use evals/evals.json after changing routing or the script.
  • Positive tests must include query and mutation prompts; negative tests must include real-trading, watchlist, screening, and quote-only prompts.

Related skills

当用户需要查找股票、上市公司、行业成分股、指数成分股,或者根据市场、估值、财务、行业等方面的限制条件(如市盈率、净资产收益率、价格、增长情况、成交量、行业状况、董事会情况或特定概念等)来推荐股票时,可以使用此技能进行 Eastmoney MX 基于条件的股票筛选和宇宙搜索功能。但请勿用于单只股票的报价或财务数据查询(请使用 mx-data),新闻/事件研究(请使用 mx-search),观察清单中的操作(请使用 mx-zixuan),或模拟交易操作(请使用 mx-moni)。

1 installs

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

1 installs

使用 FinXData 已开放的 A 股与港股模拟交易能力。适用于用户要求管理 A 股或港股自选股、创建或查询对应市场的模拟账户、提交或查询模拟订单、查看持仓、成交、资金流水、资产与收益、撤单或重置账户的场景。港股模拟交易已完整开放:A 股账户使用人民币和 T+1,港股账户使用港币和 T+0。

Free no-API-key A-share ecosystem data query skill for OpenClaw and Hermes. Use when users ask for A股、沪深京股票、指数、ETF/LOF、可转债、行业/概念板块、实时行情、K线、涨跌排行、涨停/跌停/炸板、资金流、...

by Wu Bo Yu16 installs

每日A股行情研判编排器(纯云端版,无需MCP连接器,无需电脑开机)。分步执行:日历检查→行情数据→新闻简报→持股诊断→自选股分析→ERP计算→组装报告→上传IMA知识库。运行前请确保已安装依赖技能:stock-price-query-mx、tecent-finance、eastmoney-mx-skills-su...

1 installs

MX (mx.com). Use this skill for ANY MX request — reading, creating, updating, and deleting data. Whenever a task involves MX, use this skill instead of calling the API directly.

1 installs