← 返回 Skills 市场
wran93409

Sim Trade

作者 wran93409 · GitHub ↗ · v1.1.0
cross-platform ✓ 安全检测通过
351
总下载
1
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install sim-trade
功能描述
A 股模拟交易盘 - 支持真实行情、多平台模拟盘连接、持仓管理、盈亏计算
安全使用建议
This skill appears to do exactly what it says: a local simulated A‑share trading tool that can optionally connect to third‑party simulated accounts if you paste session cookies or broker tokens into ~/.openclaw/sim_trade/config.json. Before installing: (1) Understand that adding browser Cookies or broker tokens grants the skill access to that account data — store them only if you trust the environment and delete them when not needed. (2) Protect the config directory (file permissions) because credentials are stored in plaintext. (3) If you don't need real platform syncing, use the default 'local' mode to avoid exposing credentials. (4) The SKILL.md examples that use ~ inside Python string literals may not expand to your home directory; double-check paths when running the provided commands. (5) The skill depends on the requests package — ensure your environment provides it. Overall the package is coherent and not suspicious, but treat any pasted cookies or API tokens as sensitive secrets.
功能分析
Type: OpenClaw Skill Name: sim-trade Version: 1.1.0 The skill bundle is a functional A-share stock trading simulator that uses local JSON files for portfolio management and fetches real-time market data from a legitimate public API (Tencent Finance at qt.gtimg.cn). While the documentation (SKILL.md) and sync script (sync.py) mention the use of browser cookies for optional integration with external platforms like Eastmoney, the provided code contains no logic for credential exfiltration, unauthorized network communication, or malicious persistence; it primarily provides instructions for manual user configuration.
能力评估
Purpose & Capability
Name/description (模拟交易盘) align with the included scripts: account, positions, trade, quote, sync, etc. Required resources (none declared) and the code's dependencies (requests) are appropriate for fetching quotes and running a local simulator.
Instruction Scope
SKILL.md and scripts operate on local files under ~/.openclaw/sim_trade and call public quote APIs (qt.gtimg.cn). The README instructs users how to copy browser Cookies for connecting to third‑party simulated platforms; that legitimately requires adding session cookies or broker tokens to config.json, but storing such secrets in plaintext is a risk the user must accept. Minor usability issue: example python -c commands in SKILL.md use a literal '~' inside a Python string which will not expand to the home directory, possibly writing to a filename that literally starts with '~/'.
Install Mechanism
No install spec; this is instruction + code that runs with the system Python and the requests package (declared in skill.json). No downloads or third‑party install URLs are used by the skill itself.
Credentials
The skill requests no environment variables or external credentials at install time. It does provide a config.json where users may place cookies or broker tokens if they choose to connect to real simulated accounts — that is proportionate to the claimed capability but does mean secrets will be stored locally in cleartext unless the user protects the file.
Persistence & Privilege
always:false and no code modifies other skills or global agent settings. The skill creates/reads files only under ~/.openclaw/sim_trade, which is appropriate for its function.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install sim-trade
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /sim-trade 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
**Sim Trade 1.1.0 — 支持真实行情和多平台模拟盘接入** - 新增行情查询脚本 `quote.py`,支持实时行情显示 - 新增 `sync.py`,为同步真实模拟盘或券商账户做准备 - 交易系统现在支持多平台(本地、东方财富、同花顺、券商)配置和切换 - 文档全面更新,增加多平台连接方法和行情查询说明 - 优化本地账户与持仓展示脚本,兼容新功能与多数据来源
v1.0.0
Sim Trade 1.0.0 初始版本发布 - 支持A股模拟买入/卖出(市价、限价)、持仓管理和盈亏计算 - 提供账户资金统计、实时持仓盈亏、完整交易记录查询 - 简单脚本操作,命令行快速模拟实盘流程 - 自定义初始资金和手续费等交易参数 - 提供详细文档、示例及基础配置说明
元数据
Slug sim-trade
版本 1.1.0
许可证
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Sim Trade 是什么?

A 股模拟交易盘 - 支持真实行情、多平台模拟盘连接、持仓管理、盈亏计算. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 351 次。

如何安装 Sim Trade?

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

Sim Trade 是免费的吗?

是的,Sim Trade 完全免费(开源免费),可自由下载、安装和使用。

Sim Trade 支持哪些平台?

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

谁开发了 Sim Trade?

由 wran93409(@wran93409)开发并维护,当前版本 v1.1.0。

💬 留言讨论