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,7 +24,7 @@
```tsl
// 取华安创新2003年10月10日到2012年10月19日之间的估价比率
setSysParam(pn_stock(), 'OF040001');
ReturnFundAppraisalRatio("SH000001", intToDate(20031010), intToDate(20121022), 0);
return FundAppraisalRatio("SH000001", intToDate(20031010), intToDate(20121022), 0);
// 输出:0.03157
```
@@ -225,7 +225,7 @@ Return FundRachev(20160101T, 20180903T, 3, 0, cy_day());
```tsl
// 取华安创新2003年3月14日到2012年10月19日之间的Sharp指数
setSysParam(pn_stock(), 'OF040001');
ReturnFundSharpMeasure(intToDate(20030314), intToDate(20121019), 2, 0);
return FundSharpMeasure(intToDate(20030314), intToDate(20121019), 2, 0);
// 输出:0.04014
```
@@ -312,19 +312,12 @@ return fundTreynorMeasure("SH000001", intToDate(20030314), intToDate(20121019),
```tsl
// 取2012年10月10日到2012年10月19日的自定义指数收益率序列
SetSysParam(pn_cycle(), cy_day());
Return UserDefineIndex(
array(
("代码":"SH600000", "名称":"浦发银行", "比例(%)":55.00),
("代码":"SH600001", "名称":"邯郸钢铁", "比例(%)":35.00),
("代码":"SZ000002", "名称":"万科A", "比例(%)":10.00)),
inttodate(20121010), inttodate(20121019), 2, False);
```