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 @@
## `accOfNReport(exp, report_id, n, report_type, if_stand, return_type)`
声明:function
N期加速度算子
| 参数 | 类型 | 说明 |
@@ -24,6 +26,8 @@ return ACCOfNReport(@Last12MData(DefaultRepID(),46078),20201231,8,1);
## `accOfNReport2(exp, report_id, n)`
声明:function
N季加速度,与ACCOfNReport的区别在于仅支持季度数据计算,与系统证券相关
| 参数 | 类型 | 说明 |
@@ -46,6 +50,8 @@ return RobustACCOfNReport2(Exp,ReportID,N);   //-0.2568
## `avgOfNReport(exp, report_id, n, report_type)`
声明:function
当前时间ReportID向前推N年,返回从ReportID-N到ReportID时间报告期Exp指标平均值,与系统参数(股票)相关。
| 参数 | 类型 | 说明 |
@@ -59,6 +65,8 @@ return RobustACCOfNReport2(Exp,ReportID,N);   //-0.2568
## `avgOfNReport2(exp, report_id, n)`
声明:function
N个季度报告期数据的平均值,与系统证券相关
| 参数 | 类型 | 说明 |
@@ -81,6 +89,8 @@ return AvgOfNReport2(Exp,ReportID,N);   //122912375000
## `continuedMatchOfNReport(exp, report_id, n)`
声明:function
当前时间ReportID向前推N年,若从ReportID-N到ReportID时间均存在报告Exp则返回1,否则返回0,与系统参数(股票)相关。
| 参数 | 类型 | 说明 |
@@ -101,6 +111,8 @@ return ContinuedMatchOfNReport(@reportofall(46002,GetSysParam('DefaultRepID')),2
## `eaaOfNReport(exp, report_id, last_report_type)`
声明:function
N期加速度EAA
| 参数 | 类型 | 说明 |
@@ -124,6 +136,8 @@ return t;   //-0.016
## `eavOfNReport(exp, report_id, n, report_type, last_report_type)`
声明:function
N期加速度EAV
| 参数 | 类型 | 说明 |
@@ -151,6 +165,8 @@ return t;    //-0.45
## `growthOfNReport(exp, report_id, n, return_type)`
声明:function
当前时间ReportID向前推N年,返回从ReportID-N与ReportID表达式Exp指标的增长比例,其中returntype决定增长模式,与系统参数(股票)相关。
| 参数 | 类型 | 说明 |
@@ -172,6 +188,8 @@ return GrowthOfNReport(@reportofall(46002,GetSysParam('DefaultRepID')),20151231,
## `highestOfNReport(exp, report_id, n, report_type)`
声明:function
表达式N期最高
| 参数 | 类型 | 说明 |
@@ -192,6 +210,8 @@ return HighestOfNReport(@ReportOfAll(46080,DefaultRepID()),20221231,5,0);
## `highGrowthOfNReport(exp, report_id, n, report_type, range)`
声明:function
N期高速增长拐点:最近N期中,第N期数据上升且大于前N-1期极差的range倍 max=max(前N-1期数据) min=min(前N-1期数据) 第N期>上期+range\*(max-min)
| 参数 | 类型 | 说明 |
@@ -219,6 +239,8 @@ return t;     //1
## `lowestOfNReport(exp, report_id, n, report_type)`
声明:function
表达式N期最低
| 参数 | 类型 | 说明 |
@@ -239,6 +261,8 @@ return lowestOfNReport(@ReportOfAll(46080,DefaultRepID()),20221231,5,0);
## `occuredOfNReport(exp, report_id, n)`
声明:function
当前时间ReportID向前推N年,返回从ReportID-N到ReportID时间发生报告Exp的次数,与系统参数(股票)相关。
| 参数 | 类型 | 说明 |
@@ -259,6 +283,8 @@ returnOccuredOfNReport(@reportofall(46002,GetSysParam('DefaultRepID')),20151231,
## `occuredRepIdOfNReport(exp, report_id, n)`
声明:function
当前时间ReportID向前推N年,若从ReportID-N到ReportID时间存在报告Exp则返回报告期,与系统参数(股票)相关。
| 参数 | 类型 | 说明 |
@@ -271,6 +297,8 @@ returnOccuredOfNReport(@reportofall(46002,GetSysParam('DefaultRepID')),20151231,
## `refReportValue(exp, report_id, n)`
声明:function
当前时间ReportID向前推N年,返回ReportID-N时间点表达式 Exp指标值,与系统参数(股票)相关。
| 参数 | 类型 | 说明 |
@@ -291,6 +319,8 @@ return RefReportValue(@reportofall(46002,GetSysParam('DefaultRepID')),20161231,1
## `robustAccOfNReport(exp, report_id, n, report_type, last_report_type)`
声明:function
N期稳健加速度
| 参数 | 类型 | 说明 |
@@ -312,6 +342,8 @@ return RobustACCOfNReport(@Last12MData(DefaultRepID(),9900604),20201231,8,0); //
## `robustAccOfNReport2(exp, report_id, n)`
声明:function
N季稳健加速度,与RobustACCOfNReport的区别在于仅支持季度数据计算,与系统证券相关
| 参数 | 类型 | 说明 |
@@ -334,6 +366,8 @@ return RobustACCOfNReport2(Exp,ReportID,N);   //-0.2568
## `robustGrowthOfNReport2(exp, report_id, n)`
声明:function
N季稳健增速,与RobustGrowthOfNReport的区别在于仅支持季度数据计算,与系统证券相关
| 参数 | 类型 | 说明 |
@@ -356,6 +390,8 @@ return RobustGrowthOfNReport2(Exp,ReportID,N); //-0.3269
## `secondOrderGrowthOfNReport(exp, report_id, n, report_type)`
声明:function
N期二阶增长拐点:最近N期中,前N-1期逐渐下降,第N期数据上升 l 参数: Exp:表达式类型,计算相关财务指标,一般与报告期相关,如TTM归属母公司净利润:@Last12MData(DefaultRepID(),46078) ReportID:报告期 N:整数,最近N期 ReportType:报告期类型 取值 含义 备注 0 年度标准(默认) 假设ReportID:=20200930N=2,对应最近N个报告期为20190930、20200930 1 季度标准 假设ReportID:=20200930N=2,对应最近N个报告期为20200630、20200930
| 参数 | 类型 | 说明 |
@@ -381,6 +417,8 @@ return t;    //1
## `standGrowthOfNReport(exp, report_id, n, report_type)`
声明:function
N期标准化增长率
| 参数 | 类型 | 说明 |
@@ -406,6 +444,8 @@ return t;   //1.265
## `stdOfNReport2(exp, report_id, n)`
声明:function
N个季度报告期数据的标准差,与系统证券相关
| 参数 | 类型 | 说明 |
@@ -428,6 +468,8 @@ return StdOfNReport2(Exp,ReportID,N);  //56286669451.8528
## `sumOfNReport(exp, report_id, n)`
声明:function
当前时间ReportID向前推N年,返回从ReportID-N到ReportID时间报告期Exp指标和,与系统参数(股票)相关。
| 参数 | 类型 | 说明 |
@@ -448,6 +490,8 @@ return SumOfNReport(@reportofall(46002,GetSysParam('DefaultRepID')),20151231,2);
## `sumOfNReport2(exp, report_id, n)`
声明:function
N个季度报告期数据之和,与系统证券相关
| 参数 | 类型 | 说明 |
@@ -470,6 +514,8 @@ return SumOfNReport2(Exp,ReportID,N);  //983299000000
## `turnPositiveOfNReport(exp, report_id, n, report_type)`
声明:function
N期转正拐点:最近N期中,前N-1期数据小于0,第N期数据大于0
| 参数 | 类型 | 说明 |
@@ -495,6 +541,8 @@ return t;   //1
## `robustGrowthOfNReport(exp, report_id, n, report_type)`
声明:function
过去N期稳健增速,与系统证券相关
| 参数 | 类型 | 说明 |