← Back to Skills Marketplace
kingdevatil

Stock Simulator

by KingDevatil · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ Security Clean
256
Downloads
0
Stars
1
Active Installs
3
Versions
Install in OpenClaw
/install stock-simulator
Description
模拟炒股技能。当用户想要模拟炒股、学习投资、记录股票交易、查看股票收益时使用此技能。支持A股、港股、美股市场,提供股票推荐、购买记录、收益计算等功能。
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install stock-simulator
  3. After installation, invoke the skill by name or use /stock-simulator
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug stock-simulator
Version 1.0.2
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 3
Frequently Asked Questions

What is Stock Simulator?

模拟炒股技能。当用户想要模拟炒股、学习投资、记录股票交易、查看股票收益时使用此技能。支持A股、港股、美股市场,提供股票推荐、购买记录、收益计算等功能。 It is an AI Agent Skill for Claude Code / OpenClaw, with 256 downloads so far.

How do I install Stock Simulator?

Run "/install stock-simulator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Stock Simulator free?

Yes, Stock Simulator is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Stock Simulator support?

Stock Simulator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Stock Simulator?

It is built and maintained by KingDevatil (@kingdevatil); the current version is v1.0.2.

💬 Comments