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,12 +2,16 @@
## `getDiyuList()`
声明:function
得到地域列表。由于数据提供的问题,用此方法比用GETBKList('地域')更准确。
返回:array
## `getDiyuStocks(name)`
声明:function
得到地域股票。
| 参数 | 类型 | 说明 |
@@ -18,12 +22,16 @@
## `getFenleiList()`
声明:function
得到分类列表。
返回:array
## `getFenleiStocks(name)`
声明:function
得到分类股票。
| 参数 | 类型 | 说明 |
@@ -34,12 +42,16 @@
## `getHangyeList()`
声明:function
得到行业列表。由于数据提供的问题,用此方法比用GETBKList('行业')更准确。
返回:array
## `getHangyeStocks(name)`
声明:function
得到行业股票。
| 参数 | 类型 | 说明 |
@@ -50,6 +62,8 @@
## `getHyDyFlDetails(_type)`
声明:function
得到分行业/地域/分类的股票的详细情况。
| 参数 | 类型 | 说明 |
@@ -60,6 +74,8 @@
## `getHyDyFlList(_type)`
声明:function
得到行业/地域/分类的列表,用于替代GetBKList。
| 参数 | 类型 | 说明 |
@@ -70,6 +86,8 @@
## `getHyDyFlStocks(_type, name)`
声明:function
得到行业的股票。取代GetBK,比其更精确。
| 参数 | 类型 | 说明 |
@@ -81,6 +99,8 @@
## `getStocksByName(name)`
声明:function
根据名称得到股票列表。
| 参数 | 类型 | 说明 |
@@ -91,6 +111,8 @@
## `stockCsrcIndustryArr(level_n, end_t)`
声明:function
返回指定日指定级别证监会行业列表。目前天软只有证监会最新版的2012版的上市公司行业分类指引数据,所以endt参数暂时没有作用。
| 参数 | 类型 | 说明 |
@@ -102,6 +124,8 @@
## `stockCsrcIndustryId1()`
声明:function
指定证券指定日期证监会一级行业代码,与系统参数(股票、时间)相关。
返回:string
@@ -116,6 +140,8 @@ return StockCSRCIndustryID1();
## `stockCsrcIndustryId2()`
声明:function
指定证券指定日期证监会二级行业代码,与系统参数(股票、时间)相关。
返回:string
@@ -130,6 +156,8 @@ return StockCSRCIndustryID2();
## `stockCsrcIndustryName1()`
声明:function
指定证券指定日期证监会一级行业名称,与系统参数(股票、时间)相关。
返回:string
@@ -144,6 +172,8 @@ return StockCSRCIndustryName1();
## `stockCsrcIndustryName2()`
声明:function
指定证券指定日期证监会二级行业名称,与系统参数(股票、时间)相关。
返回:string
@@ -158,6 +188,8 @@ return StockCSRCIndustryName2();
## `stockGetIndustrydata(stockid, end_t, level, industry_type)`
声明:function
返回证券指定日期有效的行业数据。
| 参数 | 类型 | 说明 |
@@ -171,6 +203,8 @@ return StockCSRCIndustryName2();
## `stockIndustryArr(industry_type, level_n, end_t)`
声明:function
返回指定日指定级别行业列表,与系统参数(股票)相关。默认返回申万行业的一级行业列表。
| 参数 | 类型 | 说明 |
@@ -183,6 +217,8 @@ return StockCSRCIndustryName2();
## `stockindustryindexid(industryid, endt)`
声明:function
行业代码对应的指数代码,返回行业代码指定日期对应的指数代码
| 参数 | 类型 | 说明 |
@@ -194,6 +230,8 @@ return StockCSRCIndustryName2();
## `stockIndustryInfoLvN(stock_id, end_t, level, industry_type, v_type)`
声明:function
指定证券指定日期指定级别行业名称,默认取申万的一级行业代码。
| 参数 | 类型 | 说明 |
@@ -208,6 +246,8 @@ return StockCSRCIndustryName2();
## `stockswindustryarr(leveln, endt)`
声明:function
返回指定日指定级别申万行业列表
| 参数 | 类型 | 说明 |
@@ -219,6 +259,8 @@ return StockCSRCIndustryName2();
## `stockswindustryid1()`
声明:function
申万一级行业编码,返回指定证券指定日期申申万一级行业代码
返回:string
@@ -234,6 +276,8 @@ return StockSWIndustryID1(); //返回:SWHY430000
## `stockswindustryid2()`
声明:function
申万二级行业编码,返回指定证券指定日期申申万二级行业代码
返回:string
@@ -249,6 +293,8 @@ return StockSWIndustryID2(); //返回:SWHY430100
## `stockswindustryid3()`
声明:function
申万三级行业编码,返回指定证券指定日期申申万三级行业代码
返回:string
@@ -264,24 +310,32 @@ return StockSWIndustryID3(); //返回:SWHY430101
## `StockSWIndustryIDLv1_II()`
声明:function
指定证券指定日期的申万一级行业指数代码(考虑非指数成分),与系统参数(股票、时间)相关。
返回:string|datetime
## `StockSWIndustryIDLv2_II()`
声明:function
指定证券指定日期的申万二级行业指数代码(考虑非指数成分),与系统参数(股票、时间)相关。
返回:string|datetime
## `StockSWIndustryIDLv3_II()`
声明:function
指定证券指定日期的申万三级行业指数代码(考虑非指数成分),与系统参数(股票、时间)相关。
返回:string|datetime
## `stockswindustryname1()`
声明:function
返回指定证券指定日期申万一级行业名称
返回:string
@@ -297,6 +351,8 @@ return StockSWIndustryName1(); //返回:申万房地产
## `stockswindustryname2()`
声明:function
返回指定证券指定日期申万二级行业名称
返回:string
@@ -312,6 +368,8 @@ return StockSWIndustryName2(); //返回:申万房地产开发
## `stockswindustryname3()`
声明:function
返回指定证券指定日期申万三级行业名称
返回:string
@@ -327,24 +385,32 @@ return StockSWIndustryName3(); //返回:申万房地产开发
## `StockSWIndustryNameLv1_II()`
声明:function
指定证券指定日期的申万一级行业指数名称(考虑非指数成分),与系统参数(股票、时间)相关。
返回:string
## `StockSWIndustryNameLv2_II()`
声明:function
指定证券指定日期的申万二级行业指数名称(考虑非指数成分),与系统参数(股票、时间)相关。
返回:string
## `StockSWIndustryNameLv3_II()`
声明:function
指定证券指定日期的申万三级行业指数名称(考虑非指数成分),与系统参数(股票、时间)相关。
返回:string
## `trimHangyeName(name)`
声明:function
行业名称去间隔。
| 参数 | 类型 | 说明 |