stocks_IndexIndustryWeight
简述
指数行业权重
其中中上协行业分级只有二级,申万行业分级有三级,中证行业分级有四级
stocks_IndexIndustryWeight(IndexID:String;EndT:TDateTime;IndustryType:Integer;IndustryLevel:Integer):Boolean
| 名称 | 类型 | 说明 |
|---|
| IndexID | String | 指数,指数代码 |
| EndT | TDateTime | 日期,截止日期 |
| IndustryType | Integer | 用户自定义,行业分类标准
|
显示名 |
取值 | |
中上协行业 |
1 | |
申万行业 |
2 | |
中证行业 |
3 |
|
| IndustryLevel | Integer | 用户自定义,行业分级
|
显示名 |
取值 | |
一级行业 |
1 | |
二级行业 |
2 | |
三级行业 |
3 | |
四级行业 |
4 |
|
| 返回 | Boolean | 指数行业权重数据 |
//A股在2024-12-31的指数行业权重数据
return stocks_IndexIndustryWeight("SH000300",20241231T,1,1);