agentCLAWHUBUnverified

Hs300 Research V5

Research HS300 index constituents for stock analysis and portfolio construction. Use when analyzing CSI 300 stocks, conducting fundamental research on large-... Skill: Hs300 Research V5 Owner: paudyyin Summary: Research HS300 index constituents for stock analysis and portfolio construction. Use when analyzing CSI 300 stocks, conducting fundamental research on large-... Tags: latest:5.2.2 Version history: v5.2.2 | 2026-07-17T00:28:58.643Z | user Optimize description: English verb-first + Use when format, No-Op Test cleanup (-14% lines) v5.2.1 | 2026-06-19T00:04:59.676Z | user

OpenClaw

Rank

62

Safety

84

Downloads

1.0k

Updated

Oct 11, 2026

Version

5.2.2

Source

CLAWHUB

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Public facts

Every fact links back to the source it came from.

Vendor
Clawhubvendor · observed Oct 11, 2026
Protocol compatibility
OpenClawcompatibility · observed Oct 11, 2026
Adoption signal
1K downloadsadoption · observed Oct 11, 2026
Latest release
5.2.2release · observed Jul 17, 2026
Handshake status
UNKNOWNsecurity

Install and run

Setup complexity: low.

clawhub skill install s172x1s50dh0bgmm3yc9516nr586kk4b:hs300-research-v5
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-paudyyin-hs300-research-v5/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

50,369 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: hs300-research-v5
version: 5.2.0
description: "Research HS300 index constituents for stock analysis and portfolio construction. Use when analyzing CSI 300 stocks, conducting fundamental research on large-cap Chinese equities, or building index-tracking strategies."
---

# 沪深300多因子投研系�?v5.2

AI Agent 个人投研技�?�?自动采集多源数据,计�?8 大类因子,生成结构化投研日报�?
## v5.2 新增
- �?**pywencai(同花顺问�?** 集成 �?自然语言查询补充数据
- �?投研日报新增「问财补充数据」板块(双金�?资金�?北向/高股息)
- ⚠️ **JQData 已禁�?* �?免费版数据截�?026-02-10,已从数据源剔除

## 什么时候使�?
- 用户要求分析 A �?/ 沪深300
- 用户要求多因子选股 / 股票评分
- 用户要求生成投研日报
- 用户要求分析个股基本面或技术面
- 用户要求集合竞价量比分析
- 用户要求查看分红送配 / 资金流向 / 龙虎�?
## 核心工作�?
### 1. 环境检�?```bash
cd hs300_research_system
python -c "import akshare; print('AKShare:', akshare.__version__)"
python data_fetcher.py  # 检查所有数据源状�?```

### 2. 运行完整分析
```bash
python full_analysis_v5.py
# 或新版:
python run_analysis_v3.py
```

运行结果包含�?- 沪深300成分股获取(AKShare�?- 日K线数据(东方财富 �?Tushare Pro �?AKShare�?- 基本面数据(Tushare Pro �?东方财富 �?AKShare�?- 技术面分析(MACD/KDJ/均线�?- 多因子评分(8大类因子�?- **pywencai问财补充**(双金叉/资金�?北向资金/高股息)
- AKShare附加数据(分红送配/资金�?龙虎榜)

⚠️ JQData(聚宽) 已禁用:免费版数据仅�?026-02-10,不再使用�?
### 3. 输出投研日报

报告结构�?```
📊 沪深300多因子投研日�?├── 🌍 市场环境(牛�?熊市/震荡�?+ 建议仓位�?├── 📈 技术信号(MACD金叉/KDJ金叉/均线排列统计�?├── 💰 基本面概况(PE/PB/ROE均值)
├── �?潜力个股 TOP 10(代�?名称/价格/PE/ROE/得分/风险/涨幅�?├── ⚠️ 高风险个�?└── 💡 核心结论
```

### 4. 可选:集合竞价分析
```bash
python call_auction_analysis.py
```

## 数据源架�?
| 数据�?| 覆盖内容 | 降级优先�?|
|--------|---------|-----------|
| pywencai(问财) | 自然语言查询/信号/资金�?北向/高股�?| 补充查询 |
| 东方财富HTTP | 日K�?实时行情/估�?| 1(主力) |
| AKShare | 成分�?分红/资金�?龙虎�?| 2(补充) |
| Tushare Pro | 日线/财务/估�?| 3(需2000+积分�?|
| SZSE/SSE | 交易所官方数据(辅助) | 4 |

### 自动降级�?```
获取日线: 东方财富HTTP �?Tushare Pro �?AKShare
获取估�? 东方财富 �?Tushare Pro �?AKShare
获取财务: Tushare Pro �?AKShare
问财补充: pywencai(自然语言查询�?```

## pywencai(同花顺问�? 查询能力

集成 pywencai 后,支持以下自然语言查询�?
| 查询类型 | 问财语句示例 |
|---------|------------|
| 信号检�?| `MACD金叉` / `KDJ金叉` / `MACD金叉并且KDJ金叉` |
| 资金流向 | `今日主力资金净流入排行` |
| 行业资金�?| `今日行业板块资金流向` |
| 北向资金 | `北向资金增持` |
| 涨停/跌停 | `今日涨停` |
| 高股�?| `股息率大�?%` |
| 高ROE | `ROE大于20%` |
| 自定�?| 任意自然语言问句 |

## 8 大类因子体系

| 因子类别 | 权重 | 指标 |
|---------|------|------|
| 估�?| 25% | PE/PB/PS |
| 质量 | 20% | ROE/ROA/毛利�?净利率 |
| 成长 | 15% | 营收增长/利润增长 |
| 动量 | 15% | 1月涨�?3月涨�?|
| 趋势 | 15% | MACD金叉/KDJ金叉/均线排列 |
| 波动�?| 5% | 年化波动�?ATR |
| 技�?| 5% | 突破信号 |
| 量能 | 5% | 量比/换手�?|

## 配置说明

### JQData(已禁用�?编辑 `jq_config.py`�?```python
JQ_USER = '手机�?
JQ_PASSWORD = '密码'
JQ_AUTH = False  # 免费版数据截�?026-02-10,已禁用
```

### Tushare Pro(可选)
编辑 `tushare_config.py`�?```python
TUSHARE_TOKEN = 'your_token'
TUSHARE_AUTH = True
```

### 依赖安装
```bash
pip install akshare tushare pywencai pandas numpy scipy
```

## pywencai 使用示例
```python
import pywencai
# 双金叉共�?res = pywencai.get(query='MACD金叉并且KDJ金叉')
# 今日资金�?res = pywencai.get(query='今日主力资金净流入排行', sort_key='主力资金净流入(�?')
```

## 注意事项

- JQData 免费版数据有日期范围限制(通常到最近几个月�?- 获取最新实时数据需要升�?JQData 会员(约298�?年)
- 公司网络可能拦截东方财富 push2 API
- 建议配置 OpenClaw Heartbeat 每日 08:30 自动运行

## 文件结构

```
hs300_research_syst

README.md

# 沪深300晨间多因子投研系统

一个基于Python的自动化量化投研系统,每天早晨自动对沪深300成分股进行多因子分析,生成专业的投研日报。

## 🌟 系统特点

- **多数据源**:东方财富 + Tushare Pro + AKShare + pywencai(同花顺问财) — 自动降级
- **自然语言查询**:集成 pywencai,支持自然语言问句查询信号/资金流/北向资金
- **数据自动采集**:多源采集,自动降级,确保数据可用性
- **多因子模型**:融合估值、成长、动量、波动率、技术面等多维度因子
- **智能评分**:对所有股票进行综合评分,自动筛选潜力个股
- **自动报告生成**:生成Markdown和Excel格式的专业投研报告
- **定时任务**:支持每日定时自动执行,无需人工干预

## 📁 项目结构

```
hs300_research_system/
├── config.py          # 配置文件
├── data_fetcher.py    # 数据采集模块
├── factor_calculator.py  # 因子计算模块
├── report_generator.py   # 报告生成模块
├── main.py            # 主程序
├── test_system.py     # 系统测试脚本
├── requirements.txt   # 依赖清单
├── data/              # 数据目录
│   └── cache/         # 数据缓存
├── logs/              # 日志目录
├── models/            # 模型目录
├── output/            # 报告输出目录
└── utils/             # 工具目录
```

## 🚀 快速开始

### 1. 安装依赖

```bash
pip install -r requirements.txt
```

### 2. 测试系统

```bash
python test_system.py
```

### 3. 立即执行一次分析

```bash
python main.py once
```

### 4. 启动定时任务模式(每日自动执行)

```bash
python main.py scheduled
```

## 📊 因子体系

### 估值因子
- PE、PB、PE_TTM、PS、PCF

### 成长因子
- 营收增长率、净利润增长率、ROE增长率

### 质量因子
- ROE、ROA、净利率、资产周转率

### 动量因子
- 1月、3月、6月、12月收益率

### 波动率因子
- 1月波动率、3月波动率、最大回撤

### 技术因子
- MACD金叉/死叉
- RSI相对强弱指标
- KDJ随机指标
- 均线多头/空头排列
- 成交量比率

## 📈 报告内容

生成的投研日报包含以下内容:

1. **市场概览** - 沪深300指数表现和市场统计
2. **技术信号统计** - 金叉死叉、均线排列等信号汇总
3. **潜力个股推荐** - 综合得分前20名股票
4. **重点关注个股** - 多重技术信号共振的股票
5. **风险提示个股** - 综合得分后10名股票
6. **因子分析** - 各因子的统计分布
7. **投资策略建议** - 基于模型的仓位和操作建议
8. **风险提示** - 重要的免责声明

## ⚙️ 配置说明

在 `config.py` 中可以配置:

- 因子权重配置
- 技术指标参数
- 报告输出格式
- 定时执行时间
- 缓存策略

## 📦 输出文件

系统运行后会在 `output/` 目录下生成:

- `沪深300投研日报_YYYYMMDD.md` - Markdown格式报告
- `沪深300投研日报_YYYYMMDD_详细数据.xlsx` - Excel详细数据

因子数据保存在 `data/` 目录下:
- `factors_YYYYMMDD.csv` - 所有股票的因子数据

## 🔧 系统要求

- Python 3.7+
- Windows/Linux/macOS
- 网络连接(用于获取股票数据)

## ⚠️ 风险提示

本系统仅供投研参考,不构成任何投资建议。股市有风险,投资需谨慎。

基于历史数据的量化分析不代表未来表现,请结合自身风险承受能力做出投资决策。

## 📄 许可证

MIT License

_meta.json

{
  "ownerId": "kn73z7zhz92tv6skpnmpy5pdfh86j68x",
  "slug": "hs300-research-v5",
  "version": "5.2.2",
  "publishedAt": 1784248138643
}

DATA_SOURCES.md

# 数据源接入说明 v5.2

## 架构概览

```
┌─────────────────────────────────────────────────────────────────┐
│                  沪深300 投研系统 v5.2                            │
│                     data_fetcher.py                               │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  日线K线降级链:                                                  │
│  ┌──────────┐  ┌──────────┐  ┌──────────┐ ┌──────────┐         │
│  │ 东方财富  │→ │ Tushare  │→ │ AKShare  │             │         │
│  │ (优先级1) │  │ Pro(2)   │  │  (3)     │             │         │
│  └──────────┘  └──────────┘  └──────────┘             │         │
│       ↓             ↓            ↓                    │         │
│   HTTP行情      日线/估值      降级兜底                │         │
│   K线数据       财务数据       数据                   │         │
│                                                         │         │
│  补充数据 (pywencai):                                   │         │
│  ┌───────────────────────────────────────────────┐     │         │
│  │ pywencai(同花顺问财) — 自然语言查询补充数据源    │     │         │
│  │ • 信号检测: MACD/KDJ金叉、双金叉共振             │     │         │
│  │ • 资金流向: 个股/行业/概念多周期资金流            │     │         │
│  │ • 筛选: 涨停/跌停/突破/超跌/高股息/高ROE          │     │         │
│  │ • 北向资金: 北向资金增持排行                     │     │         │
│  │ • 自定义: 自然语言问句任意查询                   │     │         │
│  └───────────────────────────────────────────────┘     │         │
│                                                         │         │
│  辅助数据源:                                            │         │
│  ┌───────────────────────────────────────────────┐     │         │
│  │ 深交所(SZSE) / 上交所(SSE)                     │     │         │
│  │ • A股列表 · 指数行情 · 公告查询 · 新股上市       │     │         │
│  └───────────────────────────────────────────────┘     │         │
│                                                         │         │
│  ⚠️ JQData(聚宽) 已禁用 — 免费版数据截止2026-02-10     │         │
└─────────────────────────────────────────────────────────────────┘
```

## 各数据源状态

| 数据源 | 状态 | 说明 |
|--------|------|------|
| **东方财富** | ✅ 已启用 | HTTP接口,日线K线/估值数据,最快 |
| **Tushare Pro** | ⏳ 待配置 | 需要注册并填写 Token(见下方说明) |
| **AKShare** | ✅ 已启用 | 降级兜底,日线/基金/行业数据 |
| **pywencai(同花顺问财)** | ✅ 已启用 | 自然语言补充查询,信号/资金流 |
| **深交所SZSE** | ✅ 已启用 | 深市股票列表/指数行情/公告查询 |
| **上交所SSE** | ✅ 已启用 | 沪市股票列表/指数行情/新股上市 |
| **JQData** | ❌ 已禁用 | 免费版数据截止2026-02-10,已剔除 |

## pywencai(同花顺问财) 使用指南

### 安装
```bash
pip install pywencai
```

### 在投研系统中使用

```python
from data_fetcher import DataFetcher

fetcher = DataFetcher()

# 1. 信号检测
df = fetcher.get_pywencai_signal_stocks('dual_golden')  # 双金叉共振
df = fetcher.get_pywencai_signal_stocks('macd_golden')   # MACD金叉
df = fetcher.get_pywencai_signal_stocks('breakout')      # 突破

# 2. 资金流向
df = fetcher.get_pywencai_fund_flow('今日')   # 今日资金流
df = fetcher.get_pywencai_fund_flow('3日')    # 3日资金流
df = fetcher.get_pywencai_fund_flow('10日')   # 10日资金流

skill-card.md

## Description:

Research HS300 index constituents for stock analysis and portfolio construction.

This skill is ready for commercial/non-commercial use.

## Publisher:

[paudyyin](https://clawhub.ai/user/paudyyin)

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use this skill to run HS300/CSI 300 stock research, multi-factor scoring, technical and fundamental analysis, and portfolio-construction research reports.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Plaintext financial-data service credentials are present in the artifact.

Mitigation: Remove and rotate embedded credentials before use; require user-supplied environment secrets for provider authentication.

Risk: Authenticated provider access behavior conflicts with documentation that says JQData is disabled or user-configured.

Mitigation: Align documentation and configuration, disable default authentication, and require explicit user setup before enabling provider access.

Risk: Pickle-based caches may be unsafe in shared or sensitive environments.

Mitigation: Replace pickle caches with a safer serialization format and avoid loading cache files from untrusted locations.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/paudyyin/skills/hs300-research-v5)
- [Tushare Pro](https://tushare.pro)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with Python and shell command snippets; generated research reports may be Markdown or Excel files.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires network access to financial data providers and user-supplied provider credentials; outputs are research references and not investment advice.]

## Skill Version(s):

5.2.2 (source: server release metadata; artifact frontmatter 5.2.0, package.json 1.0.0)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
Github ReposUpdated 2d agoRank 70

AionUi

Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!

MCPOPENCLAW
Github ReposUpdated 6mo agoRank 70

activepieces

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

OPENCLAW
Github ReposUpdated 6mo agoRank 70

cherry-studio

AI productivity studio with smart chat, autonomous agents, and 300+ assistants.

MCPOPENCLAW
Github ReposUpdated 7mo agoRank 70

CopilotKit

The Frontend for Agents & Generative UI. React + Angular

OPENCLAW

Machine-readable data

The same record, as JSON, for agents and crawlers.

{
  "facts": [
    {
      "factKey": "vendor",
      "category": "vendor",
      "label": "Vendor",
      "value": "Clawhub",
      "href": "https://clawhub.ai/paudyyin/skills/hs300-research-v5",
      "sourceUrl": "https://clawhub.ai/paudyyin/skills/hs300-research-v5",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-11T16:44:50.571Z",
      "isPublic": true
    },
    {
      "factKey": "protocols",
      "category": "compatibility",
      "label": "Protocol compatibility",
      "value": "OpenClaw",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-paudyyin-hs300-research-v5/contract",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-paudyyin-hs300-research-v5/contract",
      "sourceType": "contract",
      "confidence": "medium",
      "observedAt": "2026-10-11T16:44:50.571Z",
      "isPublic": true
    },
    {
      "factKey": "traction",
      "category": "adoption",
      "label": "Adoption signal",
      "value": "1K downloads",
      "href": "https://clawhub.ai/paudyyin/hs300-research-v5",
      "sourceUrl": "https://clawhub.ai/paudyyin/hs300-research-v5",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-11T16:44:50.571Z",
      "isPublic": true
    },
    {
      "factKey": "latest_release",
      "category": "release",
      "label": "Latest release",
      "value": "5.2.2",
      "href": "https://clawhub.ai/paudyyin/hs300-research-v5",
      "sourceUrl": "https://clawhub.ai/paudyyin/hs300-research-v5",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-07-17T00:28:58.643Z",
      "isPublic": true
    },
    {
      "factKey": "handshake_status",
      "category": "security",
      "label": "Handshake status",
      "value": "UNKNOWN",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-paudyyin-hs300-research-v5/trust",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-paudyyin-hs300-research-v5/trust",
      "sourceType": "trust",
      "confidence": "medium",
      "observedAt": null,
      "isPublic": true
    }
  ],
  "events": [
    {
      "eventType": "release",
      "title": "Release 5.2.2",
      "description": "Optimize description: English verb-first + Use when format, No-Op Test cleanup (-14% lines)",
      "href": "https://clawhub.ai/paudyyin/hs300-research-v5",
      "sourceUrl": "https://clawhub.ai/paudyyin/hs300-research-v5",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-07-17T00:28:58.643Z",
      "isPublic": true
    }
  ]
}

Record generated Oct 11, 2026.

Sponsored

Ads related to Hs300 Research V5 and adjacent AI workflows.