← Back to Skills Marketplace
158
Downloads
0
Stars
2
Active Installs
6
Versions
Install in OpenClaw
/install stock-assistant
Description
A股交易辅助工具,集行情查询、交易记录管理、盈亏分析于一体。 用于:(1) 查询A股实时行情 (2) 管理交易记录 (3) 计算持仓和盈亏 (4) 导入/导出CSV 代码目录:D:\aicode\stock-assistant(跨平台:代码会自动适配路径) 调用方式:from fetcher import get...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install stock-assistant - After installation, invoke the skill by name or use
/stock-assistant - Provide required inputs per the skill's parameter spec and get structured output
Version History
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股交易辅助工具:行情查询(东方财富+腾讯+新浪)、交易记录管理、盈亏分析、资金流、飞书定时推送
Metadata
Frequently Asked Questions
What is stock-assistant?
A股交易辅助工具,集行情查询、交易记录管理、盈亏分析于一体。 用于:(1) 查询A股实时行情 (2) 管理交易记录 (3) 计算持仓和盈亏 (4) 导入/导出CSV 代码目录:D:\aicode\stock-assistant(跨平台:代码会自动适配路径) 调用方式:from fetcher import get... It is an AI Agent Skill for Claude Code / OpenClaw, with 158 downloads so far.
How do I install stock-assistant?
Run "/install stock-assistant" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is stock-assistant free?
Yes, stock-assistant is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does stock-assistant support?
stock-assistant is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created stock-assistant?
It is built and maintained by 退役前写代码的 (@54meteor); the current version is v1.2.0.
More Skills