返回技能市场已安装?在 Tokeny 中打开
A股模拟持仓分析
当用户明确请求查询模拟交易持仓、账户余额、订单信息、历史成交记录、模拟账户中的买卖操作、取消模拟订单,或者发布关于模拟交易经验的帖子时,可以使用此技能来处理 Eastmoney MX 模拟股票投资组合的相关操作。该技能仅适用于模拟的 A 股交易练习,不得用于实际资金交易、投资建议、监控名单操作、股票筛选、新闻研究,或仅包含报价数据的操作。
在 Tokeny 中使用「A股模拟持仓分析」
- 下载 Tokeny 客户端
- 一键安装此技能
- 直接在对话中使用
在电脑上打开此页面
Tokeny 是桌面客户端,请在 Windows、macOS 或 Linux 电脑上打开此页面下载。
SKILL.md
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_URLdefaults tohttps://mkapi2.dfcfs.com/finskillshub;MX_OUTPUT_DIRdefaults 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
- Confirm the request is for the simulated portfolio, not real trading.
- Identify intent: positions, balance, orders, buy, sell, cancel, or newPost.
- For mutating operations, ensure required inputs are present. Ask before guessing price, quantity, order id, or stock.
- 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 "撤销所有未成交委托"
- Report the formatted result and generated JSON/TXT paths.
- 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.jsonafter 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.
Tokeny 是什么
- 免费的桌面 AI 助手,支持 Windows、macOS 和 Linux。
- 说一句话就能处理文件、生成文档与表格、执行多步骤任务。
- 通过技能和 MCP 扩展能力,一键安装市场里的资源。
评论与讨论
0/2000
还没有评论,分享你的体验吧。