📦 deps(tsl): sync tsl-playbook from a71480a4

Source-Commit: a71480a4ae
This commit is contained in:
ci[bot]
2026-08-12 08:38:08 +08:00
parent 683f83d17c
commit 670ba950a6
1496 changed files with 292667 additions and 220122 deletions
@@ -0,0 +1,107 @@
# 金融 / 指数 / 指数成分 / 报表
## `indexBkWeightbyDate1(indexid, endt)`
声明:function
返回指数指定日成份权重
<!-- tags: 金融 指数 指数成分 报表 返回 获取 报告期 -->
| 参数 | 类型 | 说明 |
| --------- | -------- | -------------- |
| `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
返回指定日指数的行业权重
<!-- tags: 金融 指数 指数成分 报表 返回 获取 报告期 -->
| 参数 | 类型 | 说明 |
| ----------- | -------- | -------------- |
| `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
获取区间指定行业在指定指数中的权重(%)
<!-- tags: 金融 指数 指数成分 报表 获取 查询 报告期 -->
| 参数 | 类型 | 说明 |
| -------------- | -------- | --------------- |
| `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
获取区间指定股票在指定指数中的权重(%)
<!-- tags: 金融 指数 指数成分 报表 获取 查询 报告期 -->
| 参数 | 类型 | 说明 |
| --------- | -------- | --------------- |
| `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);
```