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,86 @@
# 金融 / 板块 / 基本情况 / 中间函数
## `getbkIndexIDs()`
声明:function
获取AB股板块及编码对照表
返回:array
### 示例
范例01:调用函数
```tsl
return getbkIndexIDs();
```
## `lostAstocksInBk()`
声明:function
”终止上市;暂停上市”板块中股票的所属板块,模型开发的中间函数。有做缓存处理
返回:table
### 示例
范例01:调用函数
```tsl
//
返回'SZ000003'的退市日
return lostAstocksInBk();
// 返回(部分结果展示)
StockID
所属板块
SH600001
上证A股
SH600002
上证A股
SH600003
上证A股
SH600005
上证A股
SH600065
上证A股
SH600069
上证A股
SH600074
上证A股
SH600087
上证A股
SH600092
上证A股
SH600102
上证A股
SH600175
上证A股
……
```
## `stocksListOnly(stock_arr, end_t, type)`
声明:function
指定日仅发行指定股票类型个数
| 参数 | 类型 | 说明 |
| ----------- | --------- | ------------------------ |
| `stock_arr` | array | 一维字符串数组,股票列表 |
| `end_t` | date_time | 日期,统计截止日期 |
| `type` | int | 用户自定义,发行类型 |
返回:int
### 示例
范例01:调用函数
```tsl
// 返回A股20180831日上市的仅发行A股个数
stock_arr := getBk("A股");
return stocksListOnly(stock_arr, 20180831T, 0);
// 输出:3351
```