feat(tsl-api-reference): index class and unit APIs

Migrate reference pages to declaration-line storage and rebuild the
13-column index.

Add qualified member lookup plus regression and end-to-end coverage.
This commit is contained in:
csh
2026-07-29 15:47:46 +08:00
parent 9edc8fc868
commit 13be5ea0aa
239 changed files with 39157 additions and 12846 deletions
@@ -2,6 +2,8 @@
## `getBkWeightByDate2(index_id, benchmark_id, end_t)`
声明:function
本模型从基准指数BenchmarkID的成分股权重数据中获取目标指数IndexID的成份股,并取其权重进行归一处理,计算目标指数IndexID的成分股权重。 使用时需注意: 1.基准指数BenchmarkID的选取比较重要,比如申万二级和三级行业,可以选择对应的申万一级行业指数作为估算的基准指数,经测算是较为接近的; 2.目标指数IndexID的成分股必须可获取; 3.基准指数BenchmarkID的成分股应包含目标指数IndexID的成分股; 4.如果BenchmarkID为nil,则取默认基准指数--SH000985 中证全指
| 参数 | 类型 | 说明 |
@@ -14,6 +16,8 @@
## `getIndexes(market_id)`
声明:function
获取指定市场的最新的指数代码列表,与sp_time()无关,不能获取历史数据。
| 参数 | 类型 | 说明 |
@@ -24,6 +28,8 @@
## `indexCount(market_id)`
声明:function
获取指定市场最新的指数个数,与sp_time()无关。
| 参数 | 类型 | 说明 |
@@ -34,6 +40,8 @@
## `isIndex(index_id)`
声明:function
判断IndexID是否为指数代码
| 参数 | 类型 | 说明 |
@@ -44,6 +52,8 @@
## `markIndex()`
声明:function
返回证券最新对应的指数ID,与系统股票pn_stock()相关。 类型 指数ID 深交所证券 SZ399001 上交所证券 SH000001
返回:string
@@ -2,6 +2,8 @@
## `Index_RepurchaseMV(index_id, end_t, rtype, stype, ex_rate)`
声明:function
获得指定日指数成分股的累计回购金额
| 参数 | 类型 | 说明 |
@@ -16,6 +18,8 @@
## `Index_RepurchaseMVQJ(index_id, beg_t, end_t, rtype, stype, ex_rate)`
声明:function
获得区间指数成分股的累计回购金额
| 参数 | 类型 | 说明 |
@@ -31,6 +35,8 @@
## `Index_RepurchaseStockNum(index_id, end_t, rtype, stype)`
声明:function
获得指定日指数成分股发生回购的家数
| 参数 | 类型 | 说明 |
@@ -44,6 +50,8 @@
## `Index_RepurchaseStockNumQJ(index_id, beg_t, end_t, rtype, stype)`
声明:function
获得区间指数成分股发生回购的家数
| 参数 | 类型 | 说明 |
@@ -2,6 +2,8 @@
## `getBkWeightByDate(index_id, end_t, t, cal_type)`
声明:function
获取指数历史指定日的成份股权重。 注意,数据有来自于指数提供商或者天软预估。比如沪深300,每个月月末,指数提供商将月末的成分股信息及全部发送给天软,在本月末至下月末的日期之间的权重,来自于天软预估,即根据最近一次指数提供商提供的权重数据及成分股的涨幅,计算其权重。
| 参数 | 类型 | 说明 |
@@ -15,6 +17,8 @@
## `indexBkWeightbyDate1(indexid, endt)`
声明:function
指数指定日成份权重
| 参数 | 类型 | 说明 |
@@ -26,6 +30,8 @@
## `indexIndusNoNCode(endt, topn, industype)`
声明:function
第N名行业的名称
| 参数 | 类型 | 说明 |
@@ -45,6 +51,8 @@ return IndexIndusNoNCode(20200924T,2,1); //结果:金融业
## `indexIndusNoNWeight(endt, topn, industype)`
声明:function
指定日第N名行业的权重
| 参数 | 类型 | 说明 |
@@ -64,6 +72,8 @@ return IndexIndusNoNWeight(20200924T,2,1); //结果:28.686091977063
## `indexIndusSumNWeight(endt, topn, industype)`
声明:function
获取指定指数前N行业的权重(行业集中度(%))
| 参数 | 类型 | 说明 |
@@ -83,6 +93,8 @@ return IndexIndusSumNWeight(20200924T,2,1); //结果:28.4782510781865
## `indexIndusWeightByDate(industryname, endt, industype)`
声明:function
获取指定日指定行业在指定指数中的权重(%) 。 可以获取证监会一级/二级,中证一级/二级,申万一级/二级 的行业权重。其中, 1)证监会和中证只按照当前最新的行业分类统计, 2)申万可根据历史的行业分类统计 。
| 参数 | 类型 | 说明 |
@@ -102,6 +114,8 @@ return IndexIndusWeightByDate("制造业",20200924T,1);
## `indexIndusWeightEndT(indexid, endt, industype)`
声明:function
指定日指数的行业权重
| 参数 | 类型 | 说明 |
@@ -114,6 +128,8 @@ return IndexIndusWeightByDate("制造业",20200924T,1);
## `indexIndusWeightQj(industryname, indexid, begt, endt, industype)`
声明:function
获取区间指定行业在指定指数中的权重(%)
| 参数 | 类型 | 说明 |
@@ -128,6 +144,8 @@ return IndexIndusWeightByDate("制造业",20200924T,1);
## `indexStockNoNCode(endt, topn)`
声明:function
第N名股票的代码
| 参数 | 类型 | 说明 |
@@ -146,6 +164,8 @@ return IndexStockNoNCode(20200924T,2); //结果:SH600519
## `indexStockNoNWeight(endt, topn)`
声明:function
指定日第N名股票权重
| 参数 | 类型 | 说明 |
@@ -164,6 +184,8 @@ return IndexStockNoNWeight(20200924T,2); //结果:5.0403035260277
## `indexStockSumNWeight(endt, topn)`
声明:function
指定指数前N证券的权重(股票集中度(%))
| 参数 | 类型 | 说明 |
@@ -182,6 +204,8 @@ return IndexStockSumNWeight(20200924T,2); //结果:10.2321520830025
## `indexStockWeightByDate(stockid, endt)`
声明:function
获取指定日指定股票在指定指数中的权重(%)
| 参数 | 类型 | 说明 |
@@ -200,6 +224,8 @@ return IndexStockWeightByDate("SZ000002",20200924T); //结果:1.17721168024293
## `indexStockWeightQj(stockid, indexid, begt, endt)`
声明:function
获取区间指定股票在指定指数中的权重(%)
| 参数 | 类型 | 说明 |
@@ -213,6 +239,8 @@ return IndexStockWeightByDate("SZ000002",20200924T); //结果:1.17721168024293
## `indexWeightFirstday()`
声明:function
返回指定指数权重开始日,与系统参数(证券代码)相关。
返回:datetime
@@ -2,6 +2,8 @@
## `Index_CallFinancialItemPS(right_type, sample_select, criterion, value_type, r_date_type)`
声明:function
计算指数每股财务指标,与系统证券、时间相关。
| 参数 | 类型 | 说明 |
@@ -16,6 +18,8 @@
## `Index_CallFinancialRatio(right_type, sample_select, criterion, value_type, r_date_type)`
声明:function
计算指数财务比率,与系统证券、时间相关。 其结果与参数ValueType和RightType有关。 例如:当ValueType = 0时,取得指标是板块的流动比率 1)加权(RightType=0)时,其值为(板块个股的流动资产简单加总和的平均值 /板块个股的流动负债的简单加总和的平均值)\*100%; 2)算术平均时(RightType=1),其值为(流动资产/板块个股的流动负债)\*100%,然后再对板块内个股的流动比率之和求平均。 3)整体权重加权(RightType=11)时,其值为本期(板块个股的权重\*板块个股的流动资产)/(板块个股的权重\*板块个股的流动负债)\*100%; 4)调和平均数权重加权(RightType=12)时,其值为本期(1/板块个股的权重/(板块个股的流动资产/板块个股的流动负债))\*100%; 5)直接法权重加权(RightType=13)时,其值为本期(板块个股的权重\*(板块个股的流动资产/板块个股的流动负债))\*100%;
| 参数 | 类型 | 说明 |
@@ -30,6 +34,8 @@
## `Index_CallROE(right_type, sample_select, criterion, r_date_type)`
声明:function
计算指数ROE(%),与系统证券、时间相关。
| 参数 | 类型 | 说明 |
@@ -2,6 +2,8 @@
## `getAllIndexIDs(end_t)`
声明:function
获取指定日所有申万行业指数ID及名称对照表
| 参数 | 类型 | 说明 |
@@ -12,6 +14,8 @@
## `getBkBacktrackByDate(index_id, end_t, ex_type)`
声明:function
获取指数历史上指定日样本(可回溯)。当ExType=1时,如指数成分中取不到成分,则从权重表中获取。此函数可以简单回溯历史数据,当Endt早于指数开始日,则选取指数开始日成分股在endt在市交易的成分股列表。
| 参数 | 类型 | 说明 |
@@ -24,6 +28,8 @@
## `getbkbybegtendt(indexid, begt, endt)`
声明:function
区间曾经是成分股的股票,区间范围内是指数成份股的股票
| 参数 | 类型 | 说明 |
@@ -36,6 +42,8 @@
## `getBkByDate(index_id, end_t, extype)`
声明:function
获取指数历史指定日的成份股列表。与GetBK不同,该函数需要的第一个参数是指数代码,获取该指数的指定日的成分股,比如沪深300定期调整,在不同时间获取的成分股将不同。 新增功能,当ExType=1时指数成分中取不到成分时,则从权重表中获取
| 参数 | 类型 | 说明 |
@@ -48,6 +56,8 @@
## `getBkByIndexName(index_name, end_t)`
声明:function
使用指数名称获取指定日指数成分,只支持申万行业、A股
| 参数 | 类型 | 说明 |
@@ -59,6 +69,8 @@
## `getBkGoMarketByDate(index_id, end_t, ex_type)`
声明:function
获取指数历史上指定日样本(已上市)。当ExType=1时指数成分中取不到成分时,则从权重表中获取。存在申万行业分类的成份股中,它的选入日期可能早于上市日,现剔除这部分标的。
| 参数 | 类型 | 说明 |
@@ -71,6 +83,8 @@
## `getBkNameToId(index_name, end_t)`
声明:function
使用指数名称获取指定日指数成分
| 参数 | 类型 | 说明 |
@@ -82,6 +96,8 @@
## `getBksByDate(index_arr, endt)`
声明:function
获取指数历史指定日的成份股列表。与GetBKByDate不同,可以指定多个指数代码获取,去重处理。
| 参数 | 类型 | 说明 |
@@ -93,6 +109,8 @@
## `Stock_HSGEligibleInfo(bkid, stockid)`
声明:function
股票调入调出沪深港通情况,返回:板块代码、板块、代码、入选日期、剔除日期、成份标志
| 参数 | 类型 | 说明 |
@@ -104,6 +122,8 @@
## `stockInandOutIndexCompisteDetail(index_id, begt, endt)`
声明:function
查询指定股票做为成分股在指定指数INDEXID指定时间内begt到endt,调入和调出指数详情.
| 参数 | 类型 | 说明 |
@@ -125,6 +145,8 @@ return StockInandOutIndexCompisteDetail(SH000300,begt,endt);
## `stockIsIndexComposite(index_id, end_t)`
声明:function
查询指定日股票是否是指数的成份股,与系统证券pn_stock()相关。
| 参数 | 类型 | 说明 |
@@ -2,6 +2,8 @@
## `indexDssoIncreaseComList(index_id, end_t, vtype, rtype)`
声明:function
获得指数成份股指定日发生董监高及关联人增持的股票列表
| 参数 | 类型 | 说明 |
@@ -15,6 +17,8 @@
## `indexDssoIncreaseComListQj(index_id, beg_t, end_t, vtype, rtype)`
声明:function
获得指数成份股区间董监高及关联人增持的股票列表
| 参数 | 类型 | 说明 |
@@ -29,6 +33,8 @@
## `indexDssoIncreaseComNum(index_id, end_t, vtype, rtype)`
声明:function
获得指数成份股指定日发生董监高及关联人增持的股票个数
| 参数 | 类型 | 说明 |
@@ -42,6 +48,8 @@
## `indexDssoIncreaseComNumQj(index_id, beg_t, end_t, vtype, rtype)`
声明:function
获得指数成份股区间董监高及关联人增持的股票个数
| 参数 | 类型 | 说明 |
@@ -56,6 +64,8 @@
## `indexDssoIncreasePercent(index_id, end_t, vtype, rtype)`
声明:function
获得指数成份股指定日董监高及关联人增持占总市值(%)
| 参数 | 类型 | 说明 |
@@ -69,6 +79,8 @@
## `indexDssoIncreasePercent2(index_id, end_t, vtype, rtype)`
声明:function
获得指数成份股指定日董监高及关联人增持占流通市值(%)
| 参数 | 类型 | 说明 |
@@ -82,6 +94,8 @@
## `indexDssoIncreasePercentQj2(index_id, beg_t, end_t, vtype, rtype)`
声明:function
获得指数成份股区间董监高及关联人增持占流通市值(%)
| 参数 | 类型 | 说明 |
@@ -96,6 +110,8 @@
## `indexDssoIncreaseValue(index_id, end_t, vtype, rtype)`
声明:function
获得指数成份股指定日董监高及关联人增持市值
| 参数 | 类型 | 说明 |
@@ -109,6 +125,8 @@
## `indexDssoIncreaseValueQj(index_id, beg_t, end_t, vtype, rtype)`
声明:function
获得指数成份股区间董监高及关联人增持市值
| 参数 | 类型 | 说明 |
@@ -123,6 +141,8 @@
## `indexDssoNetChangeComList(index_id, end_t, vtype, rtype)`
声明:function
获得指数成份股指定日发生董监高及关联人净增持的股票列表
| 参数 | 类型 | 说明 |
@@ -136,6 +156,8 @@
## `indexDssoNetChangeComListQj(index_id, beg_t, end_t, vtype, rtype)`
声明:function
获得指数成份股区间董监高及关联人净增持的股票列表
| 参数 | 类型 | 说明 |
@@ -150,6 +172,8 @@
## `indexDssoNetChangeComNum(index_id, end_t, vtype, rtype)`
声明:function
获得指数成份股指定日发生董监高及关联人净增持的股票个数
| 参数 | 类型 | 说明 |
@@ -163,6 +187,8 @@
## `indexDssoNetChangeComNumQj(index_id, beg_t, end_t, vtype, rtype)`
声明:function
获得指数成份股区间董监高及关联人净增持的股票个数
| 参数 | 类型 | 说明 |
@@ -177,6 +203,8 @@
## `indexDssoNetChangePercent(index_id, end_t, vtype, rtype)`
声明:function
获得指数成份股指定日董监高及关联人净增持占总市值(%)
| 参数 | 类型 | 说明 |
@@ -190,6 +218,8 @@
## `indexDssoNetChangePercent2(index_id, end_t, vtype, rtype)`
声明:function
获得指数成份股指定日董监高及关联人净增持占流通市值(%)
| 参数 | 类型 | 说明 |
@@ -203,6 +233,8 @@
## `indexDssoNetChangePercentQj(index_id, beg_t, end_t, vtype, rtype)`
声明:function
获得指数成份股区间董监高及关联人净增持占总市值(%)
| 参数 | 类型 | 说明 |
@@ -217,6 +249,8 @@
## `indexDssoNetChangeValue(index_id, end_t, vtype, rtype)`
声明:function
获得指数成份股指定日董监高及关联人净增持市值
| 参数 | 类型 | 说明 |
@@ -230,6 +264,8 @@
## `indexDssoNetChangeValueQj(index_id, beg_t, end_t, vtype, rtype)`
声明:function
获得指数成份股区间董监高及关联人净增持市值
| 参数 | 类型 | 说明 |
@@ -244,6 +280,8 @@
## `indexDssoReduceComList(index_id, end_t, vtype, rtype)`
声明:function
获得指数成份股指定日发生董监高及关联人减持的股票列表
| 参数 | 类型 | 说明 |
@@ -257,6 +295,8 @@
## `indexDssoReduceComNum(index_id, end_t, vtype, rtype)`
声明:function
获得指数成份股指定日发生董监高及关联人减持的股票个数
| 参数 | 类型 | 说明 |
@@ -270,6 +310,8 @@
## `indexDssoReduceComNumQj(index_id, beg_t, end_t, vtype, rtype)`
声明:function
获得指数成份股区间董监高及关联人减持的股票个数
| 参数 | 类型 | 说明 |
@@ -284,6 +326,8 @@
## `indexDssoReducePercent(index_id, end_t, vtype, rtype)`
声明:function
获得指数成份股指定日董监高及关联人减持占总市值(%)
| 参数 | 类型 | 说明 |
@@ -297,6 +341,8 @@
## `indexDssoReducePercent2(index_id, end_t, vtype, rtype)`
声明:function
获得指数成份股指定日董监高及关联人减持占流通市值(%)
| 参数 | 类型 | 说明 |
@@ -310,6 +356,8 @@
## `indexDssoReducePercentQj(index_id, beg_t, end_t, vtype, rtype)`
声明:function
获得指数成份股区间董监高及关联人减持占总市值(%)
| 参数 | 类型 | 说明 |
@@ -324,6 +372,8 @@
## `indexDssoReducePercentQj2(index_id, beg_t, end_t, vtype, rtype)`
声明:function
获得指数成份股区间董监高及关联人减持占流通市值(%)
| 参数 | 类型 | 说明 |
@@ -338,6 +388,8 @@
## `indexDssoReduceValue(index_id, end_t, vtype, rtype)`
声明:function
获得指数成份股指定日董监高及关联人减持市值
| 参数 | 类型 | 说明 |
@@ -2,6 +2,8 @@
## `indexRestrictedBanAndNrsPercent(index_id, endt, vtype)`
声明:function
指定日解禁市值占未流通市值(解禁前)比例(%)
| 参数 | 类型 | 说明 |
@@ -14,6 +16,8 @@
## `indexRestrictedBanAndNrsPercentQj(index_id, begt, endt, vtype)`
声明:function
区间解禁市值占未流通市值(解禁前)比例(%)
| 参数 | 类型 | 说明 |
@@ -27,6 +31,8 @@
## `indexRestrictedBanAndRsPercent(index_id, endt, vtype)`
声明:function
指定日解禁市值占流通市值(解禁前)比例(%)
| 参数 | 类型 | 说明 |
@@ -39,6 +45,8 @@
## `indexRestrictedBanAndRsPercentQj(index_id, begt, endt, vtype)`
声明:function
区间解禁市值占流通市值(解禁前)比例(%)
| 参数 | 类型 | 说明 |
@@ -52,6 +60,8 @@
## `indexRestrictedBanFutureAndNrsPercentQj(index_id, endt, vtype, dtype)`
声明:function
指定日未来解禁市值占未流通市值(解禁前)比例(%),其中未来解禁市值: 小于等于今天(today()):SUM(解禁数量\*收盘价(历史)) 大于今天(today()):SUM(解禁数量\*收盘价(Endt))
| 参数 | 类型 | 说明 |
@@ -65,6 +75,8 @@
## `indexRestrictedBanFutureAndRsPercentQj(index_id, endt, vtype, dtype)`
声明:function
指定日未来解禁市值占流通市值(解禁前)比例(%),其中未来解禁市值: 小于等于今天(today()):SUM(解禁数量\*收盘价(历史)) 大于今天(today()):SUM(解禁数量\*收盘价(Endt))
| 参数 | 类型 | 说明 |
@@ -78,6 +90,8 @@
## `indexRestrictedBanFutureMvPercentQj(index_id, endt, vtype, dtype)`
声明:function
指定日未来解禁市值占总市值比例(%),其中未来解禁市值: 小于等于今天(today()):SUM(解禁数量\*收盘价(历史)) 大于今天(today()):SUM(解禁数量\*收盘价(Endt))
| 参数 | 类型 | 说明 |
@@ -91,6 +105,8 @@
## `indexRestrictedBanFutureNum(index_id, endt, vtype, dtype)`
声明:function
指定日未来解禁家数
| 参数 | 类型 | 说明 |
@@ -104,6 +120,8 @@
## `indexRestrictedBanMv(index_id, endt, vtype)`
声明:function
指定日解禁市值(单位:元)
| 参数 | 类型 | 说明 |
@@ -116,6 +134,8 @@
## `indexRestrictedBanMvPercent(index_id, endt, vtype)`
声明:function
指定日解禁市值占总市值比例(%)
| 参数 | 类型 | 说明 |
@@ -128,6 +148,8 @@
## `indexRestrictedBanMvqj(index_id, begt, endt, vtype)`
声明:function
区间解禁市值(单位:元)
| 参数 | 类型 | 说明 |
@@ -141,6 +163,8 @@
## `indexRestrictedBanNum(index_id, endt, vtype)`
声明:function
指定日解禁家数
| 参数 | 类型 | 说明 |
@@ -153,6 +177,8 @@
## `indexRestrictedBanNumQj(index_id, begt, endt, vtype)`
声明:function
区间解禁家数
| 参数 | 类型 | 说明 |
@@ -2,12 +2,16 @@
## `simulateIndex()`
声明:function
指数计算基类,作为类被调用时使用。
返回:any
## `simulateIndexDemo(index_id, begt, endt, is_dividend, shares_type, stock_weight)`
声明:function
指数计算范例.
| 参数 | 类型 | 说明 |
@@ -2,6 +2,8 @@
## `indexHoldersIncreaseComList(index_id, end_t, vtype)`
声明:function
获得指数成分股指定日发生大股东增持的股票列表
| 参数 | 类型 | 说明 |
@@ -14,6 +16,8 @@
## `indexHoldersIncreaseComListQj(index_id, beg_t, end_t, vtype)`
声明:function
获得指数成分股区间发生大股东增持的股票列表
| 参数 | 类型 | 说明 |
@@ -27,6 +31,8 @@
## `indexHoldersIncreaseComNum(index_id, end_t, vtype)`
声明:function
获得指数成分股指定日发生大股东增持的股票个数
| 参数 | 类型 | 说明 |
@@ -39,6 +45,8 @@
## `indexHoldersIncreaseComNumQj(index_id, beg_t, end_t, vtype)`
声明:function
获得指数成分股区间发生大股东增持的股票个数
| 参数 | 类型 | 说明 |
@@ -52,6 +60,8 @@
## `indexHoldersIncreasePercent(index_id, end_t, vtype)`
声明:function
获得指数成分股指定日大股东增持占总市值(%)
| 参数 | 类型 | 说明 |
@@ -64,6 +74,8 @@
## `indexHoldersIncreasePercent2(index_id, end_t, vtype)`
声明:function
获得指数成分股指定日大股东增持占流通市值(%)
| 参数 | 类型 | 说明 |
@@ -76,6 +88,8 @@
## `indexHoldersIncreasePercentQj(index_id, beg_t, end_t, vtype)`
声明:function
获得指数成分股区间大股东增持占总市值(%)
| 参数 | 类型 | 说明 |
@@ -89,6 +103,8 @@
## `indexHoldersIncreasePercentQj2(index_id, beg_t, end_t, vtype)`
声明:function
获得指数成分股区间大股东增持占流通市值(%)
| 参数 | 类型 | 说明 |
@@ -102,6 +118,8 @@
## `indexHoldersIncreaseValue(index_id, end_t, vtype)`
声明:function
获得指数成分股指定日大股东增持市值
| 参数 | 类型 | 说明 |
@@ -114,6 +132,8 @@
## `indexHoldersIncreaseValueQj(index_id, beg_t, end_t, vtype)`
声明:function
获得指数成分股区间大股东增持市值
| 参数 | 类型 | 说明 |
@@ -127,6 +147,8 @@
## `indexHoldersNetChangeComList(index_id, end_t, vtype)`
声明:function
获得指数成分股指定日发生大股东净增持的股票列表
| 参数 | 类型 | 说明 |
@@ -139,6 +161,8 @@
## `indexHoldersNetChangeComListQj(index_id, beg_t, end_t, vtype)`
声明:function
获得指数成分股区间发生大股东净增持的股票列表
| 参数 | 类型 | 说明 |
@@ -152,6 +176,8 @@
## `indexHoldersNetChangeComNum(index_id, end_t, vtype)`
声明:function
获得指数成分股指定日发生大股东净增持的股票个数
| 参数 | 类型 | 说明 |
@@ -164,6 +190,8 @@
## `indexHoldersNetChangeComNumQj(index_id, beg_t, end_t, vtype)`
声明:function
获得指数成分股区间发生大股东净增持的股票个数
| 参数 | 类型 | 说明 |
@@ -177,6 +205,8 @@
## `indexHoldersNetChangePercent(index_id, end_t, vtype)`
声明:function
获得指数成分股指定日大股东净增持占总市值(%)
| 参数 | 类型 | 说明 |
@@ -189,6 +219,8 @@
## `indexHoldersNetChangePercent2(index_id, end_t, vtype)`
声明:function
获得指数成分股指定日大股东净增持占流通市值(%)
| 参数 | 类型 | 说明 |
@@ -201,6 +233,8 @@
## `indexHoldersNetChangePercentQj(index_id, beg_t, end_t, vtype)`
声明:function
获得指数成分股区间大股东净增持占总市值(%)
| 参数 | 类型 | 说明 |
@@ -214,6 +248,8 @@
## `indexHoldersNetChangePercentQj2(index_id, beg_t, end_t, vtype)`
声明:function
获得指数成分股区间大股东净增持占流通市值(%)
| 参数 | 类型 | 说明 |
@@ -227,6 +263,8 @@
## `indexHoldersNetChangeValue(index_id, end_t, vtype)`
声明:function
获得指数成分股指定日大股东净增持市值
| 参数 | 类型 | 说明 |
@@ -239,6 +277,8 @@
## `indexHoldersNetChangeValueQj(index_id, beg_t, end_t, vtype)`
声明:function
获得指数成分股区间大股东净增持市值
| 参数 | 类型 | 说明 |
@@ -252,6 +292,8 @@
## `indexHoldersReduceComList(index_id, end_t, vtype)`
声明:function
获得指数成分股指定日发生大股东减持的股票列表
| 参数 | 类型 | 说明 |
@@ -264,6 +306,8 @@
## `indexHoldersReduceComListQj(index_id, beg_t, end_t, vtype)`
声明:function
获得指数成分股区间发生大股东减持的股票列表
| 参数 | 类型 | 说明 |
@@ -277,6 +321,8 @@
## `indexHoldersReduceComNum(index_id, end_t, vtype)`
声明:function
获得指数成分股指定日发生大股东减持的股票个数
| 参数 | 类型 | 说明 |
@@ -289,6 +335,8 @@
## `indexHoldersReduceComNumQj(index_id, beg_t, end_t, vtype)`
声明:function
获得指数成分股区间发生大股东减持的股票个数
| 参数 | 类型 | 说明 |
@@ -302,6 +350,8 @@
## `indexHoldersReducePercent(index_id, end_t, vtype)`
声明:function
获得指数成分股指定日大股东减持占总市值(%)
| 参数 | 类型 | 说明 |
@@ -314,6 +364,8 @@
## `indexHoldersReducePercent2(index_id, end_t, vtype)`
声明:function
获得指数成分股指定日大股东减持占流通市值(%)
| 参数 | 类型 | 说明 |
@@ -326,6 +378,8 @@
## `indexHoldersReducePercentQj(index_id, beg_t, end_t, vtype)`
声明:function
获得指数成分股区间大股东减持占总市值(%)
| 参数 | 类型 | 说明 |
@@ -339,6 +393,8 @@
## `indexHoldersReducePercentQj2(index_id, beg_t, end_t, vtype)`
声明:function
获得指数成分股区间大股东减持占流通市值(%)
| 参数 | 类型 | 说明 |
@@ -352,6 +408,8 @@
## `indexHoldersReduceValue(index_id, end_t, vtype)`
声明:function
获得指数成分股指定日大股东减持市值
| 参数 | 类型 | 说明 |
@@ -364,6 +422,8 @@
## `indexHoldersReduceValueQj(index_id, beg_t, end_t, vtype)`
声明:function
获得指数成分股区间大股东减持市值
| 参数 | 类型 | 说明 |
@@ -2,6 +2,8 @@
## `Index_CallDP(right_type, sample_select, criterion, r_date_type)`
声明:function
实时计算指数股息率DP(%),与系统证券、时间相关。
| 参数 | 类型 | 说明 |
@@ -15,6 +17,8 @@
## `Index_CallPB(right_type, sample_select, criterion, r_date_type)`
声明:function
实时计算指数市净率PB,与系统证券、时间相关。
| 参数 | 类型 | 说明 |
@@ -28,6 +32,8 @@
## `Index_CallPCF(right_type, sample_select, criterion, r_date_type)`
声明:function
实时计算指数市现率PCF,与系统证券、时间相关。
| 参数 | 类型 | 说明 |
@@ -41,6 +47,8 @@
## `Index_CallPE(right_type, sample_select, criterion, r_date_type)`
声明:function
实时计算指数市盈率PE,与系统证券、时间相关。
| 参数 | 类型 | 说明 |
@@ -54,6 +62,8 @@
## `Index_CallPSR(right_type, sample_select, criterion, r_date_type)`
声明:function
实时计算指数市销率PSR,与系统证券、时间相关。
| 参数 | 类型 | 说明 |
@@ -67,6 +77,8 @@
## `Index_PB2(right_type, sample_select)`
声明:function
指定日市净率(最新年报),与系统参数(证券代码,时间)相关。
| 参数 | 类型 | 说明 |
@@ -78,6 +90,8 @@
## `Index_PCF(right_type, sample_select)`
声明:function
提取指定日的指数市现率,与系统参数(证券代码,时间)相关。
| 参数 | 类型 | 说明 |
@@ -89,6 +103,8 @@
## `Index_PCF2(right_type, sample_select)`
声明:function
指定日市现率(最新年报),与系统参数(证券代码,时间)相关。
| 参数 | 类型 | 说明 |
@@ -100,6 +116,8 @@
## `Index_PE(right_type, sample_select)`
声明:function
提取指定日的指数市盈率,与系统参数(证券代码,时间)相关。
| 参数 | 类型 | 说明 |
@@ -111,6 +129,8 @@
## `Index_PE2(right_type, sample_select)`
声明:function
指定日市盈率(最新年报),与系统参数(证券代码,时间)相关。
| 参数 | 类型 | 说明 |
@@ -122,6 +142,8 @@
## `Index_PSR(right_type, sample_select)`
声明:function
提取指定日的指数市销率,与系统参数(证券代码,时间)相关。
| 参数 | 类型 | 说明 |
@@ -133,6 +155,8 @@
## `Index_PSR2(right_type, sample_select)`
声明:function
指定日市销率(最新年报),与系统参数(证券代码,时间)相关。
| 参数 | 类型 | 说明 |
@@ -144,18 +168,24 @@
## `Index_Val_Firstday()`
声明:function
指数估值衍生开始日,与系统参数(证券代码)相关。
返回:float
## `Index_Val_LastUpday()`
声明:function
指数估值衍生实际计算日期,与系统参数(证券代码)相关。
返回:float|datetime
## `Index_Value(right_type, sample_select, index_type)`
声明:function
指数估值中间函数,与系统参数(证券代码,时间)相关。
| 参数 | 类型 | 说明 |
@@ -2,6 +2,8 @@
## `getIndexValuePct(index_id, begt, endt, cycle, right_type, sample_select, types, r_date_type, grid_no)`
声明:function
指定日指数PE/PB/PCF/PMI(最近12个月)估值百分位。
| 参数 | 类型 | 说明 |
@@ -20,6 +22,8 @@
## `Index_PEPBPMIPNA12_Call_DBFirst(end_t, right_type, s_type, sample_select, criterion, _type, r_date_type)`
声明:function
指数PE/PB/PCF/PMI(最近12个月)。
| 参数 | 类型 | 说明 |
@@ -36,6 +40,8 @@
## `TSFL_IndexValuePCTSeries(index_id, begt, endt, cycle, n, right_type, sample_select, types, r_date_type, grid_no)`
声明:function
研究指数PE/PB/PCF/PMI(最近12个月)序列、估值百分位与指数走势之间的关系。
| 参数 | 类型 | 说明 |
@@ -55,6 +61,8 @@
## `valuePctSeriesFrame(index_id, begt, endt, cycle, n, val_fun, field, grid_no, if_close)`
声明:function
计算区间估值百分位序列。
| 参数 | 类型 | 说明 |
@@ -73,6 +81,8 @@
## `valueSeriesFrame(index_id, begt, endt, cycle, val_fun, field, grid_no)`
声明:function
计算区间估值序列。
| 参数 | 类型 | 说明 |