📝 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:
csh
2026-07-07 16:47:03 +08:00
parent bbf6977f57
commit c0bf0358e0
278 changed files with 45212 additions and 35782 deletions
@@ -1,6 +1,6 @@
# 运行时 / 通用
### `call(func_name, p1, pn)`
## `call(func_name, p1, pn)`
根据名称或者函数指针调用指定的函数,后面带的参数将自动送入该函数。
@@ -12,7 +12,7 @@
返回:any
### `checkGlobalCacheExpired(value)`
## `checkGlobalCacheExpired(value)`
判断全局缓存引用是否已经过期。
@@ -22,7 +22,7 @@
返回:bool
### `dbglocalcancel(id, return_value)`
## `dbglocalcancel(id, return_value)`
注销任务。该功能可以用来终止运行的WEB任务。 其任务ID为dbglocalrunning中返回信息中的id字段以十六进制模式转换为64位整数。
@@ -33,7 +33,7 @@
返回:bool
### `divMod(dividend, divisor, remainder)`
## `divMod(dividend, divisor, remainder)`
计算整数除法的整数商和余数。也就是用参数Dividend除以参数Divisor,得到的整数商存到参数Result中,把余数存到参数Remainder中
@@ -45,7 +45,7 @@
返回:float
### `eastrq(b, c, q)`
## `eastrq(b, c, q)`
Eastrq 相关函数。
@@ -57,7 +57,7 @@ Eastrq 相关函数。
返回:int
### `ensureRange(amin, amax)`
## `ensureRange(amin, amax)`
这个函数可以保证返回某个区间之内的数,参数Amin和参数Amax是这个区间的上限和下限。 如果参数Avalue大于等于参数Amin并且小于等于参数Amax,则返回Avalue 如果参数Avalue大于参数Amax,则返回Amax的值 如果参数Avalue小于参数Amin,则返回Amin的值
@@ -68,7 +68,7 @@ Eastrq 相关函数。
返回:float
### `exportJsonStringMbcs(data, n, return_value)`
## `exportJsonStringMbcs(data, n, return_value)`
将TSL结构数据转换为json串。和ExportJSONString不同的是,该函数不会对中文进行转码处理,保留中文原码。
@@ -80,18 +80,18 @@ Eastrq 相关函数。
返回:string
### `frameconcat(arrdic, _type)`
## `frameconcat(arrdic, _type)`
数据表-拼接
| 参数 | 类型 | 说明 |
| -------- | --------- | --------------------------------------------------------------- |
| `arrdic` | array | Array of number,数组的数组,需要拼接的数组集合 |
| `_type` | Usrdefine | Usrdefine,数组拼接方式,默认为0行并=0;列并=1;非完全矩阵列并=2 |
| `_type` | Usrdefine | Usrdefine,数组拼接方式,默认为0行并=0;列并=1;非完全矩阵列并=2 |
返回:array
#### 示例
### 示例
```tsl
a := ones(3,3);
@@ -99,7 +99,7 @@ b := ones(2,3);
frameconcat(array(a,b));
```
### `getEigenValue(a, eigen_value)`
## `getEigenValue(a, eigen_value)`
通过赋值得到EigenValue
@@ -110,7 +110,7 @@ frameconcat(array(a,b));
返回:any
### `hJMethodPgm(call_back)`
## `H_J_Method_Pgm(call_back)`
H_J算法测试
@@ -120,7 +120,7 @@ H_J算法测试
返回:array
### `inRange(amin, amax)`
## `inRange(amin, amax)`
判断Avalue是否在\[Amin, Amax\]范围内
@@ -131,7 +131,7 @@ H_J算法测试
返回:bool
### `interestRate(nperiods, payment, present_value, future_value, payment_time)`
## `interestRate(nperiods, payment, present_value, future_value, payment_time)`
返回要求收益率,使得这项投资从现值PresentValue实现终值FutureValue,在共NPeriods个周期后实现。如果周期定义为一年,那么结果就是要求的年收益率。
@@ -145,7 +145,7 @@ H_J算法测试
返回:float
### `invoke(obj, member_name, member_value, p1, pn)`
## `invoke(obj, member_name, member_value, p1, pn)`
调用类的成员方法或对类的成员变量进行赋值操作。支持对重载方法的调用。
@@ -161,19 +161,19 @@ H_J算法测试
## 未细分函数
### `logined()`
## `logined()`
判定是否已经登录成功。只读属性。
返回:any
### `milliSecondSpan()`
## `milliSecondSpan()`
范围生成函数相关函数。
返回:float
### `mswap(value, dim1, dim2)`
## `mswap(value, dim1, dim2)`
交换多维 FMArray 的两个维度。
@@ -187,7 +187,7 @@ H_J算法测试
## 数学函数 / 矩阵运算及分解
### `nils(length)`
## `nils(length)`
生成元素为 `nil` 的一维结果。
@@ -197,13 +197,13 @@ H_J算法测试
返回:array
### `noTechCacheDo()`
## `noTechCacheDo()`
和TechCacheDo相反的是,在NoTechCacheDo语句段中调用的所有相关计算,将均取消缓存。
返回:any
### `ones(length)`
## `ones(length)`
生成元素为 `1` 的一维结果。
@@ -213,7 +213,7 @@ H_J算法测试
返回:array
### `outPutGrowRatio(v1, v2)`
## `outPutGrowRatio(v1, v2)`
增长率(%)
@@ -224,7 +224,7 @@ H_J算法测试
返回:float
#### 示例
### 示例
```tsl
//返回13到14的增长率(%)
@@ -232,7 +232,7 @@ outPutGrowRatio(14,13);
//结果:7.69
```
### `outPutGrowRatio2(v1, v2)`
## `outPutGrowRatio2(v1, v2)`
增长率(%)
@@ -243,7 +243,7 @@ outPutGrowRatio(14,13);
返回:float
#### 示例
### 示例
```tsl
//返回13到14的增长率(%)
@@ -251,7 +251,7 @@ outPutGrowRatio2(14,13);
//结果:7.69
```
### `outPutGrowValue2(v1, v2)`
## `outPutGrowValue2(v1, v2)`
增长
@@ -262,7 +262,7 @@ outPutGrowRatio2(14,13);
返回:float
#### 示例
### 示例
```tsl
//返回13与14差值
@@ -270,7 +270,7 @@ outPutGrowValue2(13,14);
//结果:-1
```
### `raiseError(func_name, err_str)`
## `raiseError(func_name, err_str)`
显示调试出错信息
@@ -281,7 +281,7 @@ outPutGrowValue2(13,14);
返回:Error
### `reIndexCopy(data, index_info1, index_info1_2, index_info_n)`
## `reIndexCopy(data, index_info1, index_info1_2, index_info_n)`
ReIndexCopy和Reindex的差异:ReIndex修改原有的结果集,而ReIndexCopy不修改原结果集返回一个新结果集。
@@ -296,7 +296,7 @@ ReIndexCopy和Reindex的差异:ReIndex修改原有的结果集,而ReIndexCop
## 未细分函数
#### 示例
### 示例
```tsl
实现:将指定列下标转为数组的行下标--可用于快速建立哈希表
@@ -306,7 +306,7 @@ t:=nday(10,'time',datetostr(sp_time()),'close',close());
return reindexcopy(t,t[:,"time"]);
```
### `reportSeriesSplit(table_name)`
## `reportSeriesSplit(table_name)`
报告期数据处理。注意,该函数主要用于客户端结果处理,不提供给用户程序编辑。
@@ -316,7 +316,7 @@ return reindexcopy(t,t[:,"time"]);
返回:any
### `rotatedComponentMatrix(cm, eigen_value, eigen_vector)`
## `rotatedComponentMatrix(cm, eigen_value, eigen_vector)`
该函数已废弃
@@ -328,7 +328,7 @@ return reindexcopy(t,t[:,"time"]);
返回:array
#### 示例
### 示例
```tsl
//设置样本矩阵
@@ -346,7 +346,7 @@ rotatedComponentMatrix(cm);
//结果:
```
### `sendRunningData(data, nwdow)`
## `sendRunningData(data, nwdow)`
直接函数相关函数。
@@ -359,7 +359,7 @@ rotatedComponentMatrix(cm);
## 错误处理
### `setUid(uid)`
## `setUid(uid)`
设置当前的用户为指定的用户,需要有特殊权限,如果成功则返回真。
@@ -369,13 +369,13 @@ rotatedComponentMatrix(cm);
返回:bool
### `techCacheDo()`
## `techCacheDo()`
TechCacheDo打开技术类缓存 相关函数。
返回:any
### `user(name)`
## `user(name)`
执行指定用户的函数,只有当你已经得到该用户的授权才可以 例如:如果已经被用户user1授权,且user1拥有函数sample,那么我们可以用user('user1').sample来执行user1的sample函数。