feat(tsl-api-reference): add class and framework API lookup

This commit is contained in:
csh
2026-08-20 13:49:55 +08:00
parent 7233646398
commit 651c1f68d2
637 changed files with 25498 additions and 36673 deletions
@@ -24,11 +24,8 @@
```tsl
// 提取2023年7月31日沪深300,全部样本股、整体权重加权、TTM的每股收益
setsysparam(pn_stock(), 'SH000300');
setsysparam(pn_date(), 20230731T);
return Index_CallFinancialItemPS (11, 0, 0, 0, 0);
// 输出:1.6313
```
@@ -37,11 +34,8 @@ return Index_CallFinancialItemPS (11, 0, 0, 0, 0);
```tsl
// 提取2023年7月31日沪深300,全部样本股、直接法权重加权、TTM的每股主营收入
setsysparam(pn_stock(), 'SH000300');
setsysparam(pn_date(), 20230731T);
return Index_CallFinancialItemPS (13, 0, 0, 4, 0);
// 输出:27.9402
```
@@ -69,11 +63,8 @@ return Index_CallFinancialItemPS (13, 0, 0, 4, 0);
```tsl
// 提取2023年7月31日沪深300,全部样本股、整体权重加权、TTM的ROE
setsysparam(pn_stock(), 'SH000300');
setsysparam(pn_date(), 20230731T);
return Index_CallROE(11, 0, 0, 0);
// 输出:12.3781
```
@@ -82,11 +73,8 @@ return Index_CallROE(11, 0, 0, 0);
```tsl
// 提取2023年7月31日沪深300,全部样本股、调和平均数权重加权、最新年度的ROE
setsysparam(pn_stock(), 'SH000300');
setsysparam(pn_date(), 20230731T);
return Index_CallROE(12, 0, 0, 1);
// 输出:12.0679
```