feat(tsl-api-reference): expand API and module coverage

This commit is contained in:
csh
2026-08-14 17:12:55 +08:00
parent 8f1056130d
commit 3d3036ebe1
571 changed files with 47842 additions and 14458 deletions
@@ -137,6 +137,30 @@ setsysparam(pn_stock(), "OF162714");
Return FundSCIncludeStockId(20180630, 10, "SH600718");
```
## `fundSCInfo(r_date, top_n)`
声明:function
返回基金指定报告期市值排名前 N 的持股明细,包括证券代码、名称、数量、市值、净值占比、市值排名以及指数投资和积极投资拆分数据
<!-- tags: 金融 基金 投资组合 持股情况 前N 持股明细 市值排名 查询 -->
| 参数 | 类型 | 说明 |
| -------- | ------- | -------------- |
| `r_date` | integer | 指定报告期 |
| `top_n` | integer | 返回的持股数量 |
返回:array
### 示例
范例01:查询指定基金报告期前三名持股明细
```tsl
setSysParam(pn_stock(), "OF040001");
return fundSCInfo(20100331, 3);
```
## `fundSCMarketValue(report_date, to_no)`
声明:function
@@ -1290,10 +1314,10 @@ return fundscstockindexpercent5(20191231, "SZ000002");
范例01:调用函数
```tsl
// "OF510300"在20191231与20181231期间第2名股票指数投资市值占净值比变动(%)
// OF510300 在区间内对浦发银行指数投资市值占净值比变动
setSysParam(pn_stock(), "OF510300");
return fundscstockindexpercentgrow(20191231, 20181231, 2);
// 输出:0.12
return fundscstockindexpercentgrow(20191231, 20181231, "SH600000");
// 输出:-0.19
```
## `fundscstockindexpercentgrow2(rdate, rdate_2, stockid)`
@@ -1344,10 +1368,10 @@ return fundscstockindexpercentgrow2(20191231, 20181231, "SZ000002");
范例01:调用函数
```tsl
// "OF510300"在20191231与20181231期间万科A指数投资市值占股票市值比变动(%)
// OF510300 在区间内对浦发银行指数投资市值占股票市值比变动
setSysParam(pn_stock(), "OF510300");
return fundscstockindexpercentgrow3(20191231, 20181231, 2);
// 输出:0.128935091068871
return fundscstockindexpercentgrow3(20191231, 20181231, "SH600000");
// 输出:-0.178759
```
## `fundscstockindexpercentgrow4(rdate, rdate_2, stockid)`
@@ -2264,11 +2288,11 @@ return fundscsumnindexvalue(20191231, 2);
<!-- tags: 金融 基金 投资组合 持股情况 返回 获取 -->
| 参数 | 类型 | 说明 |
| ---------- | ---- | ---------------- |
| `rdate` | int | 整数。指定报告期 |
| `rdate_2` | int | 整数。同比报告期 |
| `top_n` | int | 整数。前N |
| 参数 | 类型 | 说明 |
| --------- | ---- | ---------------- |
| `rdate` | int | 整数。指定报告期 |
| `rdate_2` | int | 整数。同比报告期 |
| `top_n` | int | 整数。前N |
返回:float