📦 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,77 @@
# 金融 / 数据提取
## `getDataByMd(stockid, n)`
声明:function
返回使用Md获取指定日数据,与系统参数(时间)相关
<!-- tags: 金融 数据提取 返回 获取 -->
| 参数 | 类型 | 说明 |
| --------- | ------- | ---------------- |
| `stockid` | string | 字符串。证券代码 |
| `n` | integer | 整数。第几个数据 |
返回:real
### 示例
范例01:调用函数
```tsl
// "MA110C2375"在20210322日的开仓手续费额
setSysParam(PN_Date(), 20210322T);
return getDataByMd("MA110C2375.SP", 1);
// 输出:0.5
```
## `getDataByMd2(stockid, n)`
声明:function
返回使用Md获取指定日数据(考虑交易日),与系统参数(时间)相关
<!-- tags: 金融 数据提取 返回 获取 -->
| 参数 | 类型 | 说明 |
| --------- | ------- | ---------------- |
| `stockid` | string | 字符串。证券代码 |
| `n` | integer | 整数。第几个数据 |
返回:real
### 示例
范例01:调用函数
```tsl
// "MA110C2375"在20210322日的开仓手续费额
setSysParam(PN_Date(), 20210322T);
return getDataByMd2("MA110C2375.SP", 1);
// 输出:0.5
```
## `stockIndustryLowerArr(industry_id, end_t)`
声明:function
返回指定行业的所有下级行业列表
<!-- tags: 金融 数据提取 返回 获取 -->
| 参数 | 类型 | 说明 |
| ------------- | ----------- | ---------------- |
| `industry_id` | string | 字符串。行业代码 |
| `end_t` | t_date_time | 日期。截止日期 |
返回:array
### 示例
范例01:调用函数
```tsl
// 在20201207的申万一级行业列表
return stockIndustryLowerArr("SWHY110000", 20201207T);
```