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 @@
## `Bk_ListAAndH(end_t)`
声明:function
返回板块同时发行A、H股公司数,当前板块通过setsysparam(pn_bk(),bkname)进行设置,其中bkname为当前板块名称。
| 参数 | 类型 | 说明 |
@@ -12,12 +14,16 @@
## `getFCompany()`
声明:function
金融类公司列表。
返回:array
## `stocksACount(stock_arr, end_t)`
声明:function
返回指定日已上市的A股个数.
| 参数 | 类型 | 说明 |
@@ -29,6 +35,8 @@
## `stocksTotalShares(stock_arr, end_t, s_type)`
声明:function
板块总股本和(万)
| 参数 | 类型 | 说明 |
@@ -51,6 +59,8 @@ return stocksTotalShares(stock_arr,end_t,0);
## `stocksListQk(stock_arr, beg, end_t)`
声明:function
区间上市的股票列表
| 参数 | 类型 | 说明 |
@@ -82,6 +92,8 @@ SH601669
## `stocksCount(bk_name, end_t)`
声明:function
获得指定板块在指定日EndT及之前上市的家数.
| 参数 | 类型 | 说明 |
@@ -102,6 +114,8 @@ return stocksCount("上证A股",end_t);
## `stocksIssuedQk(stock_arr, beg_t, end_t)`
声明:function
区间发行的股票列表,发行起始日在BegT到EndT之间的股票。
| 参数 | 类型 | 说明 |
@@ -132,6 +146,8 @@ SH601606
## `stocksIssuePrice(stock_arr, s_type)`
声明:function
股票列表StockArr平均发行价格.
| 参数 | 类型 | 说明 |
@@ -152,6 +168,8 @@ return stocksIssuePrice(stock_arr,0);
## `stocksHasDeclareReport(stock_arr, report_date)`
声明:function
已公布报表的公司.
| 参数 | 类型 | 说明 |
@@ -182,6 +200,8 @@ SH600012
## `stocksHasGoMarket(stock_arr, end_t, s_type)`
声明:function
指定日已上市公司.
| 参数 | 类型 | 说明 |
@@ -203,6 +223,8 @@ return stocksHasGoMarket(stock_arr,20150203T,0);
## `getAbkbyEndT(bk_name, endt)`
声明:function
获取A股板块历史成份股。可判断板块包括:深证A股;上证A股;中小企业板;创业板;科创板等,以AllABk()中包含的板块为准。
| 参数 | 类型 | 说明 |
@@ -226,6 +248,8 @@ return getAbkbyEndT('A股',20190801T);
## `getAbkbyDate(bk_name, endt)`
声明:function
通过板块中文名BKName查询指定日EndT的成分股列表(剔除暂停上市的股票)。模型支持输入多个板块名称,用半角分号分隔,如"上证A股;深证A股"。
| 参数 | 类型 | 说明 |
@@ -249,6 +273,8 @@ return getAbkbyDate('A股',20190801T);
## `getFundsByDate(index_id, endt)`
声明:function
获取指定标的指数的基金集合
| 参数 | 类型 | 说明 |
@@ -269,6 +295,8 @@ return getFundsByDate(index_id,endt);
## `stocksJjCount(stock_arr, beg_t, end_t)`
声明:function
返回begT到endt之间上市的基金个数.
| 参数 | 类型 | 说明 |
@@ -291,6 +319,8 @@ return stocksJjCount(stock_arr,beg_t,end_t);
## `marketList()`
声明:function
返回市场常用列表,仅包括深证A股、深证B股、深证基金、上证A股、上证B股、上证基金。如果需要获得其他目录下的板块列表,请使用函数GetBKList,使用方法参见该函数的函数说明。
返回:Array
@@ -317,6 +347,8 @@ return marketList();
## `stocksGoMarketCount(stock_arr, end_t)`
声明:function
指定区间内发行的股票个数.函数使用发行起始日进行判断,获取发行起始日在begt到endt之间的股票个数
| 参数 | 类型 | 说明 |
@@ -337,6 +369,8 @@ return stocksGoMarketCount(stock_arr,20180101T,20180919T);
## `getStocks()`
声明:function
返回深证A股,深证B股,深证基金,上证A股,上证B股,上证基金的股票列表
返回:Array
@@ -350,6 +384,8 @@ return getStocks();
## `getAllBkList()`
声明:function
得到所有的板块列表,其中包括用户板块列表
返回:Array
@@ -376,6 +412,8 @@ return getAllBkList ();
## `stocksBCount(stock_arr, end_t)`
声明:function
返回StockArr股票列表中,在指定日上市的B股个数。函数通过上市第一个交易日进行判断。注意,设置的周期会影响到该判断,如果是日线,则获取第一个日线日期判断,如果是分钟线,则获取第一个分钟数据进行判断。建议调用该函数时,设置周期为日线
| 参数 | 类型 | 说明 |
@@ -396,6 +434,8 @@ return stocksBCount(stock_arr,20180919T);
## `industryNames()`
声明:function
行业板块说明,新行业分类方式。
返回:any
@@ -409,6 +449,8 @@ return industryNames();
## `qfiiNames()`
声明:function
证券公司目录,资料来源于中国证监会,截止日期2002年11月25日。
返回:any
@@ -422,6 +464,8 @@ return qfiiNames ()
## `getbkEx(bk)`
声明:function
getbk()扩展函数,从板块BK中选取当天在市的股票。
| 参数 | 类型 | 说明 |
@@ -439,12 +483,16 @@ return getbkEx('安徽');
## `gics4LevelIndustryNames()`
声明:function
股票对应的GICS分类,天软目前没有全球行业分类数据。
返回:any
## `tradeBkExist(bk_arr, b_kname)`
声明:function
判断板块列表BKArr是否包含板块Bkname,如果包含则返回1,否则返回0。
| 参数 | 类型 | 说明 |
@@ -464,6 +512,8 @@ return tradeBkExist(bk_arr,'安徽');
## `centralizationNames()`
声明:function
常用行业集中度。
返回:any
@@ -477,6 +527,8 @@ return centralizationNames();
## `isValueBetweeMaxAndMin(tb, field_name, lowvalue, highvalue)`
声明:function
从一张表中返回指定字段的数值在指定区间段内的个数。
| 参数 | 类型 | 说明 |
@@ -498,6 +550,8 @@ return isValueBetweeMaxAndMin(t,'close',0,5);
## `qynjNames()`
声明:function
企业年金名录,仅显示范例结果
返回:any
@@ -511,6 +565,8 @@ return qynjNames();
## `qsNames()`
声明:function
证券公司名录,截止至2002/10/25中国证券网公布数据。该函数仅为样例。
返回:any
@@ -524,6 +580,8 @@ return qsNames();
## `stocksListOnly(stock_arr, end_t, _type)`
声明:function
指定日仅发行指定股票类型个数.
| 参数 | 类型 | 说明 |
@@ -545,6 +603,8 @@ return stocksListOnly(stock_arr,20180831T,0);
## `lostAstocksInBk()`
声明:function
”终止上市;暂停上市”板块中股票的所属板块,模型开发的中间函数。有做缓存处理。
返回:Table
@@ -585,6 +645,8 @@ SH600175
## `getbkIndexIDs()`
声明:function
获取AB股板块及编码对照表
返回:array