feat(tsl-api-reference): index class and unit APIs

Migrate reference pages to declaration-line storage and rebuild the
13-column index.

Add qualified member lookup plus regression and end-to-end coverage.
This commit is contained in:
csh
2026-07-29 15:47:46 +08:00
parent 9edc8fc868
commit 13be5ea0aa
239 changed files with 39157 additions and 12846 deletions
@@ -2,6 +2,8 @@
## `getAllIndexIDs(end_t)`
声明:function
获取指定日所有申万行业指数ID及名称对照表
| 参数 | 类型 | 说明 |
@@ -12,6 +14,8 @@
## `getBkBacktrackByDate(index_id, end_t, ex_type)`
声明:function
获取指数历史上指定日样本(可回溯)。当ExType=1时,如指数成分中取不到成分,则从权重表中获取。此函数可以简单回溯历史数据,当Endt早于指数开始日,则选取指数开始日成分股在endt在市交易的成分股列表。
| 参数 | 类型 | 说明 |
@@ -24,6 +28,8 @@
## `getbkbybegtendt(indexid, begt, endt)`
声明:function
区间曾经是成分股的股票,区间范围内是指数成份股的股票
| 参数 | 类型 | 说明 |
@@ -36,6 +42,8 @@
## `getBkByDate(index_id, end_t, extype)`
声明:function
获取指数历史指定日的成份股列表。与GetBK不同,该函数需要的第一个参数是指数代码,获取该指数的指定日的成分股,比如沪深300定期调整,在不同时间获取的成分股将不同。 新增功能,当ExType=1时指数成分中取不到成分时,则从权重表中获取
| 参数 | 类型 | 说明 |
@@ -48,6 +56,8 @@
## `getBkByIndexName(index_name, end_t)`
声明:function
使用指数名称获取指定日指数成分,只支持申万行业、A股
| 参数 | 类型 | 说明 |
@@ -59,6 +69,8 @@
## `getBkGoMarketByDate(index_id, end_t, ex_type)`
声明:function
获取指数历史上指定日样本(已上市)。当ExType=1时指数成分中取不到成分时,则从权重表中获取。存在申万行业分类的成份股中,它的选入日期可能早于上市日,现剔除这部分标的。
| 参数 | 类型 | 说明 |
@@ -71,6 +83,8 @@
## `getBkNameToId(index_name, end_t)`
声明:function
使用指数名称获取指定日指数成分
| 参数 | 类型 | 说明 |
@@ -82,6 +96,8 @@
## `getBksByDate(index_arr, endt)`
声明:function
获取指数历史指定日的成份股列表。与GetBKByDate不同,可以指定多个指数代码获取,去重处理。
| 参数 | 类型 | 说明 |
@@ -93,6 +109,8 @@
## `Stock_HSGEligibleInfo(bkid, stockid)`
声明:function
股票调入调出沪深港通情况,返回:板块代码、板块、代码、入选日期、剔除日期、成份标志
| 参数 | 类型 | 说明 |
@@ -104,6 +122,8 @@
## `stockInandOutIndexCompisteDetail(index_id, begt, endt)`
声明:function
查询指定股票做为成分股在指定指数INDEXID指定时间内begt到endt,调入和调出指数详情.
| 参数 | 类型 | 说明 |
@@ -125,6 +145,8 @@ return StockInandOutIndexCompisteDetail(SH000300,begt,endt);
## `stockIsIndexComposite(index_id, end_t)`
声明:function
查询指定日股票是否是指数的成份股,与系统证券pn_stock()相关。
| 参数 | 类型 | 说明 |