← Back to Skills Marketplace
213
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install stock-portfolio
Description
股票组合管理与预警技能。支持 A 股/港股/美股行情查询、持仓跟踪、收益计算、价格预警、每日推荐。使用免费 API(腾讯财经),数据本地存储。
Usage Guidance
This skill appears internally consistent for a local stock portfolio manager: it only calls public finance APIs and stores JSON files in its own data directory. Before installing/run:
- Review the full code (you received some truncated file listings) to confirm there are no hidden network calls or unexpected behavior. Run it in a sandbox or VM first.
- Note a code bug: data_sources.py (DataSourceManager) shows a likely typo/bug (assignment to undefined name 'source') — expect runtime errors; consider fixing or reviewing the module before use.
- Cron examples assume /root paths and show piping output into openclaw message send; if you configure cron, ensure the target chat ID and message command are correct and trusted — otherwise alerts/reports could be sent to external recipients.
- The skill uses unencrypted HTTP endpoints for some APIs (qt.gtimg.cn, hq.sinajs.cn, push2.eastmoney.com). That can be tampered with on insecure networks; consider switching to HTTPS-capable sources (Yahoo/official HTTPS endpoints) or run behind a trusted network.
- Data privacy: holdings/alerts/history are stored locally under the skill workspace; back them up if important. The skill does not exfiltrate this data on its own, but any cron or notification configuration that sends data to third-party messaging channels will transmit it.
If you want higher assurance, ask the author for a corrected/reviewed data_sources.py, or run a line-by-line audit and unit tests (especially network code) before making the skill autonomous.
Capability Analysis
Type: OpenClaw Skill
Name: stock-portfolio
Version: 1.0.0
The stock-portfolio skill is a legitimate tool for tracking stock prices and managing a personal portfolio using public, unauthenticated APIs from Tencent, Sina, and EastMoney. The Python scripts (stock_fetch.py, portfolio_manager.py, daily_picks.py) use standard libraries to fetch market data and store user holdings locally in JSON format. No evidence of data exfiltration, unauthorized network calls, or malicious prompt injection was found.
Capability Assessment
Purpose & Capability
Name/description (portfolio management, alerts, daily picks) align with the files and runtime instructions. The only network activity is toward public finance APIs (Tencent, Sina, EastMoney, Yahoo) which is expected for this purpose. No environment variables, credentials, or unrelated binaries are requested.
Instruction Scope
SKILL.md directs the agent to run the included Python scripts and optionally set up cron jobs. The scripts operate on local JSON files under a workspace data directory and call public finance HTTP APIs — this matches the documented scope. Notes: cron examples use absolute /root paths and openclaw message send examples (these are just examples but could leak alert output to configured chat targets if misused). Also the free APIs used are HTTP and may be susceptible to MITM or modification in transit.
Install Mechanism
There is no install spec (instruction-only style) — code files are included and nothing is downloaded or installed automatically. This is the lower-risk pattern. You should still review and run code locally rather than allowing any automatic install.
Credentials
The skill requires no credentials or environment variables, and stores data locally in a skill-specific data directory. Requested access is proportionate to a portfolio/alert tool. There are no demands for unrelated secrets or system config paths.
Persistence & Privilege
always:false (not forced into every agent session). The skill stores only its own data under a local data directory and does not modify other skills or global agent config. Cron integration is optional and user-configured.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install stock-portfolio - After installation, invoke the skill by name or use
/stock-portfolio - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
股票组合管理与预警技能 - 支持 A 股/港股/美股行情查询、持仓跟踪、收益计算、价格预警、每日推荐
Metadata
Frequently Asked Questions
What is Stock Portfolio?
股票组合管理与预警技能。支持 A 股/港股/美股行情查询、持仓跟踪、收益计算、价格预警、每日推荐。使用免费 API(腾讯财经),数据本地存储。 It is an AI Agent Skill for Claude Code / OpenClaw, with 213 downloads so far.
How do I install Stock Portfolio?
Run "/install stock-portfolio" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Stock Portfolio free?
Yes, Stock Portfolio is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Stock Portfolio support?
Stock Portfolio is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Stock Portfolio?
It is built and maintained by yinshengf (@yinshengf); the current version is v1.0.0.
More Skills