📝 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 @@
# 数据仓库 / 交易日历
### `continuedMatchOfNDay(exp, n)`
## `continuedMatchOfNDay(exp, n)`
判断Exp在过去N个交易日是否取得指标值,若取得返回1,否则返回0,与系统参数(股票,日期)相关。
@@ -11,7 +11,7 @@
返回:bool
#### 示例
### 示例
```tsl
SetSysParam(pn_stock(),'SH000001');
@@ -19,7 +19,7 @@ SetSysParam(pn_date(),20180801t);
return ContinuedMatchOfNDay(@close(),3);
```
### `correlOfNDay(exp1, exp2, n, cache_str)`
## `correlOfNDay(exp1, exp2, n, cache_str)`
过去N日相关系数,其中N日表示市场交易日。注:剔除非交易日,例如求过去20天开盘价与成交量的相关系数,但是期间有10天停牌,则取非停牌日10天的相关系数。
@@ -32,7 +32,7 @@ return ContinuedMatchOfNDay(@close(),3);
返回:float
#### 示例
### 示例
```tsl
SetSysParam(pn_stock(),"SH600585");
@@ -40,7 +40,7 @@ SetSysParam(pn_date(),20231010T);
return CorrelOfNDay(@stockpjcj3(),@RefValue(@close(),5),10,"");
```
### `covarOfNDay(exp1, exp2, n, cache_str)`
## `covarOfNDay(exp1, exp2, n, cache_str)`
过去N日协方差。N日表示市场交易日。注:剔除非交易日,例如求过去20天开盘价与成交量的协方差,但是期间有10天停牌,则取非停牌日10天的协方差。
@@ -53,7 +53,7 @@ return CorrelOfNDay(@stockpjcj3(),@RefValue(@close(),5),10,"");
返回:float
#### 示例
### 示例
```tsl
SetSysParam(pn_stock(),"SH600585");
@@ -61,7 +61,7 @@ SetSysParam(pn_date(),20231030T);
return CovarOfNDay(@close(),@open(),30,"");
```
### `productOfNDay(exp, n, cache_str)`
## `productOfNDay(exp, n, cache_str)`
过去N日乘积。N日表示市场交易日。注:剔除非交易日(停牌或未上市)数据指标。
@@ -73,7 +73,7 @@ return CovarOfNDay(@close(),@open(),30,"");
返回:float
#### 示例
### 示例
```tsl
SetSysParam(pn_stock(),"SH600585");
@@ -81,7 +81,7 @@ SetSysParam(pn_date(),20231030T);
return ProductOfNDay(@close(),3,"");
```
### `smaofNDay(exp, n, m, cache_str)`
## `smaofNDay(exp, n, m, cache_str)`
过去N日平滑移动平均。N日表示市场交易日。注:剔除非交易日(停牌或未上市)数据指标。
@@ -94,7 +94,7 @@ return ProductOfNDay(@close(),3,"");
返回:float
#### 示例
### 示例
```tsl
SetSysParam(pn_stock(),"SH600585");