✨ 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:
+571
@@ -0,0 +1,571 @@
|
||||
# 金融 / 基金 / 投资组合 / 行业配置
|
||||
|
||||
## `fundICCentralization(report_date, to_no)`
|
||||
|
||||
声明:function
|
||||
|
||||
基金指定报告期的前N名行业集中度(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------------- | ------- | ---------- |
|
||||
| `report_date` | integer | 报告期 |
|
||||
| `to_no` | integer | 用户自定义 |
|
||||
|
||||
返回:real
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
// 返回华安创新2010年一季报持有的前3大行业的集中度
|
||||
setSysParam(pn_stock(), 'OF040001');
|
||||
r_date := 20100331;
|
||||
return fundIcCentralization(r_date, 3);
|
||||
// 输出:52.49
|
||||
```
|
||||
|
||||
## `fundicindustrypercent2(rdate, name)`
|
||||
|
||||
声明:function
|
||||
|
||||
指定行业市值占总值比(%),与系统参数证券(基金)相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------- | ------- | --------------- |
|
||||
| `rdate` | integer | 整型,指定报告期 |
|
||||
| `name` | string | 字符串,行业名称 |
|
||||
|
||||
返回:real
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
// "OF000001"在20191231指定行业"金融业"市值占总值比(%)
|
||||
setSysParam(pn_stock(), "OF000001");
|
||||
return fundicindustrypercent2(20191231, "金融业");
|
||||
// 输出:5.57438513631856
|
||||
```
|
||||
|
||||
## `fundicindustrypercent3(rdate, name)`
|
||||
|
||||
声明:function
|
||||
|
||||
指定行业市值占股票市值比(%),与系统参数证券(基金)相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------- | ------ | --------------- |
|
||||
| `rdate` | int | 整型,指定报告期 |
|
||||
| `name` | string | 字符串,行业名称 |
|
||||
|
||||
返回:float
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(), "OF000001");
|
||||
return FundICIndustryPercent3(20191231, "金融业");
|
||||
// 输出:7.45005479951638
|
||||
```
|
||||
|
||||
## `fundicindustrypercentgrow2(rdate, rdate_2, name)`
|
||||
|
||||
声明:function
|
||||
|
||||
指定行业市值占总值比变动(%),与系统参数证券(基金)相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------- | ------ | --------------- |
|
||||
| `rdate` | int | 整型,指定报告期 |
|
||||
| `rdate_2` | int | 整型,同比报告期 |
|
||||
| `name` | string | 字符串,行业名称 |
|
||||
|
||||
返回:float
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(), "OF000001");
|
||||
return FundICIndustryPercentGrow2(20191231, 20181231, "金融业");
|
||||
```
|
||||
|
||||
## `fundicindustrypercentgrow3(rdate, rdate_2, name)`
|
||||
|
||||
声明:function
|
||||
|
||||
指定行业市值占股票市值比变动(%),与系统参数证券(基金)相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------- | ------ | --------------- |
|
||||
| `rdate` | int | 整型,指定报告期 |
|
||||
| `rdate_2` | int | 整型,同比报告期 |
|
||||
| `name` | string | 字符串,行业名称 |
|
||||
|
||||
返回:float
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(), "OF000001");
|
||||
return FundICIndustryPercentGrow3(20191231, 20181231, "金融业");
|
||||
```
|
||||
|
||||
## `fundicindustryrank(rdate, name)`
|
||||
|
||||
声明:function
|
||||
|
||||
指定行业市值排名,与系统参数证券(基金)相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------- | ------ | --------------- |
|
||||
| `rdate` | int | 整型,指定报告期 |
|
||||
| `name` | string | 字符串,行业名称 |
|
||||
|
||||
返回:float
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(), "OF000001");
|
||||
return FundICIndustryRank(20191231, "金融业");
|
||||
// 输出:4
|
||||
```
|
||||
|
||||
## `fundICInfo(report_date, to_no)`
|
||||
|
||||
声明:function
|
||||
|
||||
返回基金指定报告期的前N名行业明细,行业名称、市值、占净值比例(%),与系统证券pn_stock()相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------------- | ---- | ---------- |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `to_no` | int | 用户自定义 |
|
||||
|
||||
返回:array
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(), 'OF040001');
|
||||
RDate := 20100331;
|
||||
Return FundICInfo(RDate, 3);
|
||||
```
|
||||
|
||||
## `fundICInfo2(r_date, to_no)`
|
||||
|
||||
声明:function
|
||||
|
||||
返回基金指定报告期的行业投资情况(不含制造业),行业名称、市值、占净值比例(%),与系统证券pn_stock()相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| -------- | ---- | ---------- |
|
||||
| `r_date` | int | 报告期 |
|
||||
| `to_no` | int | 用户自定义 |
|
||||
|
||||
返回:array
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(), 'OF040001');
|
||||
RDate := 20100331;
|
||||
Return FundICInfo2(RDate, 3);
|
||||
```
|
||||
|
||||
## `fundICMarketValue(report_date, industry_name)`
|
||||
|
||||
声明:function
|
||||
|
||||
返回基金指定报告期的指定行业投资市值,与系统证券pn_stock()相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ------- | -------- |
|
||||
| `report_date` | integer | 报告期 |
|
||||
| `industry_name` | string | 行业名称 |
|
||||
|
||||
返回:real
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
// 返回华安创新2010年一季报持有的金融、保险业的股票的市值和
|
||||
setSysParam(pn_stock(), 'OF040001');
|
||||
r_date := 20100331;
|
||||
return fundIcMarketValue(r_date, '金融、保险业');
|
||||
// 输出:828593000
|
||||
```
|
||||
|
||||
## `fundICMarketValue2(report_date, to_no)`
|
||||
|
||||
声明:function
|
||||
|
||||
返回基金指定报告期的前N名行业市值和,与系统证券pn_stock()相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------------- | ---- | ---------- |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `to_no` | int | 用户自定义 |
|
||||
|
||||
返回:float
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(), 'OF040001');
|
||||
RDate := 20100331;
|
||||
Return FundICMarketValue2(RDate, 10);
|
||||
```
|
||||
|
||||
## `fundICMarketValue2Grow(r_date, r_date_2, to_no)`
|
||||
|
||||
声明:function
|
||||
|
||||
返回基金的前N名行业市值变动,与系统证券pn_stock()相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | ---- | ---------- |
|
||||
| `r_date` | int | 报告期 |
|
||||
| `r_date_2` | int | 报告期 |
|
||||
| `to_no` | int | 用户自定义 |
|
||||
|
||||
返回:float
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(), 'OF040001');
|
||||
RDate1 := 20110630;
|
||||
RDate2 := 20100630;
|
||||
Return FundICMarketValue2Grow(RDate1, RDate2, 10);
|
||||
```
|
||||
|
||||
## `fundICMarketValue2GrowRatio(r_date, r_date_2, to_no)`
|
||||
|
||||
声明:function
|
||||
|
||||
返回基金的前N名行业市值变比(%),与系统证券pn_stock()相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | ------- | ---------- |
|
||||
| `r_date` | integer | 报告期 |
|
||||
| `r_date_2` | integer | 报告期 |
|
||||
| `to_no` | integer | 用户自定义 |
|
||||
|
||||
返回:real
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
// 返回华安创新2011年中报和2010年中报持有的前十名行业的市值变动比
|
||||
setSysParam(pn_stock(), 'OF040001');
|
||||
r_date1 := 20110630;
|
||||
r_date2 := 20100630;
|
||||
return fundIcMarketValue2GrowRatio(r_date1, r_date2, 10);
|
||||
// 输出:29.29
|
||||
```
|
||||
|
||||
## `fundICMarketValueGrowRatio(r_date, r_date_2, industry_name)`
|
||||
|
||||
声明:function
|
||||
|
||||
返回基金指定行业投资市值变比(%),与系统证券pn_stock()相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ------ | -------- |
|
||||
| `r_date` | int | 报告期 |
|
||||
| `r_date_2` | int | 报告期 |
|
||||
| `industry_name` | string | 行业名称 |
|
||||
|
||||
返回:float
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(), 'OF040001');
|
||||
RDate1 := 20110630;
|
||||
RDate2 := 20100630;
|
||||
Return FundICMarketValueGrowRatio(RDate1, RDate2, '金融、保险业') ;
|
||||
```
|
||||
|
||||
## `fundicnonname(rdate, topn)`
|
||||
|
||||
声明:function
|
||||
|
||||
第N名行业名称,与系统参数证券(基金)相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------- | ------- | --------------- |
|
||||
| `rdate` | integer | 整型,指定报告期 |
|
||||
| `topn` | integer | 整型,第N |
|
||||
|
||||
返回:string
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
// "OF000001"在20191231第1名行业名称
|
||||
setSysParam(pn_stock(), "OF000001");
|
||||
return fundicnonname(20191231, 1);
|
||||
// 输出:制造业
|
||||
```
|
||||
|
||||
## `fundicnonpercent(rdate, topn)`
|
||||
|
||||
声明:function
|
||||
|
||||
第N名行业市值占净值比(%),与系统参数证券(基金)相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------- | ---- | --------------- |
|
||||
| `rdate` | int | 整型,指定报告期 |
|
||||
| `topn` | int | 整型,第N |
|
||||
|
||||
返回:float
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(), "OF000001");
|
||||
return FundICNoNPercent(20191231, 1);
|
||||
// 输出:44.09
|
||||
```
|
||||
|
||||
## `fundicnonpercent2(rdate, topn)`
|
||||
|
||||
声明:function
|
||||
|
||||
第N名行业市值占总值比(%),与系统参数证券(基金)相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------- | ---- | --------------- |
|
||||
| `rdate` | int | 整型,指定报告期 |
|
||||
| `topn` | int | 整型,第N |
|
||||
|
||||
返回:float
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(), "OF000001");
|
||||
return FundICNoNPercent2(20191231, 1);
|
||||
// 输出:43.6123705431576
|
||||
```
|
||||
|
||||
## `fundicnonpercent3(rdate, topn)`
|
||||
|
||||
声明:function
|
||||
|
||||
第N名行业市值占股票市值比(%),与系统参数证券(基金)相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------- | ---- | --------------- |
|
||||
| `rdate` | int | 整型,指定报告期 |
|
||||
| `topn` | int | 整型,第N |
|
||||
|
||||
返回:float
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(), "OF000001");
|
||||
return FundICNoNPercent3(20191231, 1);
|
||||
// 输出:58.2870653063485
|
||||
```
|
||||
|
||||
## `fundicnonpercentgrow2(rdate, rdate_2, topn)`
|
||||
|
||||
声明:function
|
||||
|
||||
第N名行业市值占总值比变动(%),与系统参数证券(基金)相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------- | ---- | --------------- |
|
||||
| `rdate` | int | 整型,指定报告期 |
|
||||
| `rdate_2` | int | 整型,同比报告期 |
|
||||
| `topn` | int | 整型,第N |
|
||||
|
||||
返回:float
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(), "OF000001");
|
||||
return FundICNoNPercentGrow2(20191231, 20181231, 1);
|
||||
```
|
||||
|
||||
## `fundicnonvalue(rdate, topn)`
|
||||
|
||||
声明:function
|
||||
|
||||
第N名行业市值,与系统参数证券(基金)相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------- | ---- | --------------- |
|
||||
| `rdate` | int | 整型,指定报告期 |
|
||||
| `topn` | int | 整型,第N |
|
||||
|
||||
返回:float
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(), "OF000001");
|
||||
return FundICNoNValue(20191231, 1);
|
||||
// 输出:2027297873.83
|
||||
```
|
||||
|
||||
## `fundICPercentage(report_date, industry_name)`
|
||||
|
||||
声明:function
|
||||
|
||||
返回指定行业占净值比例(%),与系统证券pn_stock()相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ------ | -------- |
|
||||
| `report_date` | int | 报告期 |
|
||||
| `industry_name` | string | 行业名称 |
|
||||
|
||||
返回:float
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(), 'OF040001');
|
||||
RDate := 20100331;
|
||||
Return FundSCCentralization(RDate, '金融、保险业');
|
||||
```
|
||||
|
||||
## `fundICPercentage2Grow(r_date, r_date_2, to_no)`
|
||||
|
||||
声明:function
|
||||
|
||||
返回基金前N名行业占净值比例变动(%),与系统证券pn_stock()相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | ---- | ---------- |
|
||||
| `r_date` | int | 报告期 |
|
||||
| `r_date_2` | int | 报告期 |
|
||||
| `to_no` | int | 用户自定义 |
|
||||
|
||||
返回:float
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(), 'OF040001');
|
||||
RDate1 := 20110630;
|
||||
RDate2 := 20100630;
|
||||
Return FundICPercentage2Grow(RDate1, RDate2, 10);
|
||||
```
|
||||
|
||||
## `fundICPercentageGrow(r_date, r_date_2, industry_name)`
|
||||
|
||||
声明:function
|
||||
|
||||
返回基金的指定行业占净值比例变动(%),与系统证券pn_stock()相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ------ | -------- |
|
||||
| `r_date` | int | 报告期 |
|
||||
| `r_date_2` | int | 报告期 |
|
||||
| `industry_name` | string | 行业名称 |
|
||||
|
||||
返回:float
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(), 'OF040001');
|
||||
RDate1 := 20110630;
|
||||
RDate2 := 20100630;
|
||||
return FundICPercentageGrow(RDate1, RDate2, '金融、保险业');
|
||||
```
|
||||
|
||||
## `fundicsumnpercent2(rdate, topn)`
|
||||
|
||||
声明:function
|
||||
|
||||
前N名行业市值占总值比(%),与系统参数证券(基金)相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------- | ---- | --------------- |
|
||||
| `rdate` | int | 整型,指定报告期 |
|
||||
| `topn` | int | 整型,前N |
|
||||
|
||||
返回:float
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(), "OF000001");
|
||||
return FundICSumNPercent2(20191231, 1);
|
||||
// 输出:12.9
|
||||
```
|
||||
|
||||
## `fundicsumnpercentgrow2(rdate, rdate_2, topn)`
|
||||
|
||||
声明:function
|
||||
|
||||
前N名行业市值占总值比变动(%),与系统参数证券(基金)相关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------- | ---- | --------------- |
|
||||
| `rdate` | int | 整型,指定报告期 |
|
||||
| `rdate_2` | int | 整型,同比报告期 |
|
||||
| `topn` | int | 整型,前N |
|
||||
|
||||
返回:float
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(), "OF000001");
|
||||
return FundICSumNPercentGrow2(20191231, 20181231, 1);
|
||||
```
|
||||
Reference in New Issue
Block a user