mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-20 13:50:45 +08:00
- Replace monolithic image_message_client with HTTP/OCR/legacy modules; tighten OpenAI transport + tool schemas for multimodal downgrade to OCR specialist path. - Add image/stock workspace prompts (META/SOUL/ROLE_SYSTEM); register experts; tweak specialist agent/direct loop/query_image_attachment. - Add bundled runtime/skills/tushare-finance (references, api_client, SKILL metadata). - Document OCR-related env vars; admin chat tweaks; README; weixin_install Ensure-OfficialPluginRuntimeDeps helper. - Tests: multimodal downgrade + OCR coverage, strict tool pairing in attachment replay guard, workspace contract skips _internal/_system dirs, router/trace/prompt guards. Co-authored-by: Cursor <cursoragent@cursor.com>
3.8 KiB
3.8 KiB
申万行业成分(分级)
文档ID: 335 原始链接: https://tushare.pro/document/2?doc_id=335
申万行业成分构成(分级)
接口:index_member_all描述:按三级分类提取申万行业成分,可提供某个分类的所有成分,也可按股票代码提取所属分类,参数灵活限量:单次最大2000行,总量不限制权限:用户需2000积分可调取,积分获取方法请参阅积分获取办法
输入参数
| 名称 | 类型 | 必选 | 描述 |
|---|---|---|---|
| l1_code | str | N | 一级行业代码 |
| l2_code | str | N | 二级行业代码 |
| l3_code | str | N | 三级行业代码 |
| ts_code | str | N | 股票代码 |
| is_new | str | N | 是否最新(默认为“Y是”) |
| 名称 | 类型 | 默认显示 | 描述 |
|---|---|---|---|
| l1_code | str | Y | 一级行业代码 |
| l1_name | str | Y | 一级行业名称 |
| l2_code | str | Y | 二级行业代码 |
| l2_name | str | Y | 二级行业名称 |
| l3_code | str | Y | 三级行业代码 |
| l3_name | str | Y | 三级行业名称 |
| ts_code | str | Y | 成分股票代码 |
| name | str | Y | 成分股票名称 |
| in_date | str | Y | 纳入日期 |
| out_date | str | Y | 剔除日期 |
| is_new | str | Y | 是否最新Y是N否 |
#获取黄金分类的成份股
df = pro.index_member_all(l3_code='850531.SI')
#获取000001.SZ所属行业
df = pro.index_member_all(ts_code='000001.SZ')
数据示例
l1_code l1_name l2_code l2_name l3_code l3_name ts_code name in_date
0 801050.SI 有色金属 801053.SI 贵金属 850531.SI 黄金 000506.SZ *ST中润 20220729
1 801050.SI 有色金属 801053.SI 贵金属 850531.SI 黄金 001337.SZ 四川黄金 20230224
2 801050.SI 有色金属 801053.SI 贵金属 850531.SI 黄金 600988.SH 赤峰黄金 20040414
3 801050.SI 有色金属 801053.SI 贵金属 850531.SI 黄金 600489.SH 中金黄金 20030812
4 801050.SI 有色金属 801053.SI 贵金属 850531.SI 黄金 600547.SH 山东黄金 20030826
5 801050.SI 有色金属 801053.SI 贵金属 850531.SI 黄金 002155.SZ 湖南黄金 20070815
6 801050.SI 有色金属 801053.SI 贵金属 850531.SI 黄金 002237.SZ 恒邦股份 20080428
7 801050.SI 有色金属 801053.SI 贵金属 850531.SI 黄金 601069.SH 西部黄金 20150115
8 801050.SI 有色金属 801053.SI 贵金属 850531.SI 黄金 000975.SZ 银泰黄金 20190724
9 801050.SI 有色金属 801053.SI 贵金属 850531.SI 黄金 300139.SZ 晓程科技 20220729
10 801050.SI 有色金属 801053.SI 贵金属 850531.SI 黄金 600687.SH 退市刚泰(退市) 20130701
11 801050.SI 有色金属 801053.SI 贵金属 850531.SI 黄金 600807.SH 济南高新 20220729
12 801050.SI 有色金属 801053.SI 贵金属 850531.SI 黄金 600311.SH *ST荣华(退市) 20140102