← 返回 Skills 市场
Stock Simulator
作者
KingDevatil
· GitHub ↗
· v1.0.2
· MIT-0
256
总下载
0
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install stock-simulator
功能描述
模拟炒股技能。当用户想要模拟炒股、学习投资、记录股票交易、查看股票收益时使用此技能。支持A股、港股、美股市场,提供股票推荐、购买记录、收益计算等功能。
安全使用建议
This skill appears internally consistent for a stock simulator, but the source is unknown—before installing or running: (1) inspect the provided get_market_data.py and any other files the skill will create; do not hardcode proxy credentials or secrets into those files; (2) run the data-fetching script manually in a safe environment to confirm it only queries the listed public endpoints (eastmoney, gtimg, Yahoo); (3) be aware the skill will create workspace/stock_data/{用户ID}/ and workspace/skills/stock-simulator/scripts/ files—store them where you want and back them up if needed; (4) if you need a proxy, prefer configuring it via environment or a secure config mechanism rather than embedding credentials in the script; (5) if you do not trust the publisher, run in a sandbox or decline installation.
功能分析
Type: OpenClaw Skill
Name: stock-simulator
Version: 1.0.2
The skill is a legitimate stock market simulator that fetches real-time data from public financial APIs including East Money, Tencent, and Yahoo Finance. The provided Python script (get_market_data.py) is transparent, performs no suspicious operations, and includes optional proxy support for users in restricted network environments. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found across the SKILL.md or reference files.
能力评估
Purpose & Capability
Name/description (模拟炒股) match the instructions: simulate trades, recommend stocks, record transactions, calculate profits. Required runtime (Python, network) and data files under workspace/stock_data/{用户ID}/ are proportionate to this purpose.
Instruction Scope
SKILL.md instructs creating a local Python script that fetches data from public endpoints (eastmoney, gtimg, Yahoo) and the skill stores state under workspace directories. This is within scope, but the recommended proxy configuration requires editing the script (comment/uncomment) which could lead users to hardcode credentials; the skill will perform network calls to third-party endpoints as part of normal operation.
Install Mechanism
Instruction-only skill with no install spec or downloaded code. No installers or archives are fetched; lowest install risk.
Credentials
The skill declares no environment variables or credentials, which matches its use of public APIs. Caveat: the guide suggests adding a PROXY mapping inside the script file (not as an env var), which could encourage hardcoding of proxy credentials into workspace files—this is a security/privacy risk for the user to manage.
Persistence & Privilege
always:false and no system-wide changes requested. The skill creates files only under workspace/ (its own data and scripts), not system configuration or other skills' settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install stock-simulator - 安装完成后,直接呼叫该 Skill 的名称或使用
/stock-simulator触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
stock-simulator 1.0.2
- 优化了代理配置说明,用户默认无需配置代理,仅在无法访问API时按需设置
- 自动数据目录和文件由技能管理,无需手动创建
- get_market_data.py 脚本示例代码简化,增加自动检测和使用代理的逻辑
- 使用说明与实际用户体验对齐,更加简洁明了
- 清晰分离必需与可选(代理)配置,提高易用性
v1.0.1
- 优化了新用户的代理配置说明,强调首次使用必须配置代理
- 增加了完整的安装和脚本创建步骤,便于手动搭建
- 数据存储路径格式更清晰,明确支持多用户或群聊隔离
- 买入操作、汇率转换与股票代码格式说明更清晰,适用港股和美股
- 技能整体使用流程梳理更加简明易懂,便于上手
v1.0.0
Stock Simulator 1.0.0
- Initial release of a virtual stock trading simulator supporting A-shares, Hong Kong stocks, and US stocks.
- Features: stock recommendations, simulated buying, profit calculation, holdings tracking, and trading records.
- Supports custom starting capital, automatic daily stock suggestions, and daily profit reports via scheduler.
- Provides multi-market support with clear code formats and guidance on API/data configuration.
- Includes robust error handling for invalid codes, API failures, and insufficient funds.
元数据
常见问题
Stock Simulator 是什么?
模拟炒股技能。当用户想要模拟炒股、学习投资、记录股票交易、查看股票收益时使用此技能。支持A股、港股、美股市场,提供股票推荐、购买记录、收益计算等功能。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 256 次。
如何安装 Stock Simulator?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install stock-simulator」即可一键安装,无需额外配置。
Stock Simulator 是免费的吗?
是的,Stock Simulator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Stock Simulator 支持哪些平台?
Stock Simulator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Stock Simulator?
由 KingDevatil(@kingdevatil)开发并维护,当前版本 v1.0.2。
推荐 Skills