✨ feat(skills): add tsl api reference skill
Bundle the TSL API index and markdown references under the skill, route TSL docs to use it, and update the codegen index generator to maintain the bundled data.
This commit is contained in:
@@ -0,0 +1,980 @@
|
||||
# 财务基本面 / 区间报表
|
||||
|
||||
### `ieFundScBuyMore2()`
|
||||
|
||||
基金.累计买入超净值2%股票明
|
||||
|
||||
返回:array
|
||||
|
||||
### `ieFundScSellMore2()`
|
||||
|
||||
基金.累计卖出超净值2%股票明细
|
||||
|
||||
返回:array
|
||||
|
||||
### `ieHyHjsc()`
|
||||
|
||||
行业.黄金生产
|
||||
|
||||
返回:string
|
||||
|
||||
### `ieRevenuesByRegion()`
|
||||
|
||||
主营收入及成本(按地区)
|
||||
|
||||
返回:string
|
||||
|
||||
### `reportEventQk(stock_id, r_date)`
|
||||
|
||||
报告期相关数据
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | ------ | --------------------------------------------------------------------- |
|
||||
| `stock_id` | string | 股票代码 |
|
||||
| `r_date` | int | 报告期;Type:返回表格类型,如:”分红送股”,更多请参考模型ReportByEvent |
|
||||
|
||||
返回:array
|
||||
|
||||
### `cashFlowSheetQk(stock_id, end_t, merge_or_parent)`
|
||||
|
||||
指定报告期的现金流量表
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `stock_id` | String | 股票代码 |
|
||||
| `end_t` | TDateTime | 截止日 |
|
||||
| `merge_or_parent` | Integer | 现金流量表的类型 |
|
||||
|
||||
返回:Array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
end_t := 20021231;
|
||||
return cashFlowSheetQk("SZ000001",end_t,0);
|
||||
//返回平安2002年的合并现金流量表
|
||||
结果:
|
||||
```
|
||||
|
||||
### `interestSheetQk(stock_id, end_t, merge_or_parent)`
|
||||
|
||||
指定报告期的损益表
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `stock_id` | String | 证券类型,股票代码 |
|
||||
| `end_t` | Integer | 报告期类型,截止日期 |
|
||||
| `merge_or_parent` | Integer | 整数 |
|
||||
|
||||
返回:Array
|
||||
|
||||
### `interestDistributeQk(stock_id, end_t, merge_or_parent)`
|
||||
|
||||
指定报告期的利润分配表。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `stock_id` | String | 字符串。股票代码 |
|
||||
| `end_t` | Integer | 整数。截止日期 |
|
||||
| `merge_or_parent` | Integer | 用户自定义。利润分配表类型,取值如下: |
|
||||
|
||||
返回:Array
|
||||
|
||||
### `taxRateQk(stock_id, end_t)`
|
||||
|
||||
指定报告期的税率。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `stock_id` | String | 字符串。股票代码 |
|
||||
| `end_t` | Integer | 整数。截止日期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
### `issueInfoQk(stock_id, beg_t, end_t)`
|
||||
|
||||
指定区间段内股票的发行情况
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `stock_id` | String | 股票代码 |
|
||||
| `beg_t` | TDateTime | 开始时间 |
|
||||
| `end_t` | TDatetime | 截止时间 |
|
||||
|
||||
返回:Array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
beg_t := intToDate(19950101);
|
||||
end_t := intToDate(20111231);
|
||||
return issueInfoQk("SH500003",beg_t,end_t);
|
||||
//返回1995-01-01至2011-12-31”SH500003”的股票的发行情况
|
||||
结果:
|
||||
```
|
||||
|
||||
### `mainnegotiableshareholdersqk(stockid, endt)`
|
||||
|
||||
指定报告期的十大流通股东情况
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `stockid` | string | String,股票代码 |
|
||||
| `endt` | date | reportingperiod,截止日期 |
|
||||
|
||||
返回:array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
return mainnegotiableshareholdersqk("SZ000002",20111231);
|
||||
//返回万科截止2011年十大流通股东情况
|
||||
结果:
|
||||
```
|
||||
|
||||
### `mainshareholdersqk(stockid, rdate)`
|
||||
|
||||
指定报告期的十大股东情况
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `stockid` | string | String,股票代码 |
|
||||
| `rdate` | rdate | ,截止日期 |
|
||||
|
||||
返回:array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
return mainshareholdersqk("SZ000002",20111231);
|
||||
//返回2011年十大股东情况
|
||||
结果:
|
||||
```
|
||||
|
||||
### `shareStructChangeQk(stock_id, beg_t, end_t)`
|
||||
|
||||
获得指定区间发生的股本结构变动情况
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `stock_id` | String | 股票代码 |
|
||||
| `beg_t` | TDateTime | 开始时间 |
|
||||
| `end_t` | TDateTime | 截止时间 |
|
||||
|
||||
返回:Array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
beg_t := intToDate(20080101);
|
||||
end_t := intToDate(20111231);
|
||||
return shareStructChangeQk("SZ000002",beg_t,end_t);
|
||||
//返回万科2008-01-01至2011-12-31的股本结构变动情况
|
||||
结果:
|
||||
```
|
||||
|
||||
### `shareStructQk(stock_id, end_t)`
|
||||
|
||||
获得指定日的股本结构
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `stock_id` | String | 股票代码 |
|
||||
| `end_t` | TDateTime | 截止日 |
|
||||
|
||||
返回:Array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
return shareStructQk("SZ000002",intToDate(20111231));
|
||||
//返回万科2011-12-3的股本结构
|
||||
结果:
|
||||
```
|
||||
|
||||
### `stockListQk(stock_id, beg_t, end_t)`
|
||||
|
||||
在指定区间内股票上市情况
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `stock_id` | String | 股票代码 |
|
||||
| `beg_t` | TDateTime | 开始时间 |
|
||||
| `end_t` | TDateTime | 截止时间 |
|
||||
|
||||
返回:Array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
stock_id := "SZ000002";
|
||||
beg_t := intToDate(19900101);
|
||||
end_t := intToDate(20111231);
|
||||
return stockListQk(stock_id,beg_t,end_t);
|
||||
//返回万科1900-01-01至2011-12-31股票上市情况
|
||||
结果:
|
||||
```
|
||||
|
||||
### `stockMoreIssueQk(stock_id, beg_t, end_t, filterfield)`
|
||||
|
||||
在指定区间内股票增发情况
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `stock_id` | String | 股票代码 |
|
||||
| `beg_t` | TDateTime | 开始时间 |
|
||||
| `end_t` | TDateTime | 截止时间 |
|
||||
| `filterfield` | String | 过虑字段 |
|
||||
|
||||
返回:Array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
stock_id := "SZ000002";
|
||||
beg_t := intToDate(19900101);
|
||||
end_t := intToDate(20111231);
|
||||
return StockMoreIssueQk(StockId,BegT,EndT,”上市日”);
|
||||
//返回万科A1900-01-01至2011-12-13股票增发情况
|
||||
结果:
|
||||
```
|
||||
|
||||
### `collectMoneyWayQk(stock_id, beg_t, end_t)`
|
||||
|
||||
在指定区间内股票募集资金投向情况。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `stock_id` | String | 字符串。股票代码 |
|
||||
| `beg_t` | TDateTime | 日期。开始日期 |
|
||||
| `end_t` | TDateTime | 日期。截止日期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
### `collectMoneyQk(stock_id, beg_t, end_t)`
|
||||
|
||||
在指定区间内股票募集资金情况。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `stock_id` | String | 字符串。股票代码 |
|
||||
| `beg_t` | TDateTime | 日期。开始日期 |
|
||||
| `end_t` | TDateTime | 日期。截止日期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
### `companyLeaderShareholdersQk(stock_id, end_t)`
|
||||
|
||||
指定报告期的公司管理层持股情况。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `stock_id` | String | 字符串。股票代码 |
|
||||
| `end_t` | Integer | 整数。截止日期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
### `importantEventQk(stock_id, beg_t, end_t, event_type)`
|
||||
|
||||
区间发生的事件。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `stock_id` | String | 字符串。股票代码 |
|
||||
| `beg_t` | TDateTime | 日期。开始日期 |
|
||||
| `end_t` | TDateTime | 日期。截止日期 |
|
||||
| `event_type` | String | 字符串。事项类型 |
|
||||
|
||||
返回:Array
|
||||
|
||||
### `stockCodeQk(end_t)`
|
||||
|
||||
指定日股票代码对照表。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `end_t` | TDateTime | 日期。截止日期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
### `stockIssueQk(stock_id, beg_t, end_t)`
|
||||
|
||||
在指定区间内股票发行情况。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `stock_id` | String | 字符串。股票代码 |
|
||||
| `beg_t` | TDateTime | 日期。开始日期 |
|
||||
| `end_t` | TDateTime | 日期。截止日期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
### `stockDistributionQk(stock_id, beg_t, end_t, filterfield)`
|
||||
|
||||
指定区间内的配股情况
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `stock_id` | String | 股票代码 |
|
||||
| `beg_t` | TDateTime | 开始时间 |
|
||||
| `end_t` | TDateTime | 截止时间 |
|
||||
| `filterfield` | String | 过虑字段 |
|
||||
|
||||
返回:Array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
stock_id :="SZ000002";
|
||||
beg_t := intToDate(19900101);
|
||||
end_t := intToDate(20111231);
|
||||
return StockDistributionQk(StockID,BegT,EndT,”除权日”);
|
||||
结果:
|
||||
```
|
||||
|
||||
### `amountCommissionQk(fund_id, end_t)`
|
||||
|
||||
指定报告期的交易量及佣金情况
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fund_id` | String | 基金代码 |
|
||||
| `end_t` | Integer | 报告期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
fund_id:= "SH500003";
|
||||
end_t := 20111231;
|
||||
return amountCommissionQk(fund_id,end_t);
|
||||
//返回”SH500003”2011年的交易量及佣金情况
|
||||
结果:
|
||||
```
|
||||
|
||||
### `balanceSheetQk(stock_id, end_t, merge_or_parent)`
|
||||
|
||||
股票&基金指定报告期的资产负债表
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `stock_id` | String | 股票&基金代码 |
|
||||
| `end_t` | Integer | 截止日期 |
|
||||
| `merge_or_parent` | Integer | 资产负债表类型 |
|
||||
|
||||
返回:Array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
stock_id := "SH500003";
|
||||
end_t := 20021231;
|
||||
return balanceSheetQk(stock_id,end_t,0);
|
||||
//返回”SH500003”在2002的资产负债表
|
||||
结果:
|
||||
```
|
||||
|
||||
### `financialItemsQk(stock_id, end_t)`
|
||||
|
||||
指定报告期的财务指标
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `stock_id` | String | 基金代码 |
|
||||
| `end_t` | Integer | 截止日 |
|
||||
|
||||
返回:Array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
stock_id := "SH500003";
|
||||
end_t := 20111231;
|
||||
return financialItemsQk(stock_id,end_t);
|
||||
//返回”SH500003”2011年的财务指标
|
||||
结果:
|
||||
```
|
||||
|
||||
### `fundEnlargeQk(fund_id, beg_t, end_t)`
|
||||
|
||||
在指定区间内基金扩募情况
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fund_id` | String | 基金代码 |
|
||||
| `beg_t` | TDateTime | 开始日期 |
|
||||
| `end_t` | TDateTime | 截止日期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
数据表,返回在指定区间内基金扩募情况
|
||||
fund_id :="SZ184700";
|
||||
beg_t := intToDate(19900101);
|
||||
end_t := intToDate(20111231);
|
||||
return fundEnlargeQk(fund_id,beg_t,end_t);
|
||||
//返回SZ184700”1990-01-01至2011-12-31的基金扩募情况
|
||||
结果:
|
||||
```
|
||||
|
||||
### `fundIndustryCompositeQk(fund_id, r_date)`
|
||||
|
||||
指定报告期的基金行业股票投资组合情况
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fund_id` | String | 基金代码 |
|
||||
| `r_date` | Integer | 报告期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
fund_id :="SZ184693";
|
||||
r_date := 20111231;
|
||||
return fundIndustryCompositeQk(fund_id,r_date);
|
||||
//返回”SZ184693”在2011年的基金行业股票投资组合情况
|
||||
结果:
|
||||
```
|
||||
|
||||
### `fundMainShareHoldersQk(fund_id, end_t)`
|
||||
|
||||
指定报告期的基金主要持有人
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fund_id` | String | 基金代码 |
|
||||
| `end_t` | Integer | 报告期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
fund_id := "SH500001";
|
||||
end_t := 20111231;
|
||||
return fundMainShareHoldersQk(fund_id,end_t);
|
||||
//返回基金金泰2011年的基金主要持有人
|
||||
结果:
|
||||
```
|
||||
|
||||
### `fundNewAddedStockQk(fund_id, end_t)`
|
||||
|
||||
指定报告期的基金新增股票
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fund_id` | String | 基金代码 |
|
||||
| `end_t` | Integer | 报告期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
fund_id := "SH500002";
|
||||
end_t := 20021231;
|
||||
return fundNewAddedStockQk(fund_id,end_t);
|
||||
//返回”SH500002”2002年的基金新增股票
|
||||
结果:
|
||||
```
|
||||
|
||||
### `fundStockCompositeQk(fund_id, r_date)`
|
||||
|
||||
指定报告期的股票投资组合情况
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fund_id` | String | 基金代码 |
|
||||
| `r_date` | Integer | 报告期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
fund_id := "SZ184701";
|
||||
r_date := 20111231;
|
||||
return fundStockCompositeQk(fund_id,r_date);
|
||||
//返回”SZ184701”2011年的股票投资组合情况
|
||||
结果:
|
||||
```
|
||||
|
||||
### `investmentRatioQk(fund_id, r_date)`
|
||||
|
||||
按资产类型分类的基金投资组合
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fund_id` | String | 基金代码 |
|
||||
| `r_date` | Integer | 报告期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
fund_id := "SZ184712";
|
||||
r_date := 20011231;
|
||||
return investmentRatioQk(fund_id,r_date);
|
||||
//返回”SZ84712”按资产类型分类的基金投资组合
|
||||
结果:
|
||||
```
|
||||
|
||||
### `netAssetWeeklyListQk2(fund_id, beg_t, end_t)`
|
||||
|
||||
一段时间的资产净值周表情况
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fund_id` | String | 基金代码 |
|
||||
| `beg_t` | TDateTime | 开始日期 |
|
||||
| `end_t` | TDateTime | 截止日期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
fund_id := "OF288101";
|
||||
beg_t := intToDate(20050101);
|
||||
end_t := intToDate(20111231);
|
||||
return netAssetWeeklyListQk2(fund_id,beg_t,end_t);
|
||||
//返回”OF288101”2005-01-01至2011-12-31的资产净值周表情况
|
||||
结果:
|
||||
```
|
||||
|
||||
### `netAssetWeeklyListQk(fund_id, end_t)`
|
||||
|
||||
指定报告期的资产净值周表情况
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fund_id` | String | 基金代码 |
|
||||
| `end_t` | TDateTime | 报告期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
fund_id := "SZ184691";
|
||||
end_t := 20031231;
|
||||
return netAssetWeeklyListQk(fund_id,end_t);
|
||||
//返回”SZ84691”2003年资产周表情况
|
||||
结果:
|
||||
```
|
||||
|
||||
### `fundBondCompositeQk(r_date)`
|
||||
|
||||
指定报告期的股票投资组合情况
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `r_date` | Integer | 报告期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
fund_id := "SZ184691";
|
||||
setSysParam(pn_Stock(), fund_id);
|
||||
return fundBondCompositeQk(20111231);
|
||||
//返回”SZ184691”在2011年的股票投资组合情况
|
||||
结果:
|
||||
```
|
||||
|
||||
### `fundBondPzCompositeQk(fund_id, r_date)`
|
||||
|
||||
指定报告期的债券配置
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fund_id` | String | 基金代码 |
|
||||
| `r_date` | Integer | 报告期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
fund_id := "SH500018";
|
||||
r_date := 20111231;
|
||||
return fundBondPzCompositeQk(fund_id,r_date);
|
||||
//返回”SH500018”在2011年的债券配置
|
||||
结果:
|
||||
```
|
||||
|
||||
### `fundsindustrycompositeqk(fundarr, rdate)`
|
||||
|
||||
板块-报告期-行业配置
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fundarr` | array of string | array of string,基金列表 |
|
||||
| `rdate` | rdate | ,报告期 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `fundsbondcompositeqk(fundarr, rdate)`
|
||||
|
||||
板块-报告期-债券配置汇总
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fundarr` | array of string | array of string,基金列表 |
|
||||
| `rdate` | rdate | ,报告期 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `fundsssmx(fundarr, rdate)`
|
||||
|
||||
指定报告期的份额变动-明细
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fundarr` | array of string | array of string,基金代码 |
|
||||
| `rdate` | rdate | ,截止日期 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `fundsstockcompositeqk(fundarr, rdate)`
|
||||
|
||||
指定报告期的股票投资组合-市值汇总
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fundarr` | array of string | array of string,基金代码 |
|
||||
| `rdate` | date | ,截止日期 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `fundshsmx(fundarr, rdate)`
|
||||
|
||||
指定报告期持有人结构-明细
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fundarr` | array of string | array of string,基金代码 |
|
||||
| `rdate` | date | ,截止日期 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `fundsbsqk(fundarr, rdate, bstype, topn)`
|
||||
|
||||
累计买入卖出-汇总
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fundarr` | array of string | array of string,基金代码 |
|
||||
| `rdate` | rdate | ,截止日期 |
|
||||
| `bstype` | Integer | Integer,买入卖出标志买入=0卖出=1 |
|
||||
| `topn` | integer | integer,前N |
|
||||
|
||||
返回:array
|
||||
|
||||
### `fundsbonddetailsqk(fundarr, rdate)`
|
||||
|
||||
指定报告期的持债明细-市值汇总
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fundarr` | array of string | array of string,基金代码 |
|
||||
| `rdate` | rdate | ,截止日期 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `fundspmqk(fundarr, rdate)`
|
||||
|
||||
指定报告期的贵金属明细-汇总
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fundarr` | array of string | |
|
||||
| `rdate` | | |
|
||||
|
||||
返回:Array,TableArray
|
||||
|
||||
### `fundsabsqk(fundarr, rdate)`
|
||||
|
||||
指定报告期的资产支持证券明细-汇总
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fundarr` | array of string | array of string,基金代码 |
|
||||
| `rdate` | rdate | ,截止日期 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `fundsfunddividendqk(fundarr, rdate, rdate2)`
|
||||
|
||||
板块-区间基金分红
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fundarr` | array of string | array of string,基金代码 |
|
||||
| `rdate` | rdate | ,截止日期 |
|
||||
| `rdate2` | rdate | integer,截止日期 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `fundscbqk(fundarr, rdate)`
|
||||
|
||||
指定报告期的处于转股期的可转债明细-汇总
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fundarr` | array of string | array of string,基金代码 |
|
||||
| `rdate` | rdate | ,截止日期 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `fundsarmmx(fundarr, rdate, dtype)`
|
||||
|
||||
指定报告期的平均剩余期限分布情况-明细
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fundarr` | array of string | array of string,基金代码 |
|
||||
| `rdate` | date | ,截止日期 |
|
||||
| `dtype` | Integer | Integer,分布情况 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `fundsfdqk(fundarr, rdate, isrelate)`
|
||||
|
||||
指定报告期的基金明细-汇总
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fundarr` | array of string | array of string,基金代码 |
|
||||
| `rdate` | rdate | ,截止日期 |
|
||||
| `isrelate` | integer | integer,是否关联方 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `establishmentQk(fund_id, beg_t, end_t)`
|
||||
|
||||
区间基金设立情况。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fund_id` | String | 字符串。基金代码 |
|
||||
| `beg_t` | TDateTime | 日期。开始日期 |
|
||||
| `end_t` | TDateTime | 日期。截止日期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
### `fundDistributeInfoQk(fund_id, beg_t, end_t)`
|
||||
|
||||
在指定区间内区间基金分红情况。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fund_id` | String | 字符串。基金代码 |
|
||||
| `beg_t` | TDateTime | 日期。开始日期 |
|
||||
| `end_t` | TDateTime | 日期。截止日期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
### `fundSellStockQk(fund_id, end_t)`
|
||||
|
||||
指定报告期的基金剔除股票。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fund_id` | String | 字符串。基金代码 |
|
||||
| `end_t` | Integer | 整数。截止日期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
### `profitSheetQk(fund_id, end_t)`
|
||||
|
||||
指定报告期的收益及分配表情况。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fund_id` | String | 字符串。基金代码 |
|
||||
| `end_t` | Integer | 整数。截止日期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
### `sponsorInfoQk(fund_id, end_t)`
|
||||
|
||||
指定日基金发起人持有基金情况。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fund_id` | String | 字符串。基金代码 |
|
||||
| `end_t` | Integer | 整数。截止日期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
### `fundsTpQk(fund_arr, r_date, order_field)`
|
||||
|
||||
交易席位情况-汇总。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `fund_arr` | Array | 数组。基金代码 |
|
||||
| `r_date` | Integer | 整数。指定报告期 |
|
||||
| `order_field` | String | 字符串。排序字段 |
|
||||
|
||||
返回:Array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
return fundsTpQk(array('OF000001'),20221231,'股票成交量');
|
||||
结果:
|
||||
```
|
||||
|
||||
### `fundNaQk(beg_t, end_t, cy)`
|
||||
|
||||
基金-区间-收益率
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `beg_t` | TDateTime | 开始日期 |
|
||||
| `end_t` | TDateTime | 截止日期 |
|
||||
| `cy` | String | 周期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
setSysParam(pn_Stock(),"SH500001");
|
||||
beg_t := intToDate(20110101);
|
||||
end_t := intToDate(20111231);
|
||||
return fundNaQk(beg_t,end_t,Cy_week());
|
||||
//返回”SH500001”2011-01-01至2011-12-31的周收益率
|
||||
结果:
|
||||
```
|
||||
|
||||
### `fundRraQk(end_t)`
|
||||
|
||||
基金-截止日-风险及调整收益
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `end_t` | TDateTime | 截止日期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
setSysParam(pn_Stock(),"SH500001");
|
||||
end_t := intToDate(20111130);
|
||||
return fundRraQk(end_t);
|
||||
//返回”SH500001”在截止日2011年11月30号的风险及调整收益
|
||||
结果:
|
||||
```
|
||||
|
||||
### `fundNa2Qk(end_t)`
|
||||
|
||||
基金-截止日-收益率
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `end_t` | | 截止日期 |
|
||||
|
||||
返回:数据表,返回指定基金指定日期的基金-截止日-收益率
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
setSysParam(pn_Stock(), "SH500001");
|
||||
end_t := intToDate(20111130);
|
||||
return fundNa2Qk(end_t);
|
||||
//返回”SH500001”在截止日2011年11月30号的收益率
|
||||
结果:
|
||||
```
|
||||
|
||||
### `fundNawzfQk(beg_t, end_t, cy, _type, option)`
|
||||
|
||||
功能:基金净值收益率序列
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `beg_t` | CycleList | 日期,区间开始日 |
|
||||
| `end_t` | CycleList | 日期,区间截止日 |
|
||||
| `cy` | CycleList | 周期,周期 |
|
||||
| `_type` | UserDefine | 用户自定义,区间类型,默认为0,取值如下: |
|
||||
| `option` | UserDefine | 用户自定义,比对依据,默认为0,取值如下: |
|
||||
|
||||
返回:array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
sp_s(pn_stock(),"OF000001");
|
||||
begt := 20230101t;
|
||||
endt := 20231231t;
|
||||
cy := cy_week();
|
||||
type_ := 0;
|
||||
option := 0;
|
||||
return fundNawzfQk(beg_t,end_t,cy,type_,option);
|
||||
返回:
|
||||
```
|
||||
|
||||
### `fundIndexNaQk(beg_t, end_t)`
|
||||
|
||||
(参考文档未提供简述。)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `beg_t` | | 日期,开始日 |
|
||||
| `end_t` | | 日期,截止日 |
|
||||
|
||||
返回:any
|
||||
|
||||
### `bondRateChangeQk(bond_id, end_t)`
|
||||
|
||||
指定日期的浮动利率债券利率。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `bond_id` | String | 字符串。债券代码 |
|
||||
| `end_t` | TDateTime | 日期。截止日期 |
|
||||
|
||||
返回:Real
|
||||
|
||||
### `bondInterestQk(bond_id, beg_t, end_t)`
|
||||
|
||||
在指定区间内债券付息情况。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `bond_id` | String | 字符串。债券代码 |
|
||||
| `beg_t` | TDateTime | 日期。开始日期 |
|
||||
| `end_t` | TDateTime | 日期。截止日期 |
|
||||
|
||||
返回:Array
|
||||
|
||||
### `convertibleBondChange(bond_id)`
|
||||
|
||||
可转债转股表。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `bond_id` | String | 字符串。股票代码 |
|
||||
|
||||
返回:Array
|
||||
|
||||
### `govBondCoefficientQk(bond_id, end_t)`
|
||||
|
||||
指定日期的国债折算率。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `bond_id` | String | 字符串。国债代码 |
|
||||
| `end_t` | TDateTime | 日期。截止日期 |
|
||||
|
||||
返回:Array
|
||||
Reference in New Issue
Block a user