📝 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,12 +1,12 @@
# 债券 / 债券指数估值
### `bondIvDuration()`
## `bondIvDuration()`
返回当前债券指数指定日的久期,与系统参数(证券,时间)相关。
返回:float
#### 示例
### 示例
```tsl
SetSysParam(pn_stock(),"CSIH01006");
@@ -14,13 +14,13 @@ SetSysParam(PN_Date(),20200924T);
return BondIVDuration();  //结果:6.9821
```
### `bondIvMaturityYield()`
## `bondIvMaturityYield()`
返回当前债券指数指定日的到期收益率,与系统参数(证券,时间)相关。
返回:float
#### 示例
### 示例
```tsl
SetSysParam(pn_stock(),"CSIH01006");
@@ -28,7 +28,7 @@ SetSysParam(PN_Date(),20200924T);
return BondIVMaturityYield();  //结果:3.0545
```
### `bondIvqk(begt, endt)`
## `bondIvqk(begt, endt)`
返回当前债券指数的区间债券估值数据,与系统参数(证券,时间)相关。
@@ -39,7 +39,7 @@ return BondIVMaturityYield();  //结果:3.0545
返回:array
#### 示例
### 示例
```tsl
SetSysParam(pn_stock(),"CSIH01006");
@@ -47,13 +47,13 @@ SetSysParam(PN_Date(),20200924T);
return BondIVQK(20200914T,20200924T);
```
### `bondIvCloseDuration()`
## `bondIvCloseDuration()`
返回当前债券指数指定日的收盘价久期,与系统参数(证券,时间)相关。
返回:REAL
#### 示例
### 示例
```tsl
// "CSIH01006"中证国债在20200924的收盘价久期。
@@ -62,13 +62,13 @@ setSysParam(PN_Date(),20200924T);
return bondIvCloseDuration();//结果:0
```
### `bondIvConvexity()`
## `bondIvConvexity()`
返回当前债券指数指定日的凸性,与系统参数(证券,时间)相关。
返回:REAL
#### 示例
### 示例
```tsl
// "CSIH01006"中证国债在20200924的凸性。
@@ -77,17 +77,17 @@ setSysParam(PN_Date(),20200924T);
return bondIvConvexity();  //结果:54.3261
```
### `bondIvqk2(n)`
## `bondIvqk2(n)`
返回当前债券指数N日债券估值数据,与系统参数(证券,时间)相关。
| 参数 | 类型 | 说明 |
| --- | --- | --- |
| `n` | Integer | 整型,N日 |
| 参数 | 类型 | 说明 |
| ---- | ------- | -------- |
| `n` | Integer | 整型,N日 |
返回:Array
#### 示例
### 示例
```tsl
// "CSIH01006"中证国债在20200924的5日债券估值数据
@@ -97,13 +97,13 @@ return bondIvqk2(5);
结果:
```
### `bondIvRemainDuration()`
## `bondIvRemainDuration()`
返回当前债券指数在指定日的剩余期限,与系统参数(证券,时间)相关。
返回:REAL
#### 示例
### 示例
```tsl
// "CSIH01006"中证国债在20200924的剩余期限。