# 金融 / 指数 / 指数成分 / 报表 ## `indexBkWeightbyDate1(indexid, endt)` 声明:function 返回指数指定日成份权重 | 参数 | 类型 | 说明 | | --------- | -------- | -------------- | | `indexid` | index | Index,指数代码 | | `endt` | datetime | 日期,截止日期 | 返回:array ### 示例 范例01:"SH000300"在2020-09-24指数指定日成份权重 ```tsl // "SH000300"在2020-09-24指数指定日成份权重 return IndexBkWeightbyDate1("SH000300", 20200924T); ``` ## `indexIndusWeightEndT(indexid, endt, industype)` 声明:function 返回指定日指数的行业权重 | 参数 | 类型 | 说明 | | ----------- | -------- | -------------- | | `indexid` | index | Index,指数代码 | | `endt` | datetime | 日期,截止日期 | | `industype` | int | 整型,行业类别 | 返回:array ### 示例 范例01:"SH000300"在2020-09-24的行业权重 ```tsl // "SH000300"在2020-09-24的行业权重 return IndexIndusWeightEndT("SH000300", 20200924T, 5); ``` ## `indexIndusWeightQJ(industryname, indexid, begt, endt, industype)` 声明:function 获取区间指定行业在指定指数中的权重(%) | 参数 | 类型 | 说明 | | -------------- | -------- | --------------- | | `industryname` | string | 字符串,行业名称 | | `indexid` | index | Index,指数代码 | | `begt` | datetime | 日期,开始日期 | | `endt` | datetime | 日期,截止日期 | | `industype` | int | 整型,行业类别 | 返回:array ### 示例 范例01:"采矿业"在2020-09-24~2020-10-24期间在指数“SH000300”内的行业权重 ```tsl // "采矿业"在2020-09-24~2020-10-24期间在指数"SH000300"内的行业权重 return IndexIndusWeightQJ("采矿业", "SH000300", 20200924T, 20201024T, 1); ``` ## `indexStockWeightQJ(stockid, indexid, begt, endt)` 声明:function 获取区间指定股票在指定指数中的权重(%) | 参数 | 类型 | 说明 | | --------- | -------- | --------------- | | `stockid` | string | 字符串,证券代码 | | `indexid` | string | 字符串,指数代码 | | `begt` | datetime | 日期,开始日期 | | `endt` | datetime | 日期,截止日期 | 返回:array ### 示例 范例01:"SZ000002"在2020-09-24~2020-10-24期间在指数“SH000300”内的权重 ```tsl // "SZ000002"在2020-09-24~2020-10-24期间在指数"SH000300"内的权重 return IndexStockWeightQJ("SZ000002", "SH000300", 20200924T, 20201024T); ```