✨ feat(tsl-api-reference): add class and framework API lookup
This commit is contained in:
+7
-7
@@ -21,7 +21,7 @@
|
||||
```tsl
|
||||
// 取华安创新2012年10月18日的流通份额
|
||||
setSysParam(pn_stock(), 'OF040001');
|
||||
ReturnFundNegotiableShares(intToDate(20121018));
|
||||
return FundNegotiableShares(intToDate(20121018));
|
||||
// 输出:8915597665.48
|
||||
```
|
||||
|
||||
@@ -43,7 +43,7 @@ ReturnFundNegotiableShares(intToDate(20121018));
|
||||
// 取华安创新2012年10月18日的最新流通份额
|
||||
setSysParam(pn_stock(), 'OF040001');
|
||||
setSysParam(pn_date(), intToDate(20121018));
|
||||
ReturnFundNegotiableShares3();
|
||||
return FundNegotiableShares3();
|
||||
// 输出:8915597665.48
|
||||
```
|
||||
|
||||
@@ -69,7 +69,7 @@ ReturnFundNegotiableShares3();
|
||||
rdate := 20221231;
|
||||
fund_id := "OF000001";
|
||||
sp_s(pn_stock(), fund_id);
|
||||
return fundNetAssetValue(rdate); // 3148229855.4
|
||||
return fundNetAssetValue(rdate); // 输出:3148229855.4
|
||||
```
|
||||
|
||||
## `fundNetAssetValueQK(begt, endt)`
|
||||
@@ -92,11 +92,11 @@ return fundNetAssetValue(rdate); // 3148229855.4
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
范例1 begt := 20220101t;
|
||||
// 范例1 begt := 20220101t;
|
||||
endt := 20240101t;
|
||||
sp_s(pn_stock(), "OF000001");
|
||||
return fundNetAssetValueQk(begt, endt);
|
||||
返回:
|
||||
// 输出:
|
||||
```
|
||||
|
||||
## `fundNSGrowRatio(beg_t, end_t)`
|
||||
@@ -295,7 +295,7 @@ return fundTotalShares(intToDate(20121018));
|
||||
// 取华安创新2012年10月18日的最新总份额
|
||||
setSysParam(pn_stock(), 'OF040001');
|
||||
setSysParam(pn_date(), intToDate(20121018));
|
||||
ReturnFundTotalShares3();
|
||||
return FundTotalShares3();
|
||||
// 输出:8915597665.48
|
||||
```
|
||||
|
||||
@@ -347,6 +347,6 @@ return fundTsGrowRatio(intToDate(20050101), intToDate(20120101));
|
||||
```tsl
|
||||
// 取华安创新2004年9月30日到2012年10月18日之间的总份额变动
|
||||
setSysParam(pn_stock(), 'OF040001');
|
||||
ReturnFundTSGrowValue(intToDate(20040930), intToDate(20121018));
|
||||
return FundTSGrowValue(intToDate(20040930), intToDate(20121018));
|
||||
// 输出:6432568919.11
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user