skills/windpy-sdk/references/sector-ids.md
wangyitong a65adcc2e5 Initial commit: merged, deduplicated, and vetted skill collection
Sources: extracted from two upstream archives (skill-repo, skills-main),
merged with the following policy:

- 15 broken symlinks (pointing to /Users/jameslee/.cc-switch/skills or
  ../../.agents/skills on a foreign machine) discarded
- 3 real name collisions with identical content (ai-pair, ifind-http-api,
  zhipu-websearch) kept as one copy
- Functional overlaps deduped keeping the strongest variant:
  - docx family: kept docx (official, full toolchain) + docx-cn
    (GB/T 9704 Chinese official-document constants),
    dropped docx_writer (no scripts, name collided with docx)
  - humanizer family: kept humanizer-zh (6 zh reference docs),
    dropped humanizer (en, redundant for CN workflow)
- Skills that only ran in a foreign environment removed:
  ablemind-ops, app-publish, hlb-design-system, openclaw-adj-skill,
  claude-driver
- alphapai excluded from this public repo because its SKILL.md hard-coded
  live credentials

Result: 25 skills, 572 files, ~7.5 MB.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 14:47:12 +08:00

3.9 KiB
Raw Blame History

板块 sectorid 对照表

状态:占位文档,待补充

补充方法:

  1. Wind 终端 → 板块 → 左侧目录树 → 右键复制板块代码
  2. 代码生成器 → WSET → sectorconstituent → sectorid 下拉框浏览

市场板块(已确认)

板块 sectorid 备注
全部A股 a001010100000000 最常用
上证A股 a001010200000000
深证A股 a001010300000000
创业板 1000006528000000
科创板 a001010l00000000 注意是字母 l 不是数字 1

申万一级行业(需补充 sectorid

以下行业名称已确认,但 sectorid 需要从终端查询

行业 sectorid 备注
银行 a39901011g000000 已确认
食品饮料 TODO 待查
医药生物 TODO 待查
电子 TODO 待查
计算机 TODO 待查
非银金融 TODO 待查
电力设备 TODO 待查
机械设备 TODO 待查
汽车 TODO 待查
化工 TODO 待查
有色金属 TODO 待查
钢铁 TODO 待查
建筑装饰 TODO 待查
建筑材料 TODO 待查
房地产 TODO 待查
交通运输 TODO 待查
传媒 TODO 待查
通信 TODO 待查
公用事业 TODO 待查
商贸零售 TODO 待查
社会服务 TODO 待查
农林牧渔 TODO 待查
纺织服饰 TODO 待查
轻工制造 TODO 待查
美容护理 TODO 待查
环保 TODO 待查
煤炭 TODO 待查
石油石化 TODO 待查
综合 TODO 待查
国防军工 TODO 待查
家用电器 TODO 待查

申万二级行业(待补充)

格式同上,数量较多,建议从终端批量导出


中信行业分类(待确认是否可用)

Wind 同时支持中信行业分类sectorid 前缀可能不同


养老金/年金基金板块(已确认)

板块 sectorid 备注
全部年金养老金 1000019226000000 包含所有年金和养老金产品
混合养老金 1000023520000000 混合型养老金产品155只
股票养老金 1000023515000000 股票型养老金产品
Wind股票型养老金 1000027483000000 Wind 分类的股票型养老金

基金代码格式:xxBxxx.OF(如 00B001.OF 华夏基金颐养天年)

查询成分基金示例:

err, df = w.wset("sectorconstituent",
    "date=20260307;sectorId=1000023520000000;", usedf=True)
# 返回列: date, wind_code, sec_name

概念板块(待补充)

概念板块 sectorid 需要从终端 → 板块 → 概念板块 目录获取


指数代码(用于 indexconstituent

注意:指数在 w.wset("indexconstituent") 中使用 windcode 参数而非 sectorid

指数 windcode 说明
上证综指 000001.SH
上证50 000016.SH
沪深300 000300.SH
中证500 000905.SH
中证800 000906.SH
中证1000 000852.SH
创业板指 399006.SZ
深证成指 399001.SZ
科创50 000688.SH 待确认
北证50 899050.BJ 待确认

快捷查询脚本

from WindPy import w
w.start()

# 方法1通过股票数据反查所有申万一级行业名称
data = w.wset("sectorconstituent", "date=2024-06-28;sectorid=a001010100000000")
stocks = data.Data[1]
err, df = w.wss(stocks[:500], "industry_sw", "tradeDate=20240628", usedf=True)
industries = df['INDUSTRY_SW'].dropna().unique()
print("申万一级行业列表:")
for i in sorted(industries):
    print(f"  - {i}")

# 方法2逐个测试 sectorid需要知道编号规律
# 申万一级行业 sectorid 的规律是 a3990101xx000000
# 但具体编号需要从终端确认