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
@@ -1,5 +1,29 @@
# 金融 / 基金 / 基金净值
## `fund7DaysAnnualRate(fund_id, end_t)`
声明:function
返回指定基金在指定日由最近七日总收益率折算得到的年化收益率,非货币型基金返回 0
<!-- tags: 金融 基金 基金净值 七日年化收益率 货币基金 收益率 查询 -->
| 参数 | 类型 | 说明 |
| --------- | -------- | -------- |
| `fund_id` | string | 基金代码 |
| `end_t` | datetime | 截止日期 |
返回:real
### 示例
范例01:查询指定货币基金的七日年化收益率
```tsl
return fund7DaysAnnualRate("OF162206", 20210302T);
// 输出:2.369
```
## `fundAdjustNAw(end_t, type)`
声明:function
@@ -120,6 +144,31 @@ ReturnFundMaxMinNAW2(intToDate(20121018), 0, 0);
// 输出:4.452
```
## `fundNAw(type)`
声明:function
按净值类型返回系统证券和系统日期对应的基金净值信息
<!-- tags: 金融 基金 基金净值 净值类型 系统证券 系统日期 查询 -->
| 参数 | 类型 | 说明 |
| ------ | ------- | -------- |
| `type` | integer | 净值类型 |
返回:real
### 示例
范例01:查询基金净值的截止日期
```tsl
setSysParam(pn_stock(), "OF040001");
setSysParam(pn_date(), 20240506T);
return fundNAw(5);
// 输出:20240506
```
## `fundNAwByRateBegtEndt(begt, endt)`
声明:function