天软金融分析.NET函数大全 > 金融报表分析 > 03.行业板块 > 3.01基本情况

stocks_IndexIndustryWeight    

简述

  指数行业权重
    其中中上协行业分级只有二级,申万行业分级有三级,中证行业分级有四级
定义
stocks_IndexIndustryWeight(IndexID:String;EndT:TDateTime;IndustryType:Integer;IndustryLevel:Integer):Boolean
参数
名称类型说明
IndexIDString指数,指数代码
EndTTDateTime日期,截止日期
IndustryTypeInteger用户自定义,行业分类标准
显示名 取值
中上协行业 1
申万行业 2
中证行业 3
IndustryLevelInteger用户自定义,行业分级
显示名 取值
一级行业 1
二级行业 2
三级行业 3
四级行业 4
返回Boolean指数行业权重数据
  • 范例

       //A股在2024-12-31的指数行业权重数据
      return stocks_IndexIndustryWeight("SH000300",20241231T,1,1);
相关