📝 docs(tsl): sync api skill with corrected codegen
Mirror docs/tsl/codegen into the bundled tsl-api-reference skill and rebuild the function index. Remove invalid duplicate API entries for cb_delistedbydate, createhttpsession, exportJsonString, and Anova_Bartlett so exact lookup returns the canonical entries.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# 数据仓库 / N期
|
||||
|
||||
### `accOfNReport(exp, report_id, n, report_type, if_stand, return_type)`
|
||||
## `accOfNReport(exp, report_id, n, report_type, if_stand, return_type)`
|
||||
|
||||
N期加速度算子
|
||||
|
||||
@@ -15,14 +15,14 @@ N期加速度算子
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SH600519");?
|
||||
return ACCOfNReport(@Last12MData(DefaultRepID(),46078),20201231,8,1);
|
||||
```
|
||||
|
||||
### `accOfNReport2(exp, report_id, n)`
|
||||
## `accOfNReport2(exp, report_id, n)`
|
||||
|
||||
N季加速度,与ACCOfNReport的区别在于仅支持季度数据计算,与系统证券相关
|
||||
|
||||
@@ -34,7 +34,7 @@ N季加速度,与ACCOfNReport的区别在于仅支持季度数据计算,与
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SH600000");
|
||||
@@ -44,7 +44,7 @@ N:=8;
|
||||
return RobustACCOfNReport2(Exp,ReportID,N); //-0.2568
|
||||
```
|
||||
|
||||
### `avgOfNReport(exp, report_id, n, report_type)`
|
||||
## `avgOfNReport(exp, report_id, n, report_type)`
|
||||
|
||||
当前时间ReportID向前推N年,返回从ReportID-N到ReportID时间报告期Exp指标平均值,与系统参数(股票)相关。
|
||||
|
||||
@@ -57,7 +57,7 @@ return RobustACCOfNReport2(Exp,ReportID,N); //-0.2568
|
||||
|
||||
返回:float
|
||||
|
||||
### `avgOfNReport2(exp, report_id, n)`
|
||||
## `avgOfNReport2(exp, report_id, n)`
|
||||
|
||||
N个季度报告期数据的平均值,与系统证券相关
|
||||
|
||||
@@ -69,7 +69,7 @@ N个季度报告期数据的平均值,与系统证券相关
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SH600000");
|
||||
@@ -79,7 +79,7 @@ N:=8;
|
||||
return AvgOfNReport2(Exp,ReportID,N); //122912375000
|
||||
```
|
||||
|
||||
### `continuedMatchOfNReport(exp, report_id, n)`
|
||||
## `continuedMatchOfNReport(exp, report_id, n)`
|
||||
|
||||
当前时间ReportID向前推N年,若从ReportID-N到ReportID时间均存在报告Exp则返回1,否则返回0,与系统参数(股票)相关。
|
||||
|
||||
@@ -91,7 +91,7 @@ return AvgOfNReport2(Exp,ReportID,N); //122912375000
|
||||
|
||||
返回:bool
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
判断2014到2015这两年平安银行年报是否全部存在
|
||||
@@ -99,7 +99,7 @@ SetSysParam(pn_stock(),'SZ000001');
|
||||
return ContinuedMatchOfNReport(@reportofall(46002,GetSysParam('DefaultRepID')),20151231,2);
|
||||
```
|
||||
|
||||
### `eaaOfNReport(exp, report_id, last_report_type)`
|
||||
## `eaaOfNReport(exp, report_id, last_report_type)`
|
||||
|
||||
N期加速度EAA
|
||||
|
||||
@@ -111,7 +111,7 @@ N期加速度EAA
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SH600519");
|
||||
@@ -122,7 +122,7 @@ t:=EAAOfNReport(Exp,ReportID,LastReportType);
|
||||
return t; //-0.016
|
||||
```
|
||||
|
||||
### `eavOfNReport(exp, report_id, n, report_type, last_report_type)`
|
||||
## `eavOfNReport(exp, report_id, n, report_type, last_report_type)`
|
||||
|
||||
N期加速度EAV
|
||||
|
||||
@@ -136,7 +136,7 @@ N期加速度EAV
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SH600519");
|
||||
@@ -149,7 +149,7 @@ t:=EAVOfNReport(Exp,ReportID,N,ReportType,LastReportType);
|
||||
return t; //-0.45
|
||||
```
|
||||
|
||||
### `growthOfNReport(exp, report_id, n, return_type)`
|
||||
## `growthOfNReport(exp, report_id, n, return_type)`
|
||||
|
||||
当前时间ReportID向前推N年,返回从ReportID-N与ReportID表达式Exp指标的增长比例,其中returntype决定增长模式,与系统参数(股票)相关。
|
||||
|
||||
@@ -162,7 +162,7 @@ return t; //-0.45
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
返回平安银行2014年与2015年报营业收入增长比例
|
||||
@@ -170,7 +170,7 @@ SetSysParam(pn_stock(),'SZ000001');
|
||||
return GrowthOfNReport(@reportofall(46002,GetSysParam('DefaultRepID')),20151231,1,1);
|
||||
```
|
||||
|
||||
### `highestOfNReport(exp, report_id, n, report_type)`
|
||||
## `highestOfNReport(exp, report_id, n, report_type)`
|
||||
|
||||
表达式N期最高
|
||||
|
||||
@@ -183,14 +183,14 @@ return GrowthOfNReport(@reportofall(46002,GetSysParam('DefaultRepID')),20151231,
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(),"SH600585");
|
||||
return HighestOfNReport(@ReportOfAll(46080,DefaultRepID()),20221231,5,0);
|
||||
```
|
||||
|
||||
### `highGrowthOfNReport(exp, report_id, n, report_type, range)`
|
||||
## `highGrowthOfNReport(exp, report_id, n, report_type, range)`
|
||||
|
||||
N期高速增长拐点:最近N期中,第N期数据上升且大于前N-1期极差的range倍 max=max(前N-1期数据) min=min(前N-1期数据) 第N期>上期+range\*(max-min)
|
||||
|
||||
@@ -204,7 +204,7 @@ N期高速增长拐点:最近N期中,第N期数据上升且大于前N-1期
|
||||
|
||||
返回:bool
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SZ002340");
|
||||
@@ -217,7 +217,7 @@ t:=HighGrowthOfNReport(Exp,ReportID,N,ReportType,Range);
|
||||
return t; //1
|
||||
```
|
||||
|
||||
### `lowestOfNReport(exp, report_id, n, report_type)`
|
||||
## `lowestOfNReport(exp, report_id, n, report_type)`
|
||||
|
||||
表达式N期最低
|
||||
|
||||
@@ -230,14 +230,14 @@ return t; //1
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(),"SH600585");
|
||||
return lowestOfNReport(@ReportOfAll(46080,DefaultRepID()),20221231,5,0);
|
||||
```
|
||||
|
||||
### `occuredOfNReport(exp, report_id, n)`
|
||||
## `occuredOfNReport(exp, report_id, n)`
|
||||
|
||||
当前时间ReportID向前推N年,返回从ReportID-N到ReportID时间发生报告Exp的次数,与系统参数(股票)相关。
|
||||
|
||||
@@ -249,7 +249,7 @@ return lowestOfNReport(@ReportOfAll(46080,DefaultRepID()),20221231,5,0);
|
||||
|
||||
返回:int
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
返回平安银行截止到2015年12月31日的所有年报数量
|
||||
@@ -257,7 +257,7 @@ SetSysParam(pn_stock(),'SZ000001');
|
||||
returnOccuredOfNReport(@reportofall(46002,GetSysParam('DefaultRepID')),20151231,100);
|
||||
```
|
||||
|
||||
### `occuredRepIdOfNReport(exp, report_id, n)`
|
||||
## `occuredRepIdOfNReport(exp, report_id, n)`
|
||||
|
||||
当前时间ReportID向前推N年,若从ReportID-N到ReportID时间存在报告Exp则返回报告期,与系统参数(股票)相关。
|
||||
|
||||
@@ -269,7 +269,7 @@ returnOccuredOfNReport(@reportofall(46002,GetSysParam('DefaultRepID')),20151231,
|
||||
|
||||
返回:any
|
||||
|
||||
### `refReportValue(exp, report_id, n)`
|
||||
## `refReportValue(exp, report_id, n)`
|
||||
|
||||
当前时间ReportID向前推N年,返回ReportID-N时间点表达式 Exp指标值,与系统参数(股票)相关。
|
||||
|
||||
@@ -281,7 +281,7 @@ returnOccuredOfNReport(@reportofall(46002,GetSysParam('DefaultRepID')),20151231,
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
返回平安银行2015年年报营业收入额
|
||||
@@ -289,7 +289,7 @@ SetSysParam(pn_stock(),'SZ000001');
|
||||
return RefReportValue(@reportofall(46002,GetSysParam('DefaultRepID')),20161231,1);
|
||||
```
|
||||
|
||||
### `robustAccOfNReport(exp, report_id, n, report_type, last_report_type)`
|
||||
## `robustAccOfNReport(exp, report_id, n, report_type, last_report_type)`
|
||||
|
||||
N期稳健加速度
|
||||
|
||||
@@ -303,14 +303,14 @@ N期稳健加速度
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SH600519");
|
||||
return RobustACCOfNReport(@Last12MData(DefaultRepID(),9900604),20201231,8,0); // -0.0878801178157446
|
||||
```
|
||||
|
||||
### `robustAccOfNReport2(exp, report_id, n)`
|
||||
## `robustAccOfNReport2(exp, report_id, n)`
|
||||
|
||||
N季稳健加速度,与RobustACCOfNReport的区别在于仅支持季度数据计算,与系统证券相关
|
||||
|
||||
@@ -322,7 +322,7 @@ N季稳健加速度,与RobustACCOfNReport的区别在于仅支持季度数据
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SH600000");
|
||||
@@ -332,7 +332,7 @@ N:=8;
|
||||
return RobustACCOfNReport2(Exp,ReportID,N); //-0.2568
|
||||
```
|
||||
|
||||
### `robustGrowthOfNReport2(exp, report_id, n)`
|
||||
## `robustGrowthOfNReport2(exp, report_id, n)`
|
||||
|
||||
N季稳健增速,与RobustGrowthOfNReport的区别在于仅支持季度数据计算,与系统证券相关
|
||||
|
||||
@@ -344,7 +344,7 @@ N季稳健增速,与RobustGrowthOfNReport的区别在于仅支持季度数据
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SH600000");
|
||||
@@ -354,7 +354,7 @@ N:=8;
|
||||
return RobustGrowthOfNReport2(Exp,ReportID,N); //-0.3269
|
||||
```
|
||||
|
||||
### `secondOrderGrowthOfNReport(exp, report_id, n, report_type)`
|
||||
## `secondOrderGrowthOfNReport(exp, report_id, n, report_type)`
|
||||
|
||||
N期二阶增长拐点:最近N期中,前N-1期逐渐下降,第N期数据上升 l 参数: Exp:表达式类型,计算相关财务指标,一般与报告期相关,如TTM归属母公司净利润:@Last12MData(DefaultRepID(),46078) ReportID:报告期 N:整数,最近N期 ReportType:报告期类型 取值 含义 备注 0 年度标准(默认) 假设ReportID:=20200930,N=2,对应最近N个报告期为20190930、20200930 1 季度标准 假设ReportID:=20200930,N=2,对应最近N个报告期为20200630、20200930
|
||||
|
||||
@@ -367,7 +367,7 @@ N期二阶增长拐点:最近N期中,前N-1期逐渐下降,第N期数据
|
||||
|
||||
返回:bool
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SZ000636");
|
||||
@@ -379,7 +379,7 @@ t:=SecondOrderGrowthOfNReport(Exp,ReportID,N,ReportType);
|
||||
return t; //1
|
||||
```
|
||||
|
||||
### `standGrowthOfNReport(exp, report_id, n, report_type)`
|
||||
## `standGrowthOfNReport(exp, report_id, n, report_type)`
|
||||
|
||||
N期标准化增长率
|
||||
|
||||
@@ -392,7 +392,7 @@ N期标准化增长率
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SH600519");
|
||||
@@ -404,7 +404,7 @@ t:=StandGrowthOfNReport(Exp,ReportID,N,ReportType);
|
||||
return t; //1.265
|
||||
```
|
||||
|
||||
### `stdOfNReport2(exp, report_id, n)`
|
||||
## `stdOfNReport2(exp, report_id, n)`
|
||||
|
||||
N个季度报告期数据的标准差,与系统证券相关
|
||||
|
||||
@@ -416,7 +416,7 @@ N个季度报告期数据的标准差,与系统证券相关
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SH600000");
|
||||
@@ -426,7 +426,7 @@ N:=8;
|
||||
return StdOfNReport2(Exp,ReportID,N); //56286669451.8528
|
||||
```
|
||||
|
||||
### `sumOfNReport(exp, report_id, n)`
|
||||
## `sumOfNReport(exp, report_id, n)`
|
||||
|
||||
当前时间ReportID向前推N年,返回从ReportID-N到ReportID时间报告期Exp指标和,与系统参数(股票)相关。
|
||||
|
||||
@@ -438,7 +438,7 @@ return StdOfNReport2(Exp,ReportID,N); //56286669451.8528
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
计算平安银行2015年报与2014年报营业收入的和
|
||||
@@ -446,7 +446,7 @@ SetSysParam(pn_stock(),'SZ000001');
|
||||
return SumOfNReport(@reportofall(46002,GetSysParam('DefaultRepID')),20151231,2);
|
||||
```
|
||||
|
||||
### `sumOfNReport2(exp, report_id, n)`
|
||||
## `sumOfNReport2(exp, report_id, n)`
|
||||
|
||||
N个季度报告期数据之和,与系统证券相关
|
||||
|
||||
@@ -458,7 +458,7 @@ N个季度报告期数据之和,与系统证券相关
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SH600000");
|
||||
@@ -468,7 +468,7 @@ N:=8;
|
||||
return SumOfNReport2(Exp,ReportID,N); //983299000000
|
||||
```
|
||||
|
||||
### `turnPositiveOfNReport(exp, report_id, n, report_type)`
|
||||
## `turnPositiveOfNReport(exp, report_id, n, report_type)`
|
||||
|
||||
N期转正拐点:最近N期中,前N-1期数据小于0,第N期数据大于0
|
||||
|
||||
@@ -481,7 +481,7 @@ N期转正拐点:最近N期中,前N-1期数据小于0,第N期数据大于0
|
||||
|
||||
返回:bool
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SH600110");
|
||||
@@ -493,20 +493,20 @@ t:=TurnPositiveOfNReport(Exp,ReportID,N,ReportType);
|
||||
return t; //1
|
||||
```
|
||||
|
||||
### `robustGrowthOfNReport(exp, report_id, n, report_type)`
|
||||
## `robustGrowthOfNReport(exp, report_id, n, report_type)`
|
||||
|
||||
过去N期稳健增速,与系统证券相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `exp` | TExpression | 表达式类型,计算相关财务指标,一般与报告期相关,通常以增长率来表示增速. |
|
||||
| `report_id` | RDate | 报告期 |
|
||||
| `n` | Int | 整数,最近N期 |
|
||||
| `report_type` | Int | 报告期类型 |
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------------- | ----------- | ----------------------------------------------------------------------- |
|
||||
| `exp` | TExpression | 表达式类型,计算相关财务指标,一般与报告期相关,通常以增长率来表示增速. |
|
||||
| `report_id` | RDate | 报告期 |
|
||||
| `n` | Int | 整数,最近N期 |
|
||||
| `report_type` | Int | 报告期类型 |
|
||||
|
||||
返回:Real
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setSysParam(pn_stock(),"SH600519");
|
||||
|
||||
Reference in New Issue
Block a user