✨ feat(tsl-api-reference): add class and framework API lookup
This commit is contained in:
-18
@@ -21,11 +21,8 @@
|
||||
|
||||
```tsl
|
||||
// "SH000300"在2023-05-22 全部样本股总股本加权指定日市净率(最新年报)
|
||||
|
||||
SetSysParam(pn_stock(), "SH000300");
|
||||
|
||||
SetSysParam(PN_Date(), 20230522T);
|
||||
|
||||
return Index_PB2(0, 0);
|
||||
// 输出:1.30
|
||||
```
|
||||
@@ -51,9 +48,7 @@ return Index_PB2(0, 0);
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(), 'SH000300');
|
||||
|
||||
setsysparam(pn_date(), 20180727T);
|
||||
|
||||
return Index_PCF(0, 0);
|
||||
// 输出:11.34
|
||||
```
|
||||
@@ -79,11 +74,8 @@ return Index_PCF(0, 0);
|
||||
|
||||
```tsl
|
||||
// "SH000300"在2023-05-22 全部样本股总股本加权指定日市现率(最新年报)
|
||||
|
||||
SetSysParam(pn_stock(), "SH000300");
|
||||
|
||||
SetSysParam(PN_Date(), 20230522T);
|
||||
|
||||
return Index_PCF2(0, 0);
|
||||
// 输出:4.52
|
||||
```
|
||||
@@ -109,11 +101,8 @@ return Index_PCF2(0, 0);
|
||||
|
||||
```tsl
|
||||
// "SH000300"在2023-05-22 全部样本股总股本加权指定日市盈率(最新年报)
|
||||
|
||||
SetSysParam(pn_stock(), "SH000300");
|
||||
|
||||
SetSysParam(PN_Date(), 20230522T);
|
||||
|
||||
return Index_PE2(0, 0);
|
||||
// 输出:12.37
|
||||
```
|
||||
@@ -139,9 +128,7 @@ return Index_PE2(0, 0);
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(), 'SH000300');
|
||||
|
||||
setsysparam(pn_date(), 20180727T);
|
||||
|
||||
return Index_PSR(0, 0);
|
||||
// 输出:1.27
|
||||
```
|
||||
@@ -167,11 +154,8 @@ return Index_PSR(0, 0);
|
||||
|
||||
```tsl
|
||||
// "SH000300"在2023-05-22 全部样本股总股本加权指定日市销率(最新年报)
|
||||
|
||||
SetSysParam(pn_stock(), "SH000300");
|
||||
|
||||
SetSysParam(PN_Date(), 20230522T);
|
||||
|
||||
return Index_PSR2(0, 0);
|
||||
// 输出:1.23
|
||||
```
|
||||
@@ -235,9 +219,7 @@ return spec(Index_Val_LastUpday(), 'SH000300');
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(), "SH000300");
|
||||
|
||||
SetSysParam(PN_Date(), 20230522T);
|
||||
|
||||
return Index_Value(0, 0, 1);
|
||||
// 输出:12.19
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user