← 返回 Skills 市场
54meteor

stock-assistant

作者 退役前写代码的 · GitHub ↗ · v1.2.0 · MIT-0
cross-platform ⚠ suspicious
158
总下载
0
收藏
2
当前安装
6
版本数
在 OpenClaw 中安装
/install stock-assistant
功能描述
A股交易辅助工具,集行情查询、交易记录管理、盈亏分析于一体。 用于:(1) 查询A股实时行情 (2) 管理交易记录 (3) 计算持仓和盈亏 (4) 导入/导出CSV 代码目录:D:\aicode\stock-assistant(跨平台:代码会自动适配路径) 调用方式:from fetcher import get...
安全使用建议
This skill appears to do what it claims: fetch A‑share quotes, manage/import/export trades, compute P&L, and optionally push to Feishu. Before installing/running: 1) Review and install the Python dependency (requests). 2) Be aware the tool writes a local SQLite DB (data/trades.db) in the project folder — run it in a directory you control. 3) If you use the Feishu features, provide webhook/app credentials only to trusted recipients; the tool will POST data you choose to send. 4) CSV note: sample and import files contain cells starting with '='; exported CSVs may be interpreted as formulas by Excel — consider sanitizing leading '=' if you open CSVs in spreadsheet programs to avoid CSV/Excel injection. 5) If you need higher assurance, inspect the fetcher module (it calls Tencent/EastMoney/Sina endpoints) to confirm acceptable endpoints and behaviour.
功能分析
Type: OpenClaw Skill Name: stock-assistant Version: 1.2.0 The skill bundle provides a functional A-share stock assistant, but it is classified as suspicious due to its high-risk capabilities, including network access to multiple external financial APIs and Feishu notification endpoints (fetcher.py), and local file system access for database and CSV management (db.py, trader.py). While these features are aligned with the stated purpose, the 'notify' command in main.py allows sending data to arbitrary external webhooks, and the CSV import functionality in trader.py lacks path sanitization, which could be exploited for unauthorized file access or data exfiltration if the agent is misdirected.
能力评估
Purpose & Capability
Name/description match the included modules: fetcher (行情), trader (交易记录/盈亏), db (SQLite storage), notify (飞书). No unrelated cloud credentials or binaries are required. requirements.txt only lists requests, which is reasonable for HTTP fetching.
Instruction Scope
SKILL.md and CLI only direct the agent to query quotes, read/write a local SQLite DB under data/, import/export CSV, and optionally POST to Feishu endpoints (webhook or private API). There is no instruction to read unrelated system files or environment secrets. Note: CSV samples include fields beginning with '=' (Excel-style formulas) — the importer/exporter do not sanitize leading '=' values, which can cause CSV/Excel injection when a user opens exported/imported CSVs in spreadsheet apps (security/privacy risk). Also SKILL.md repeatedly uses a Windows path (D:\...) in examples; code itself adapts to relative paths — documentation is slightly Windows‑centric but functionally consistent.
Install Mechanism
No install spec that downloads arbitrary code; repository is delivered as code files and a simple requirements.txt (requests). This is low-risk and proportionate for a Python script that performs HTTP requests.
Credentials
The skill declares no required environment variables or primary credential. Feishu integration uses CLI arguments (webhook URL or app_id/app_secret/receive_id) which is reasonable. There are no requests for unrelated credentials (AWS, GitHub tokens, etc.).
Persistence & Privilege
The skill stores data locally in data/trades.db (SQLite) and creates the data directory if missing — expected for a trade-record tool. always:false and no modification of other skills or system-wide agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install stock-assistant
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /stock-assistant 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.0
字段映射修正:(1)fields[7]仟元×1000 (2)fields[6]直接手 (3)总市值/流通市值顺序 (4)field[52]市盈率 (5)卖一~卖五索引;新增StockFetcher.format_quote方法;更新references/design.md
v1.1.0
新增资金流明细字段(超大单/大单/中单/小单净流入两组周期)、历史主力净流入、委比/委差;修正子龙 DESIGN.md 硬编码路径
v1.0.3
新增交易时段每分钟盯盘 cron 示例;补充 Windows schtasks 每分钟盯盘写法;增加操作注意事项
v1.0.2
移除所有硬编码路径;补全 requires 节;定时任务示例改为 cron/schtasks 标准写法;DESIGN.md 同步清理
v1.0.1
移除所有硬编码路径,改用相对路径自动适配;飞书配置凭证改为用户自备;数据源说明修正为东方财富主源
v1.0.0
A股交易辅助工具:行情查询(东方财富+腾讯+新浪)、交易记录管理、盈亏分析、资金流、飞书定时推送
元数据
Slug stock-assistant
版本 1.2.0
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 6
常见问题

stock-assistant 是什么?

A股交易辅助工具,集行情查询、交易记录管理、盈亏分析于一体。 用于:(1) 查询A股实时行情 (2) 管理交易记录 (3) 计算持仓和盈亏 (4) 导入/导出CSV 代码目录:D:\aicode\stock-assistant(跨平台:代码会自动适配路径) 调用方式:from fetcher import get... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 158 次。

如何安装 stock-assistant?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install stock-assistant」即可一键安装,无需额外配置。

stock-assistant 是免费的吗?

是的,stock-assistant 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

stock-assistant 支持哪些平台?

stock-assistant 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 stock-assistant?

由 退役前写代码的(@54meteor)开发并维护,当前版本 v1.2.0。

💬 留言讨论