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,929 @@
# 金融 / 基金 / 投资组合 / 债券配置
## `fundbcarmdebtpercent1(rdate)`
声明:function
剩余存续期超过397天的浮动利率债券占净值比(%),与系统参数(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ----- | ---------- |
| `rdate` | rdate | 指定报告期 |
返回:real
## `fundbcbankbillpercent1(rdate)`
声明:function
央行票据占净值比(%),与系统参数(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ----- | ---------- |
| `rdate` | rdate | 指定报告期 |
返回:real
## `fundbcbondpercent2(rdate, name)`
声明:function
指定债券类型市值占总值比(%),与系统参数(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ------ | ---------- |
| `rdate` | rdate | 指定报告期 |
| `name` | string | 债券类型 |
返回:real
## `fundbcbondpercent3(rdate, name)`
声明:function
指定债券类型市值占债券市值比(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `name` | string | 字符串,债券类型 |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231指定债券类型市值占债券市值比(%)
setSysParam(pn_stock(), "OF000001");
return fundbcbondpercent3(20191231, "国债");
// 输出:1.11
```
## `fundbcbondpercent4(rdate, name)`
声明:function
指定债券类型市值占固定收益投资市值比(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `name` | string | 字符串,债券类型 |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231指定债券类型市值占固定收益投资市值比(%)
setSysParam(pn_stock(), "OF000001");
return fundbcbondpercent4(20191231, "国债");
// 输出:1.10841752508523
```
## `fundbcbondpercentgrow(rdate, rdate_2, name)`
声明:function
指定债券类型市值占净值比变动(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| --------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `rdate_2` | integer | 整型,同比报告期 |
| `name` | string | 字符串,债券类型 |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231与20181231期间指定债券类型市值占净值比变动(%)
setSysParam(pn_stock(), "OF000001");
return fundbcbondpercentgrow(20191231, 20181231, "国债");
// 输出:-1.26
```
## `fundbcbondpercentgrow2(rdate, rdate_2, name)`
声明:function
指定债券类型市值占总值比变动(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| --------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `rdate_2` | integer | 整型,同比报告期 |
| `name` | string | 字符串,债券类型 |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231与20181231期间指定债券类型市值占总值比变动(%)
setSysParam(pn_stock(), "OF000001");
return fundbcbondpercentgrow2(20191231, 20181231, "国债");
// 输出:-1.23
```
## `fundbcbondpercentgrow3(rdate, rdate_2, name)`
声明:function
指定债券类型市值占债券市值比变动(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| --------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `rdate_2` | integer | 整型,同比报告期 |
| `name` | string | 字符串,债券类型 |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231与20181231期间指定债券类型市值占债券市值比变动(%)
setSysParam(pn_stock(), "OF000001");
return fundbcbondpercentgrow3(20191231, 20181231, "国债");
// 输出:-3.55152582173095
```
## `fundbcbondpercentgrow4(rdate, rdate_2, name)`
声明:function
指定债券类型市值占固定收益投资市值比变动(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| --------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `rdate_2` | integer | 整型,同比报告期 |
| `name` | string | 字符串,债券类型 |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231与20181231期间指定债券类型市值占固定收益投资市值比变动
setSysParam(pn_stock(), "OF000001");
return fundbcbondpercentgrow4(20191231, 20181231, "国债");
// 输出:-3.55152582173095
```
## `fundbcbondvaluegrow(rdate, rdate_2, name)`
声明:function
指定债券类型市值变动,单位:元。与系统参数(基金)相关。单位:元。与系统参数(基金)相关
| 参数 | 类型 | 说明 |
| --------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `rdate_2` | integer | 整型,同比报告期 |
| `name` | string | 字符串,债券类型 |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231与20181231期间指定债券类型市值变动
setSysParam(pn_stock(), "OF000001");
return fundbcbondvaluegrow(20191231, 20181231, "国债");
// 输出:-49762000
```
## `fundbcbondvaluegrowratio(rdate, rdate_2, name)`
声明:function
指定债券类型市值变比(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| --------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `rdate_2` | integer | 整型,同比报告期 |
| `name` | string | 字符串,债券类型 |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231与20181231期间指定债券类型市值变比(%)
setSysParam(pn_stock(), "OF000001");
return fundbcbondvaluegrowratio(20191231, 20181231, "国债");
// 输出:-82.8855539084231
```
## `fundbcconveniblebondpercent2(rdate)`
声明:function
可转换债占债券市值比(%),与系统参数(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ----- | ---------- |
| `rdate` | rdate | 指定报告期 |
返回:real
## `fundbccorporatebondpercent1(rdate)`
声明:function
公司债占净值比(%),与系统参数(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ----- | ---------- |
| `rdate` | rdate | 指定报告期 |
返回:real
## `fundbcenterprisebondpercent1(rdate)`
声明:function
企业债占净值比(%),与系统参数(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ----- | ---------- |
| `rdate` | rdate | 指定报告期 |
返回:real
## `fundbcenterprisebondpercent2(rdate)`
声明:function
企业债占债券市值比(%),与系统参数(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ----- | ---------- |
| `rdate` | rdate | 指定报告期 |
返回:real
## `fundbcenterprisebondvalue(rdate)`
声明:function
企业债市值,与系统参数(基金)相关。单位:元
| 参数 | 类型 | 说明 |
| ------- | ----- | ---------- |
| `rdate` | rdate | 指定报告期 |
返回:real
## `fundbcfbondpercent2(rdate)`
声明:function
金融债占债券市值比(%),与系统参数(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ----- | ---------- |
| `rdate` | rdate | 指定报告期 |
返回:real
## `fundbcgovbondpercent1(rdate)`
声明:function
国债占净值比(%),与系统参数(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ----- | ---------- |
| `rdate` | rdate | 指定报告期 |
返回:real
## `fundbcgovbondvalue(rdate)`
声明:function
国债市值,与系统参数(基金)相关。单位:元
| 参数 | 类型 | 说明 |
| ------- | ----- | ---------- |
| `rdate` | rdate | 指定报告期 |
返回:real
## `fundbclocaldebtpercent1(rdate)`
声明:function
地方政府债占净值比(%),与系统参数(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ----- | ---------- |
| `rdate` | rdate | 指定报告期 |
返回:real
## `fundbcmtnpercent2(rdate)`
声明:function
中期票据占债券市值比(%),与系统参数(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ----- | ---------- |
| `rdate` | rdate | 指定报告期 |
返回:real
## `fundbcncdpercent2(rdate)`
声明:function
同业存单占债券市值比(%),与系统参数(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ----- | ---------- |
| `rdate` | rdate | 指定报告期 |
返回:real
## `fundbcnonname(rdate, topn)`
声明:function
第N名债券类型名称,与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `topn` | integer | 整型,第N |
返回:string
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231第2名债券类型名称
setSysParam(pn_stock(), "OF000001");
return fundbcnonname(20191231, 2);
// 输出:中期票据
```
## `fundbcnonpercent(rdate, topn)`
声明:function
第N名债券类型市值占净值比(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `topn` | integer | 整型,第N |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231第2名债券类型市值占净值比(%)
setSysParam(pn_stock(), "OF000001");
return fundbcnonpercent(20191231, 2);
// 输出:2.2
```
## `fundbcnonpercent2(rdate, topn)`
声明:function
第N名债券类型市值占总值比(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `topn` | integer | 整型,第N |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231第2名债券类型市值占总值比(%)
setSysParam(pn_stock(), "OF000001");
return fundbcnonpercent2(20191231, 2);
// 输出:2.17362923158186
```
## `fundbcnonpercent3(rdate, topn)`
声明:function
第N名债券类型市值占债券市值比(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `topn` | integer | 整型,第N |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231第2名债券类型市值占债券市值比(%)
setSysParam(pn_stock(), "OF000001");
return fundbcnonpercent3(20191231, 2);
// 输出:10.8997086846338
```
## `fundbcnonpercent4(rdate, topn)`
声明:function
第N名债券类型市值占固定收益投资市值比(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `topn` | integer | 整型,第N |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231第2名债券类型市值占固定收益投资市值比(%)
setSysParam(pn_stock(), "OF000001");
return fundbcnonpercent4(20191231, 2);
// 输出:10.8997086846338
```
## `fundbcnonpercentgrow(rdate, rdate_2, topn)`
声明:function
第N名债券类型市值占净值比变动(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| --------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `rdate_2` | integer | 整型,同比报告期 |
| `topn` | integer | 整型,第N |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231与20181231期间第2名债券类型市值占净值比变动(%)
setSysParam(pn_stock(), "OF000001");
return fundbcnonpercentgrow(20191231, 20181231, 2);
// 输出:-0.29
```
## `fundbcnonpercentgrow2(rdate, rdate_2, topn)`
声明:function
第N名债券类型市值占总值比变动(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| --------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `rdate_2` | integer | 整型,同比报告期 |
| `topn` | integer | 整型,第N |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231与20181231期间第2名债券类型市值占总值比变动(%)
setSysParam(pn_stock(), "OF000001");
return fundbcnonpercentgrow2(20191231, 20181231, 2);
// 输出:-0.26799288508768
```
## `fundbcnonpercentgrow3(rdate, rdate_2, topn)`
声明:function
第N名债券类型市值占债券市值比变动(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| --------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `rdate_2` | integer | 整型,同比报告期 |
| `topn` | integer | 整型,第N |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231与20181231期间第2名债券类型市值占债券市值比变动(%)
setSysParam(pn_stock(), "OF000001");
return fundbcnonpercentgrow3(20191231, 20181231, 2);
// 输出:3.04012437331564
```
## `fundbcnonpercentgrow4(rdate, rdate_2, topn)`
声明:function
第N名债券类型市值占固定收益投资市值比变动(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| --------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `rdate_2` | integer | 整型,同比报告期 |
| `topn` | integer | 整型,第N |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231与20181231期间第2名债券类型市值占固定收益投资市值比变动(%)
setSysParam(pn_stock(), "OF000001");
return fundbcnonpercentgrow4(20191231, 20181231, 2);
// 输出:3.04012437331564
```
## `fundbcnonvalue(rdate, topn)`
声明:function
第N名债券类型持有市值,与系统参数(基金)相关。单位:元。与系统参数(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `topn` | integer | 整型,第N |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231第2名债券类型持有市值
setSysParam(pn_stock(), "OF000001");
return fundbcnonvalue(20191231, 2);
// 输出:101040000
```
## `fundbcnonvaluegrow(rdate, rdate_2, topn)`
声明:function
第N名债券类型持有市值变动,单位:元。与系统参数(基金)相关
| 参数 | 类型 | 说明 |
| --------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `rdate_2` | integer | 整型,同比报告期 |
| `topn` | integer | 整型,第N |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231与20181231期间第2名债券类型持有市值变动
setSysParam(pn_stock(), "OF000001");
return fundbcnonvaluegrow(20191231, 20181231, 2);
// 输出:-220000
```
## `fundbcotherbondvalue(rdate)`
声明:function
其他债券市值,与系统参数(基金)相关。单位:元
| 参数 | 类型 | 说明 |
| ------- | ----- | ---------- |
| `rdate` | rdate | 指定报告期 |
返回:real
## `fundbcprivatebondvalue(rdate)`
声明:function
中小企业私募债市值,与系统参数(基金)相关。单位:元
| 参数 | 类型 | 说明 |
| ------- | ----- | ---------- |
| `rdate` | rdate | 指定报告期 |
返回:real
## `fundbcsumnpercent(rdate, topn)`
声明:function
前N名债券类型市值占净值比(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `topn` | integer | 整型,前N |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231前2名债券类型市值占净值比(%)
setSysParam(pn_stock(), "OF000001");
return fundbcsumnpercent(20191231, 2);
// 输出:19.91
```
## `fundbcsumnpercent2(rdate, topn)`
声明:function
前N名债券类型市值占总值比(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `topn` | integer | 整型,前N |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231前2名债券类型市值占总值比(%)
setSysParam(pn_stock(), "OF000001");
return fundbcsumnpercent2(20191231, 2);
// 输出:19.6952584471872
```
## `fundbcsumnpercent3(rdate, topn)`
声明:function
前N名债券类型市值占债券市值比(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `topn` | integer | 整型,前N |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231前2名债券类型市值占债券市值比(%)
setSysParam(pn_stock(), "OF000001");
return fundbcsumnpercent3(20191231, 1);
// 输出:87.86
```
## `fundbcsumnpercent4(rdate, topn)`
声明:function
前N名债券类型市值占固定收益投资市值比(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `topn` | integer | 整型,前N |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231前2名债券类型市值占固定收益投资市值比(%)
setSysParam(pn_stock(), "OF000001");
return fundbcsumnpercent4(20191231, 2);
// 输出:98.7622803483759
```
## `fundbcsumnpercentgrow(rdate, rdate_2, topn)`
声明:function
前N名债券类型市值占净值比变动(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| --------- | ---- | --------------- |
| `rdate` | int | 整型,指定报告期 |
| `rdate_2` | int | 整型,同比报告期 |
| `topn` | int | 整型,前N |
返回:float
### 示例
范例01:调用函数
```tsl
SetSysParam(pn_stock(), "OF000001");
return FundBCSumNPercentGrow(20191231, 20181231, 2);
// 输出:-9.92
```
## `fundbcsumnpercentgrow2(rdate, rdate_2, topn)`
声明:function
前N名债券类型市值占总值比变动(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| --------- | ---- | --------------- |
| `rdate` | int | 整型,指定报告期 |
| `rdate_2` | int | 整型,同比报告期 |
| `topn` | int | 整型,前N |
返回:float
### 示例
范例01:调用函数
```tsl
SetSysParam(pn_stock(), "OF000001");
return FundBCSumNPercentGrow2(20191231, 20181231, 2);
// 输出:-9.50685311820331
```
## `fundbcsumnpercentgrow3(rdate, rdate_2, topn)`
声明:function
前N名债券类型市值占债券市值比变动(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| --------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `rdate_2` | integer | 整型,同比报告期 |
| `topn` | integer | 整型,前N |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231与20181231期间前2名债券类型市值占债券市值比变动(%)
setSysParam(pn_stock(), "OF000001");
return fundbcsumnpercentgrow3(20191231, 20181231, 2);
// 输出:4.76065071464147
```
## `fundbcsumnpercentgrow4(rdate, rdate_2, topn)`
声明:function
前N名债券类型市值占固定收益投资市值比变动(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| --------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `rdate_2` | integer | 整型,同比报告期 |
| `topn` | integer | 整型,前N |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231与20181231期间前2名债券类型市值占固定收益投资市值比变动(%)
setSysParam(pn_stock(), "OF000001");
return fundbcsumnpercentgrow4(20191231, 20181231, 2);
// 输出:4.76065071464147
```
## `fundbcsumnvalue(rdate, topn)`
声明:function
前N名债券类型持有市值,与系统参数(基金)相关。单位:元。与系统参数(基金)相关
| 参数 | 类型 | 说明 |
| ------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `topn` | integer | 整型,前N |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231前2名债券类型持有市值
setSysParam(pn_stock(), "OF000001");
return fundbcsumnvalue(20191231, 2);
// 输出:915523625
```
## `fundbcsumnvaluegrow(rdate, rdate_2, topn)`
声明:function
前N名债券类型持有市值变动,与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| --------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `rdate_2` | integer | 整型,同比报告期 |
| `topn` | integer | 整型,前N |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231与20181231期间前2名债券类型持有市值变动
setSysParam(pn_stock(), "OF000001");
return fundbcsumnvaluegrow(20191231, 20181231, 2);
// 输出:-295558875
```
## `fundbcsumnvaluegrowratio(rdate, rdate_2, topn)`
声明:function
前N名债券类型市值变比(%),与系统参数证券(基金)相关
| 参数 | 类型 | 说明 |
| --------- | ------- | --------------- |
| `rdate` | integer | 整型,指定报告期 |
| `rdate_2` | integer | 整型,同比报告期 |
| `topn` | integer | 整型,前N |
返回:real
### 示例
范例01:调用函数
```tsl
// "OF000001"在20191231与20181231期间前2名债券类型市值变比(%)
setSysParam(pn_stock(), "OF000001");
return fundbcsumnvaluegrowratio(20191231, 20181231, 2);
// 输出:-24.4045203361456
```