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 @@
## `compositeRatioValue(v1, v2, n)`
声明:function
返回初值V1到末值V2的复合增长率。
| 参数 | 类型 | 说明 |
@@ -14,6 +16,8 @@
## `growthOfRepPeriod(expr, r_date, result_type)`
声明:function
表达式Exp某个指标在报告期Rdate的同比增长,ReturnType决定返回偏离值(增加值)还是偏离率(增速%)。
| 参数 | 类型 | 说明 |
@@ -26,6 +30,8 @@
## `growthWithLowestOfPeriod(exp, beg_date, end_date, return_type)`
声明:function
返回表达式Exp在区间BegDate到EndDate中的最小值与在EndDate的值的偏离,ReturnType决定返回偏离值(增加值)还是偏离率(增速%)。。
| 参数 | 类型 | 说明 |
@@ -46,6 +52,8 @@ return GrowthWithLowestOfPeriod(@close(),20180801T,20180903T,0);
## `isNull(arg1)`
声明:function
判断条件是否成立。
| 参数 | 类型 | 说明 |
@@ -56,6 +64,8 @@ return GrowthWithLowestOfPeriod(@close(),20180801T,20180903T,0);
## `occuredRepIdOfRepPeriod(expr, beg_report, end_year)`
声明:function
在区间BegReport到EndYear年中,与BegReport报告期同比的报告期中返回表达式exp为真的报告期。
| 参数 | 类型 | 说明 |
@@ -68,12 +78,16 @@ return GrowthWithLowestOfPeriod(@close(),20180801T,20180903T,0);
## `positionOfIndustry()`
声明:function
向导函数相关函数。
返回:any
## `ratioValueByType(v1, v2, _type, n)`
声明:function
依据返回类型type,返回初值V1到末值V2的增长/增长率/复合增长率。
| 参数 | 类型 | 说明 |
@@ -87,6 +101,8 @@ return GrowthWithLowestOfPeriod(@close(),20180801T,20180903T,0);
## `reduceWithHighestOfPeriod(exp, beg_date, end_date, return_type)`
声明:function
返回表达式Exp在区间BegDate到EndDate中的最大值与在EndDate的值的偏离,ReturnType决定返回偏离值(增加值)还是偏离率(增速%)。
| 参数 | 类型 | 说明 |
@@ -107,12 +123,16 @@ return ReduceWithHighestOfPeriod(@close(),20180801T,20180803T,0);
## `relativeStrengthOfIndustry()`
声明:function
向导函数相关函数。
返回:any
## `reportOfListed(id, report_id)`
声明:function
返回指定报告期ReportID的基本面ID数据。如果该证券未上市,则返回0,函数与系统参数(股票、时间)相关。
| 参数 | 类型 | 说明 |
@@ -124,6 +144,8 @@ return ReduceWithHighestOfPeriod(@close(),20180801T,20180803T,0);
## `reportPerShareOfListed(id, report_id)`
声明:function
指定报告期ReportID的基本面ID数据/总股本。如果该证券未上市,则返回0,函数与系统参数(股票、时间)相关。
| 参数 | 类型 | 说明 |
@@ -135,6 +157,8 @@ return ReduceWithHighestOfPeriod(@close(),20180801T,20180803T,0);
## `reportValueOfPeriod(exp, beg_report, end_report, report_type, reportvalue)`
声明:function
区间财务数据
| 参数 | 类型 | 说明 |
@@ -149,6 +173,8 @@ return ReduceWithHighestOfPeriod(@close(),20180801T,20180803T,0);
## `simplyRatioValue(v1, v2)`
声明:function
返回初值V1到末值V2的增长率。若V1<0,则直接返回0。
| 参数 | 类型 | 说明 |
@@ -160,6 +186,8 @@ return ReduceWithHighestOfPeriod(@close(),20180801T,20180803T,0);
## `stockTrailingAvgByEndT(endt, ref_type, exp, is_exclude_ipo, n)`
声明:function
获取基于指定日推移阶段的日均指标
| 参数 | 类型 | 说明 |
@@ -185,6 +213,8 @@ return StockTrailingAvgByEndT(Endt,RefType,Exp);
## `stockTrailingStdByEndT(endt, ref_type, exp, is_exclude_ipo, n)`
声明:function
获取基于指定日推移阶段的指标标准差
| 参数 | 类型 | 说明 |
@@ -210,6 +240,8 @@ return StockTrailingStdByEndT(Endt,RefType,Exp); // 1.69
## `TechCal_Unit(expression)`
声明:function
向导函数相关函数。
| 参数 | 类型 | 说明 |