Toc Trading

v1.0.0

TOC 股票助手 - AI股神挑战 + 股票分析 + 交易模拟 功能: - AI股神挑战:AI自主选股决策,每日同步操作和收益 - 四大行业分析:AI/消费品/汽车/医疗板块涨跌 - 市场热点:热门概念、板块资金流向 - 股票池:自选股管理 - 持仓模拟:买入/卖出/盈亏计算 - 演练模式:假设交易收益计算 触发...

1· 113·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for wuritu/toc-trading.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Toc Trading" (wuritu/toc-trading) from ClawHub.
Skill page: https://clawhub.ai/wuritu/toc-trading
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install toc-trading

ClawHub CLI

Package manager switcher

npx clawhub@latest install toc-trading
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description (TOC 股票助手: 分析、推荐、持仓模拟、挑战赛) match the included code and declared dependencies: akshare and tushare are reasonable data sources for A‑share data; optional TUSHARE_TOKEN is declared. The services, parser, storage and monitor modules align with the stated functionality.
Instruction Scope
SKILL.md instructs calling TOCTTrading.process() and describes only market queries, simulation and local storage. The code reads/writes JSON files (stock_pool.json, positions.json, trades.json, challenge.json) and calls akshare/tushare APIs — behaviour consistent with the purpose. No instructions or code paths were found that read unrelated system secrets or reach out to unknown endpoints. Note: monitor and notifier components reference push notifications (Feishu) in docs; however no Feishu credentials are declared in SKILL.md. Review notifier code before providing push credentials.
Install Mechanism
There is no install spec that downloads arbitrary code or runs remote installers — the skill is instruction+source only. The declared Python packages (akshare, tushare) are appropriate and expected. No external/untrusted archive downloads were found.
Credentials
SKILL.md declares a single optional sensitive env var (TUSHARE_TOKEN) which is appropriate for the optional Tushare data source. No other credentials are requested. If you provide other push/notification tokens (Feishu/etc.) those would grant the skill ability to send messages — only provide such secrets if you trust the skill.
Persistence & Privilege
The skill persists user data to JSON files. The storage implementation writes into a data directory relative to the package (src/../data) — code will create and persist files there. Product docs mention a ~/.openclaw/workspace path which is inconsistent with the storage code; confirm desired storage location if you care about where files are written. always:false (no forced global inclusion) and no changes to other skills were detected.
Assessment
This skill appears to implement what it claims: simulated trades, stock-pool, recommendations and simple monitoring using AKShare/Tushare. Before installing: (1) be prepared to allow network access so akshare/tushare can fetch market data; (2) only provide TUSHARE_TOKEN if you need Tushare and trust the skill; (3) inspect the notifier/push code before supplying any Feishu (or other) credentials so you understand what messages will be sent; (4) note that the skill persists JSON files (positions, trades, challenge, stock pool) to the skill's data directory — if you have privacy concerns, review or change that path. If you want extra assurance, review the (truncated) notifier and tushare_client source files to confirm they do not transmit data to unexpected endpoints.

Like a lobster shell, security has layers — review code before you run it.

latestvk977bd4daenv9cv3xxhzs4t6b983tx7v
113downloads
1stars
1versions
Updated 4w ago
v1.0.0
MIT-0

TOC Stock - AI股票助手

智能股票分析与模拟交易系统。

功能模块

🏆 AI股神挑战

AI自主选股决策,每日同步操作和收益。

命令

  • 开启挑战 — 开始月度挑战
  • 挑战状态 — 查看当前状态、资金、剩余交易次数
  • 挑战统计 — 查看详细统计(胜率/连盈/单笔最大)
  • 结束挑战 — 结束并汇总结果

规则

项目说明
初始资金50,000 元
每日交易最多 3 笔
止损线-7%
决策者AI 自主决策
同步每日操作 + 收益 + 原因

📊 四大行业分析

分析 AI/消费品/汽车/医疗 四大行业板块涨跌。

命令

  • 四大行业 — AI/消费品/汽车/医疗板块排行
  • 市场概况 — 热门概念和行业
  • 有什么消息 — 今日市场热点信号

数据源:AKShare(东方财富公开数据)

📈 股票池

管理自选股列表。

命令

  • 加一只 XXX — 添加股票到自选
  • 去掉 XXX — 从自选移除
  • 股票池 — 查看自选股列表

💰 持仓模拟

记录买卖,计算实时盈亏。

命令

  • 买 100 手 @ 15.6 招商银行 — 记录买入
  • 卖 50 手 招商银行 — 记录卖出
  • 持仓 — 查看当前持仓和盈亏
  • 历史交易 — 查看成交记录

🔍 演练模式

假设交易计算收益。

命令

  • 如果昨天开盘买入 XXX — 计算假设收益

🤖 股票推荐

AI基于市场数据推荐股票。

命令

  • 推荐一只股票 — 基于今日强势推荐
  • 今日金股 — 每日推荐一只

使用示例

用户:开启挑战
小悟:🏆 AI股神挑战已开启!初始资金:50,000 元

用户:四大行业
小悟:📊 四大行业板块分析
【AI/人工智能】
1. 🟢 半导体设备 +2.49%
   领涨: 先锋精科
...

用户:买 100 手 @ 185.6 宁德时代
小悟:✅ 买入记录已保存
      股票:宁德时代
      买入价:185.60
      数量:100手 (10,000股)
      持仓成本:1,856,000 元

用户:持仓
小悟:📊 当前持仓
      股票 | 买入价 | 当前价 | 盈亏 | 盈亏率
      宁德时代 | 185.60 | 192.30 | +33,500 | +1.80%
      💰 总盈亏:+33,500 元 (+1.80%)

实现文件

src/
├── toc_app.py           # 主入口,定义 process() 函数
├── command_parser.py    # 命令解析器
├── akshare_client.py    # AKShare 数据源(东方财富)
├── tushare_client.py   # Tushare 数据源(备用)
├── monitor.py           # 心跳监控
├── data/
│   └── storage.py      # JSON 存储
└── services/
    ├── stock_pool.py   # 股票池服务
    ├── position.py      # 持仓服务
    ├── recommendation.py # 推荐服务
    └── challenge.py    # 挑战服务

数据源

数据源说明权限
AKShare东方财富公开数据无需 API Key
TushareA股数据需要 Token(可选)

调用方式

当用户输入交易相关命令时,调用 src/toc_app.py 中的 process() 函数:

from toc_app import TOCTTrading

toc = TOCTTrading()
result = toc.process("四大行业")
# 返回 Markdown 格式结果

Comments

Loading comments...