feat(skills): add tsl api reference skill

Bundle the TSL API index and markdown references under the skill, route TSL docs to use it, and update the codegen index generator to maintain the bundled data.
This commit is contained in:
csh
2026-07-07 16:36:15 +08:00
parent 4cd6b9410f
commit e1f7ce052c
267 changed files with 185908 additions and 11996 deletions
@@ -0,0 +1,172 @@
# 股票 / 中证ESG评级及维度得分
### `stockEsgeScore(endt)`
获得指定日环境(E)得分,系统参数:证券代码
| 参数 | 类型 | 说明 |
| ------ | -------- | ------------- |
| `endt` | datetime | 日期,截止日期 |
返回:float
#### 示例
```tsl
StockID:="SH600000";
SetSysParam(pn_stock(),stockID);
return StockESGEScore(20250623T);
```
### `stockEsgeScore3()`
最新环境(E)得分,系统参数:证券代码、日期
返回:float
#### 示例
```tsl
StockID:="SH600000";
endt:=20250623T;
SetSysParam(pn_stock(),stockID);
SetSysParam(PN_Date(),endt);
return StockESGEScore3();
```
### `stockEsggScore(endt)`
获得指定日公司治理(G)得分,相关参数:指定日,系统参数:证券代码
| 参数 | 类型 | 说明 |
| ------ | -------- | ------------- |
| `endt` | datetime | 日期,截止日期 |
返回:float
#### 示例
```tsl
StockID:="SH600000";
SetSysParam(pn_stock(),stockID);
return StockESGGScore(20250623T);
```
### `stockEsggScore3()`
最新社会治理(G)得分,系统参数:证券代码、日期
返回:float
#### 示例
```tsl
StockID:="SH600000";
endt:=20250623T;
SetSysParam(pn_stock(),stockID);
SetSysParam(PN_Date(),endt);
return StockESGGScore3();
```
### `stockEsgRating(endt)`
获得指定日ESG评级,系统参数:证券代码
| 参数 | 类型 | 说明 |
| ------ | -------- | ------------- |
| `endt` | datetime | 日期,截止日期 |
返回:string
#### 示例
```tsl
StockID:="SH600000";
SetSysParam(pn_stock(),stockID);
return StockESGRating(20250527T);
```
### `stockEsgRating3()`
最新ESG评级,系统参数:证券代码,日期
返回:string
#### 示例
```tsl
StockID:="SH600000";
endt:=20250527T;
SetSysParam(pn_stock(),stockID);
SetSysParam(PN_Date(),endt);
return StockESGRating3();
```
### `stockEsgRatingDate(endt)`
获得指定日前最新一期中证ESG评级日期,系统参数:证券代码
| 参数 | 类型 | 说明 |
| ------ | -------- | ------------- |
| `endt` | datetime | 日期,截止日期 |
返回:int
#### 示例
```tsl
StockID:="SH600000";
SetSysParam(pn_stock(),stockID);
endt:=20250710T;
return StockESGRatingDate(endt);
```
### `stockEsgRatingDate3()`
获得最新一期中证ESG评级日期,系统参数:日期,证券代码
返回:int
#### 示例
```tsl
StockID:="SH600000";
endt:=20250710T;
SetSysParam(pn_stock(),stockID);
SetSysParam(PN_Date(),endt);
return StockESGRatingDate3();
```
### `stockEsgsScore(endt)`
获得指定日社会(S)得分,相关参数:指定日,系统参数:证券代码
| 参数 | 类型 | 说明 |
| ------ | -------- | ------------- |
| `endt` | datetime | 日期,截止日期 |
返回:float
#### 示例
```tsl
StockID:="SH600000";
SetSysParam(pn_stock(),stockID);
return StockESGSScore(20250623T);
```
### `stockEsgsScore3()`
最新社会(S)得分,系统参数:证券代码,日期
返回:float
#### 示例
```tsl
StockID:="SH600000";
endt:=20250623T;
SetSysParam(pn_stock(),stockID);
SetSysParam(PN_Date(),endt);
return StockESGSScore3();
```