← 返回 Skills 市场
dxie48892-jpg

China A Stock Trader

作者 dxie48892-jpg · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
423
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install china-a-stock-trader
功能描述
中国A股实战分析Skill。用于分析A股、给出买卖建议、规避风险。包含实时行情、技术分析、基本面筛选、情绪周期判断、龙虎榜、量化工具。触发场景:问股票、分析行情、选股推荐、风险提示。
使用说明 (SKILL.md)

A股实战分析 Skill

最接近实战的A股分析工具,不只是数据展示,是真正的实战决策辅助。

核心能力

模块 能力 数据来源
📊 实时行情 腾讯/新浪API实时价格 腾讯财经
📈 技术分析 均线/KDJ/MACD/布林带 计算得出
💰 基本面筛选 PE/ROE/营收增速/排雷 akshare
🔥 情绪周期 冰点/启动/发酵/高潮/退潮 市场情绪判断
🐉 龙头战法 连板/妖股/首阴/分歧转一致 实战逻辑
⚠️ 避坑指南 杀猪盘/庄家出货/ST退市 血泪教训
🏆 龙虎榜 营业部买卖数据 东方财富

使用场景

  • "帮我分析XXXX股票"
  • "这个股票能买吗"
  • "最近的热点板块是什么"
  • "XXXX有什么风险"
  • "帮我选一只股票"
  • "大盘今天怎么样"

工作流程

股票分析流程

1. 获取实时行情(腾讯API)
2. 计算技术指标(均线/KDJ/MACD)
3. 查询基本面(PE/ROE/业绩)
4. 判断情绪周期(冰点/启动/发酵/高潮/退潮)
5. 应用龙头战法(连板/首阴/分歧转一致)
6. 避坑检查(ST/减持/商誉雷)
7. 给出建议(买入/持有/卖出)

选股推荐流程

1. 判断当前情绪周期阶段
2. 筛选热门板块(涨幅排行)
3. 基本面过滤(ROE>15%,PE\x3C50)
4. 技术面确认(沿5日线上涨/放量)
5. 龙头战法验证(板块龙头/连板)
6. 给出推荐(代码+价格+逻辑)

股票代码格式

市场 格式 示例
上交所 sh + 6位 sh600519
深交所 sz + 6位 sz000001
创业板 sz + 6位 sz300750
科创板 sh + 6位 sh688981

数据获取

实时行情

from a_stock_trader import get_stock_quote

# 单股
quote = get_stock_quote('sz000001')

# 批量
quotes = get_stock_quotes(['sh600519', 'sz000858', 'sz300750'])

技术指标

from a_stock_trader import get_technical_indicators

# 获取技术指标
indicators = get_technical_indicators('sz000001')
# 返回: {ma5, ma10, ma20, kdj, macd, boll}

基本面筛选

from a_stock_trader import screen_stocks

# 筛选条件
result = screen_stocks(pe_max=50, roe_min=15, growth_min=30)
# 返回: [符合条件股票列表]

情绪判断

from a_stock_trader import get_market_sentiment

# 获取市场情绪
sentiment = get_market_sentiment()
# 返回: {phase: '冰点/启动/发酵/高潮/分歧/退潮', score: 0-100}

分析报告模板

## 📊 {股票名称}({代码}) 实战分析

### 📈 实时行情
| 指标 | 数值 | 信号 |
|------|------|------|
| 现价 | XX元 | 🟢涨/🔴跌 |
| 涨幅 | X% | - |
| 换手率 | X% | 高/低 |
| 成交量 | X万手 | 放量/缩量 |

### 📉 技术面
- 短期趋势:{沿5日线/跌破5日线}
- 中期趋势:{多头排列/空头排列}
- 关键位:{支撑位} / {压力位}

### 💰 基本面
- PE:{X}({高/中/低})
- ROE:{X}%({合格/优秀})
- 营收增速:{X}%({加速/放缓})

### 🔥 情绪周期
- 当前阶段:{启动期/发酵期/高潮期}
- 板块联动:{是/否}

### 🐉 龙头战法
- 龙头特征:{符合/不符合}
- 买点信号:{出现/未出现}
- 风险信号:{无/有}

### ⚠️ 避坑检查
- ST风险:{无/有}
- 减持风险:{无/有}
- 商誉雷:{无/有}

### 💡 结论
**建议:{买入/持有/卖出}**
- 买入逻辑:{X}
- 止损位:{X元(-8%)}
- 持有逻辑:{X}

风险提示

每次分析必须包含:

⚠️ 风险提示
- 本分析仅供参考,不构成投资建议
- 市场有风险,投资需谨慎
- 亏损8%请无条件止损

数据维护

  • 实时行情:交易时间段自动更新
  • 基本面数据:akshare实时获取
  • 情绪数据:每日收盘后更新

v1.0.1 更新(2026-03-21)

新增功能

  • get_stock_financial_report() - 获取个股财务报告
  • get_market_heat() - 获取市场热度(涨幅榜/概念板块)
  • get_dragon_tiger() - 获取龙虎榜数据

基本面筛选升级

  • 接入akshare真实财务数据
  • 支持实时选股(PE/换手率/市净率筛选)
  • 失败时自动回退到示例数据

使用示例

from a_stock_trader import get_stock_financial_report, get_market_heat, get_dragon_tiger

# 获取个股财务报告
report = get_stock_financial_report('sh600519')

# 获取市场热度
heat = get_market_heat()

# 获取龙虎榜
tiger = get_dragon_tiger()
安全使用建议
This skill appears coherent with its stated purpose, but note: (1) it makes outbound network requests to public Chinese finance APIs (Tencent, Sina) and relies on the third‑party Python library akshare—ensure you trust those data sources and are comfortable installing akshare and its dependencies; (2) there is no install spec, so run the code in a controlled/sandboxed environment first (e.g., isolated VM or container) to confirm behavior and avoid unintended network traffic or heavy dependence downloads; (3) review the rest of the a_stock_trader.py file (the provided snippet is truncated) before running to ensure there are no hidden endpoints or filesystem access; (4) this tool provides analysis, not guaranteed trading advice—follow the included risk disclaimers and avoid providing any account credentials to the skill.
能力评估
Purpose & Capability
Name/description, SKILL.md and the Python code all focus on A‑share analysis: realtime quotes (Tencent/Sina), technical indicators, akshare-based fundamental screening, market sentiment and龙虎榜. The requested resources (HTTP APIs, akshare) are appropriate for this purpose.
Instruction Scope
SKILL.md instructs the agent to call the provided library functions (get_stock_quote, get_technical_indicators, screen_stocks, etc.) and to include risk disclaimers. The instructions do not ask the agent to read arbitrary local files or exfiltrate secrets. The runtime behavior is network‑oriented (fetch public market data), which matches the stated scope.
Install Mechanism
There is no install spec. The code imports third‑party packages (requests, akshare, pandas implied) but the skill does not declare how to install them. That is not malicious but means the environment must already provide these dependencies; akshare pulls/ scrapes many external endpoints and has multiple dependencies—users should be prepared to install and review its provenance.
Credentials
The skill declares no required environment variables, no credentials, and no config paths. The code performs only outbound HTTP requests to public finance endpoints (qt.gtimg.cn, finance.sina, akshare calls). No secret access or unrelated credentials are requested.
Persistence & Privilege
Skill does not request always:true and does not attempt to alter other skill/system configs in the visible code. It runs on demand and uses only its own library functions and network calls.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install china-a-stock-trader
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /china-a-stock-trader 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
v1.0.1: 接入akshare真实财务数据、新增龙虎榜、市场热度、个股财务报告功能
v1.0.0
中国A股实战分析Skill首发 - 整合腾讯/新浪API技术分析+基本面筛选+情绪周期+龙头战法+避坑指南
元数据
Slug china-a-stock-trader
版本 1.0.1
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 2
常见问题

China A Stock Trader 是什么?

中国A股实战分析Skill。用于分析A股、给出买卖建议、规避风险。包含实时行情、技术分析、基本面筛选、情绪周期判断、龙虎榜、量化工具。触发场景:问股票、分析行情、选股推荐、风险提示。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 423 次。

如何安装 China A Stock Trader?

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

China A Stock Trader 是免费的吗?

是的,China A Stock Trader 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

China A Stock Trader 支持哪些平台?

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

谁开发了 China A Stock Trader?

由 dxie48892-jpg(@dxie48892-jpg)开发并维护,当前版本 v1.0.1。

💬 留言讨论