feat(tsl-api-reference): expand and reorganize api catalog

Flatten builtin pages, add third-party and platform scopes, and import financial and data warehouse references.

Keep the existing generated index without rebuilding after signature normalization.
This commit is contained in:
csh
2026-08-10 18:26:24 +08:00
parent 2938300acb
commit 9010829c6d
1186 changed files with 243901 additions and 219769 deletions
@@ -0,0 +1,71 @@
# 金融 / 数据提取
## `getDataByMd(stockid, n)`
声明:function
使用Md获取指定日数据,与系统参数(时间)相关
| 参数 | 类型 | 说明 |
| --------- | ------- | ---------------- |
| `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获取指定日数据(考虑交易日),与系统参数(时间)相关
| 参数 | 类型 | 说明 |
| --------- | ------- | ---------------- |
| `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
指定行业的所有下级行业列表
| 参数 | 类型 | 说明 |
| ------------- | ----------- | ---------------- |
| `industry_id` | string | 字符串。行业代码 |
| `end_t` | t_date_time | 日期。截止日期 |
返回:array
### 示例
范例01:调用函数
```tsl
// 在20201207的申万一级行业列表
return stockIndustryLowerArr("SWHY110000", 20201207T);
```