feat(tsl-api-reference): expand and reorganize api catalog

Flatten builtin pages, add third-party and platform scopes, and import financial and data warehouse references.

Keep the existing generated index without rebuilding after signature normalization.
This commit is contained in:
csh
2026-08-10 18:26:24 +08:00
parent 2938300acb
commit 9010829c6d
1186 changed files with 243901 additions and 219769 deletions
@@ -0,0 +1,179 @@
# 金融 / 基金 / 基本信息
## `fundMasterCode()`
声明:function
基金主代码,与系统参数(证券代码代码)相关。有主代码则取主代码,否则返回基金代码
返回:string
### 示例
范例01:调用函数
```tsl
SetSysParam(pn_stock(), "OF012414");
return FundMasterCode();
```
## `fundName()`
声明:function
返回指定基金指定日名称,与系统参数(代码、时间)相关
返回:string
### 示例
范例01:调用函数
```tsl
// OF162206在20210302的基金名称
setSysParam(pn_stock(), "OF162206");
setSysParam(pn_date(), 20210302T);
return fundName();
// 输出:泰达宏利货币市场基金
```
## `fundNetValueMethod()`
声明:function
返回指定指定基金净值增长率计算方法,与系统参数(代码、时间)相关
返回:string
### 示例
范例01:调用函数
```tsl
SetSysParam(pn_stock(), "OF000001");
SetSysParam(pn_date(), 20210302T);
return FundNetValueMethod();
```
## `fundOperationFunds(end_t)`
声明:function
指定日所有运作中的基金列表
| 参数 | 类型 | 说明 |
| ------- | ----------- | -------------- |
| `end_t` | t_date_time | 日期。截止日期 |
返回:array
### 示例
范例01:调用函数
```tsl
// 20200924日所有运作中的基金列表
return fundOperationFunds(20200924T);
```
## `fundOperationFundsByTZFG(bk_name, end_t, industry_type, level)`
声明:function
指定日指定投资风格板块运作中的基金
| 参数 | 类型 | 说明 |
| --------------- | ----------- | ------------------------------- |
| `bk_name` | string | 字符串。板块名称 |
| `end_t` | t_date_time | 日期。截止日期 |
| `industry_type` | integer | 用户自定义。分类类型,取值如下: |
| `level` | integer | 整数。分类级别 |
返回:array
### 示例
范例01:调用函数
```tsl
// 20200924日"普通股票型"运作中的基金
return fundOperationFundsByTzfg("普通股票型", 20200924T, 0, 2);
```
## `fundPrimaryMarketCode()`
声明:function
基金一级市场代码,与系统参数(证券代码代码)相关。有一级市场代则取一级市场代,否则返回基金代码
返回:string
### 示例
范例01:调用函数
```tsl
// 通过基金交易代码(二级市场)得到该基金的一级市场代码
setSysParam(pn_stock(), "SH510050");
return fundPrimaryMarketCode();
// 输出:OF510050
```
## `fundSecondaryMarketCode()`
声明:function
基金二级市场代码,与系统参数(证券代码代码)相关。有二级市场代码则取二级市场代码,否则返回基金代码
返回:string
### 示例
范例01:调用函数
```tsl
// OF510050的基金二级市场代码
setSysParam(pn_stock(), "OF510050");
return fundSecondaryMarketCode();
// 输出:SH510050
```
## `fundStyleName1()`
声明:function
返回指定指定基金一级风格名称,与系统参数(代码、时间)相关
返回:string
### 示例
范例01:调用函数
```tsl
// 华夏成长在20210302的基金一级风格名称
setSysParam(pn_stock(), "OF000001");
setSysParam(pn_date(), 20210302T);
return fundStyleName1();
// 输出:混合型
```
## `fundStyleName2()`
声明:function
返回指定指定基金二级风格名称,与系统参数(代码、时间)相关
返回:string
### 示例
范例01:调用函数
```tsl
// 华夏成长在20210302的基金二级风格名称
setSysParam(pn_stock(), "OF000001");
setSysParam(pn_date(), 20210302T);
return fundStyleName2();
// 输出:偏股混合
```