# 金融 / 基本面 / 区间报表 / 基金库 ## `amountCommissionQk(fund_id, end_t)` 声明:function 指定报告期的交易量及佣金情况 | 参数 | 类型 | 说明 | | --------- | ------- | -------- | | `fund_id` | string | 基金代码 | | `end_t` | integer | 报告期 | 返回:array ### 示例 范例01:返回”SH500003”2011年的交易量及佣金情况 ```tsl FundID := "SH500003"; EndT := 20111231; return AmountCommissionQk(FundId, EndT); // 输出:"SH500003"2011年的交易量及佣金情况 ``` ## `balanceSheetQk(stock_id, end_t, merge_or_parent)` 声明:function 股票&基金指定报告期的资产负债表 | 参数 | 类型 | 说明 | | ----------------- | ------- | -------------- | | `stock_id` | string | 股票&基金代码 | | `end_t` | integer | 截止日期 | | `merge_or_parent` | integer | 资产负债表类型 | 返回:array ### 示例 范例01:返回”SH500003”在2002的资产负债表 ```tsl StockID := "SH500003"; EndT := 20021231; return BalanceSheetQk(StockID, EndT, 0); // 输出:"SH500003"在2002的资产负债表 ``` ## `establishmentQk(fund_id, beg_t, end_t)` 声明:function 区间基金设立情况 | 参数 | 类型 | 说明 | | --------- | ----------- | ---------------- | | `fund_id` | string | 字符串。基金代码 | | `beg_t` | t_date_time | 日期。开始日期 | | `end_t` | t_date_time | 日期。截止日期 | 返回:array ## `financialItemsQk(stock_id, end_t)` 声明:function 指定报告期的财务指标 | 参数 | 类型 | 说明 | | ---------- | ------- | -------- | | `stock_id` | string | 基金代码 | | `end_t` | integer | 截止日 | 返回:array ### 示例 范例01:返回”SH500003”2011年的财务指标 ```tsl StockID := "SH500003"; EndT := 20111231; return FinancialItemsQk(StockId, EndT); // 输出:"SH500003"2011年的财务指标 ``` ## `fundBondCompositeQk(r_date)` 声明:function 指定报告期的股票投资组合情况 | 参数 | 类型 | 说明 | | -------- | ------- | ------ | | `r_date` | integer | 报告期 | 返回:array ### 示例 范例01:返回”SZ184691”在2011年的股票投资组合情况 ```tsl FundID := "SZ184691"; SetSysParam(pn_Stock(), FundID); return FundBondCompositeQk(20111231); // 输出:"SZ184691"在2011年的股票投资组合情况 ``` ## `fundBondPZCompositeQk(fund_id, r_date)` 声明:function 指定报告期的债券配置 | 参数 | 类型 | 说明 | | --------- | ------- | -------- | | `fund_id` | string | 基金代码 | | `r_date` | integer | 报告期 | 返回:array ### 示例 范例01:返回”SH500018”在2011年的债券配置 ```tsl FundID := "SH500018"; RDate := 20111231; return FundBondPZCompositeQk(FundId, RDate); // 输出:"SH500018"在2011年的债券配置 ``` ## `fundDistributeInfoQk(fund_id, beg_t, end_t)` 声明:function 在指定区间内区间基金分红情况 | 参数 | 类型 | 说明 | | --------- | ----------- | ---------------- | | `fund_id` | string | 字符串。基金代码 | | `beg_t` | t_date_time | 日期。开始日期 | | `end_t` | t_date_time | 日期。截止日期 | 返回:array ## `fundEnlargeQk(fund_id, beg_t, end_t)` 声明:function 在指定区间内基金扩募情况 | 参数 | 类型 | 说明 | | --------- | ----------- | -------- | | `fund_id` | string | 基金代码 | | `beg_t` | t_date_time | 开始日期 | | `end_t` | t_date_time | 截止日期 | 返回:array ### 示例 范例01:返回SZ184700”1990-01-01至2011-12-31的基金扩募情况 ```tsl FundId := "SZ184700"; BegT := inttodate(19900101); EndT := inttodate(20111231); return FundEnlargeQk(FundId, BegT, EndT); // 输出:SZ184700"1990-01-01至2011-12-31的基金扩募情况 ``` ## `fundIndustryCompositeQk(fund_id, r_date)` 声明:function 指定报告期的基金行业股票投资组合情况 | 参数 | 类型 | 说明 | | --------- | ------- | -------- | | `fund_id` | string | 基金代码 | | `r_date` | integer | 报告期 | 返回:array ### 示例 范例01:返回”SZ184693”在2011年的基金行业股票投资组合情况 ```tsl FundID := "SZ184693"; RDate := 20111231; return FundIndustryCompositeQk(FundId, RDate); // 输出:"SZ184693"在2011年的基金行业股票投资组合情况 ``` ## `fundMainShareHoldersQk(fund_id, end_t)` 声明:function 指定报告期的基金主要持有人 | 参数 | 类型 | 说明 | | --------- | ------- | -------- | | `fund_id` | string | 基金代码 | | `end_t` | integer | 报告期 | 返回:array ### 示例 范例01:返回基金金泰2011年的基金主要持有人 ```tsl FundID := "SH500001"; EndT := 20111231; return FundMainShareHoldersQk(FundId, EndT); // 输出:基金金泰2011年的基金主要持有人 ``` ## `fundNewAddedStockQk(fund_id, end_t)` 声明:function 指定报告期的基金新增股票 | 参数 | 类型 | 说明 | | --------- | ------- | -------- | | `fund_id` | string | 基金代码 | | `end_t` | integer | 报告期 | 返回:array ### 示例 范例01:返回”SH500002”2002年的基金新增股票 ```tsl FundID := "SH500002"; EndT := 20021231; Return FundNewAddedStockQk(FundId, EndT); // 输出:"SH500002"2002年的基金新增股票 ``` ## `fundsabsqk(fundarr, rdate)` 声明:function 指定报告期的资产支持证券明细-汇总 | 参数 | 类型 | 说明 | | --------- | --------------- | ------------------------ | | `fundarr` | array of string | array of string,基金代码 | | `rdate` | rdate | ,截止日期 | 返回:array ## `fundsarmmx(fundarr, rdate, dtype)` 声明:function 指定报告期的平均剩余期限分布情况-明细 | 参数 | 类型 | 说明 | | --------- | --------------- | ------------------------ | | `fundarr` | array of string | array of string,基金代码 | | `rdate` | date | ,截止日期 | | `dtype` | integer | Integer,分布情况 | 返回:array ## `fundsbondcompositeqk(fundarr, rdate)` 声明:function 板块-报告期-债券配置汇总 | 参数 | 类型 | 说明 | | --------- | --------------- | ------------------------ | | `fundarr` | array of string | array of string,基金列表 | | `rdate` | rdate | ,报告期 | 返回:array ## `fundsbonddetailsqk(fundarr, rdate)` 声明:function 指定报告期的持债明细-市值汇总 | 参数 | 类型 | 说明 | | --------- | --------------- | ------------------------ | | `fundarr` | array of string | array of string,基金代码 | | `rdate` | rdate | ,截止日期 | 返回:array ## `fundsbsqk(fundarr, rdate, bstype, topn)` 声明:function 累计买入卖出-汇总 | 参数 | 类型 | 说明 | | --------- | --------------- | -------------------------------- | | `fundarr` | array of string | array of string,基金代码 | | `rdate` | rdate | ,截止日期 | | `bstype` | integer | Integer,买入卖出标志买入=0卖出=1 | | `topn` | integer | integer,前N | 返回:array ## `fundscbqk(fundarr, rdate)` 声明:function 指定报告期的处于转股期的可转债明细-汇总 | 参数 | 类型 | 说明 | | --------- | --------------- | ------------------------ | | `fundarr` | array of string | array of string,基金代码 | | `rdate` | rdate | ,截止日期 | 返回:array ## `fundSellStockQk(fund_id, end_t)` 声明:function 指定报告期的基金剔除股票 | 参数 | 类型 | 说明 | | --------- | ------- | ---------------- | | `fund_id` | string | 字符串。基金代码 | | `end_t` | integer | 整数。截止日期 | 返回:array ## `fundsfdqk(fundarr, rdate, isrelate)` 声明:function 指定报告期的基金明细-汇总 | 参数 | 类型 | 说明 | | ---------- | --------------- | ------------------------ | | `fundarr` | array of string | array of string,基金代码 | | `rdate` | rdate | ,截止日期 | | `isrelate` | integer | integer,是否关联方 | 返回:array ## `fundsfunddividendqk(fundarr, rdate, rdate_2)` 声明:function 板块-区间基金分红 | 参数 | 类型 | 说明 | | --------- | --------------- | ------------------------ | | `fundarr` | array of string | array of string,基金代码 | | `rdate` | rdate | ,截止日期 | | `rdate_2` | rdate | integer,截止日期 | 返回:array ## `fundshsmx(fundarr, rdate)` 声明:function 指定报告期持有人结构-明细 | 参数 | 类型 | 说明 | | --------- | --------------- | ------------------------ | | `fundarr` | array of string | array of string,基金代码 | | `rdate` | date | ,截止日期 | 返回:array ## `fundsindustrycompositeqk(fundarr, rdate)` 声明:function 板块-报告期-行业配置 | 参数 | 类型 | 说明 | | --------- | --------------- | ------------------------ | | `fundarr` | array of string | array of string,基金列表 | | `rdate` | rdate | ,报告期 | 返回:array ## `fundsssmx(fundarr, rdate)` 声明:function 指定报告期的份额变动-明细 | 参数 | 类型 | 说明 | | --------- | --------------- | ------------------------ | | `fundarr` | array of string | array of string,基金代码 | | `rdate` | rdate | ,截止日期 | 返回:array ## `fundsstockcompositeqk(fundarr, rdate)` 声明:function 指定报告期的股票投资组合-市值汇总 | 参数 | 类型 | 说明 | | --------- | --------------- | ------------------------ | | `fundarr` | array of string | array of string,基金代码 | | `rdate` | date | ,截止日期 | 返回:array ## `fundStockCompositeQk(fund_id, r_date)` 声明:function 指定报告期的股票投资组合情况 | 参数 | 类型 | 说明 | | --------- | ------- | -------- | | `fund_id` | string | 基金代码 | | `r_date` | integer | 报告期 | 返回:array ### 示例 范例01:返回”SZ184701”2011年的股票投资组合情况 ```tsl FundID := "SZ184701"; RDate := 20111231; return FundStockCompositeQk(FundId, RDate); // 输出:"SZ184701"2011年的股票投资组合情况 ``` ## `fundsTPQk(fund_arr, r_date, order_field)` 声明:function 交易席位情况-汇总 | 参数 | 类型 | 说明 | | ------------- | ------- | ---------------- | | `fund_arr` | array | 数组。基金代码 | | `r_date` | integer | 整数。指定报告期 | | `order_field` | string | 字符串。排序字段 | 返回:array ### 示例 范例01:调用 FundsTPQk ```tsl Return FundsTPQk(array('OF000001'), 20221231, '股票成交量'); ``` ## `investmentRatioQk(fund_id, r_date)` 声明:function 按资产类型分类的基金投资组合 | 参数 | 类型 | 说明 | | --------- | ------- | -------- | | `fund_id` | string | 基金代码 | | `r_date` | integer | 报告期 | 返回:array ### 示例 范例01:返回”SZ84712”按资产类型分类的基金投资组合 ```tsl FundID := "SZ184712"; RDate := 20011231; return InvestmentRatioQk(FundId, RDate); // 输出:"SZ84712"按资产类型分类的基金投资组合 ``` ## `netAssetWeeklyListQk(fund_id, end_t)` 声明:function 指定报告期的资产净值周表情况 | 参数 | 类型 | 说明 | | --------- | ----------- | -------- | | `fund_id` | string | 基金代码 | | `end_t` | t_date_time | 报告期 | 返回:array ### 示例 范例01:返回”SZ84691”2003年资产周表情况 ```tsl FundID := "SZ184691"; EndT := 20031231; return NetAssetWeeklyListQk(FundId, EndT); // 输出:"SZ84691"2003年资产周表情况 ``` ## `netAssetWeeklyListQk2(fund_id, beg_t, end_t)` 声明:function 一段时间的资产净值周表情况 | 参数 | 类型 | 说明 | | --------- | ----------- | -------- | | `fund_id` | string | 基金代码 | | `beg_t` | t_date_time | 开始日期 | | `end_t` | t_date_time | 截止日期 | 返回:array ### 示例 范例01:返回”OF288101”2005-01-01至2011-12-31的资产净值周表情况 ```tsl FundID := "OF288101"; BegT := inttodate(20050101); EndT := inttodate(20111231); return NetAssetWeeklyListQk2(FundId, BegT, EndT); // 输出:"OF288101"2005-01-01至2011-12-31的资产净值周表情况 ``` ## `profitSheetQk(fund_id, end_t)` 声明:function 指定报告期的收益及分配表情况 | 参数 | 类型 | 说明 | | --------- | ------- | ---------------- | | `fund_id` | string | 字符串。基金代码 | | `end_t` | integer | 整数。截止日期 | 返回:array ## `sponsorInfoQk(fund_id, end_t)` 声明:function 指定日基金发起人持有基金情况 | 参数 | 类型 | 说明 | | --------- | ------- | ---------------- | | `fund_id` | string | 字符串。基金代码 | | `end_t` | integer | 整数。截止日期 | 返回:array