♻️ refactor(tsl): rebuild codegen taxonomy
Move generated builtin and dotnet function docs into the upgraded taxonomy, remove legacy route pages, and regenerate function_index.tsv from markdown headings.
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
# 指数 / 基本信息
|
||||
|
||||
### `getBkWeightByDate2(index_id, benchmark_id, end_t)`
|
||||
|
||||
本模型从基准指数BenchmarkID的成分股权重数据中获取目标指数IndexID的成份股,并取其权重进行归一处理,计算目标指数IndexID的成分股权重。 使用时需注意: 1.基准指数BenchmarkID的选取比较重要,比如申万二级和三级行业,可以选择对应的申万一级行业指数作为估算的基准指数,经测算是较为接近的; 2.目标指数IndexID的成分股必须可获取; 3.基准指数BenchmarkID的成分股应包含目标指数IndexID的成分股; 4.如果BenchmarkID为nil,则取默认基准指数--SH000985 中证全指
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| -------------- | -------- | ------------- |
|
||||
| `index_id` | string | 指数,指数 |
|
||||
| `benchmark_id` | string | 指数,基准指数 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `getIndexes(market_id)`
|
||||
|
||||
获取指定市场的最新的指数代码列表,与sp_time()无关,不能获取历史数据。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ----------- | ---- | -------------- |
|
||||
| `market_id` | int | 整型,市场代码 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `indexCount(market_id)`
|
||||
|
||||
获取指定市场最新的指数个数,与sp_time()无关。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ----------- | ---- | -------------- |
|
||||
| `market_id` | int | 整型,市场代码 |
|
||||
|
||||
返回:int
|
||||
|
||||
### `isIndex(index_id)`
|
||||
|
||||
判断IndexID是否为指数代码
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | ------ | -------- |
|
||||
| `index_id` | string | 指数代码 |
|
||||
|
||||
返回:bool
|
||||
|
||||
### `markIndex()`
|
||||
|
||||
返回证券最新对应的指数ID,与系统股票pn_stock()相关。 类型 指数ID 深交所证券 SZ399001 上交所证券 SH000001
|
||||
|
||||
返回:string
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
Setsysparam(pn_stock(),'SZ000002') ;
|
||||
Return MarkIndex();
|
||||
```
|
||||
@@ -0,0 +1,57 @@
|
||||
# 指数 / 股份回购
|
||||
|
||||
### `indexRepurchaseMv(index_id, end_t, rtype, stype, ex_rate)`
|
||||
|
||||
获得指定日指数成分股的累计回购金额
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `rtype` | any | 用户自定义,回购类型 |
|
||||
| `stype` | any | 用户自定义,股票种类 |
|
||||
| `ex_rate` | any | 用户自定义,汇率类型 |
|
||||
|
||||
返回:any
|
||||
|
||||
### `indexRepurchaseMvqj(index_id, beg_t, end_t, rtype, stype, ex_rate)`
|
||||
|
||||
获得区间指数成分股的累计回购金额
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `rtype` | any | 用户自定义,回购类型 |
|
||||
| `stype` | any | 用户自定义,股票种类 |
|
||||
| `ex_rate` | any | 用户自定义,汇率类型 |
|
||||
|
||||
返回:any
|
||||
|
||||
### `indexRepurchaseStockNum(index_id, end_t, rtype, stype)`
|
||||
|
||||
获得指定日指数成分股发生回购的家数
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `rtype` | any | 用户自定义,回购类型 |
|
||||
| `stype` | any | 用户自定义,股票种类 |
|
||||
|
||||
返回:any
|
||||
|
||||
### `indexRepurchaseStockNumQj(index_id, beg_t, end_t, rtype, stype)`
|
||||
|
||||
获得区间指数成分股发生回购的家数
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `rtype` | any | 用户自定义,回购类型 |
|
||||
| `stype` | any | 用户自定义,股票种类 |
|
||||
|
||||
返回:any
|
||||
@@ -0,0 +1,225 @@
|
||||
# 指数 / 指数成分
|
||||
|
||||
### `getBkWeightByDate(index_id, end_t, t, cal_type)`
|
||||
|
||||
获取指数历史指定日的成份股权重。 注意,数据有来自于指数提供商或者天软预估。比如沪深300,每个月月末,指数提供商将月末的成分股信息及全部发送给天软,在本月末至下月末的日期之间的权重,来自于天软预估,即根据最近一次指数提供商提供的权重数据及成分股的涨幅,计算其权重。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------------------------------------------------------------ |
|
||||
| `index_id` | string | 指数代码 |
|
||||
| `end_t` | datetime | 截止日 |
|
||||
| `t` | array | 函数查询结果(指数成份股权重) |
|
||||
| `cal_type` | 含义 | 取值和对应含义如下表,具体说明详见说明文档关于增加指数成份权重及访问方法 |
|
||||
|
||||
返回:bool
|
||||
|
||||
### `indexBkWeightbyDate1(indexid, endt)`
|
||||
|
||||
指数指定日成份权重
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------- | -------- | -------------- |
|
||||
| `indexid` | Index | Index,指数代码 |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `indexIndusNoNCode(endt, topn, industype)`
|
||||
|
||||
第N名行业的名称
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ----------- | -------- | ------------- |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
| `topn` | int | 整型,第N |
|
||||
| `industype` | int | 整型,行业类别 |
|
||||
|
||||
返回:string
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),'SH000300');
|
||||
return IndexIndusNoNCode(20200924T,2,1); //结果:金融业
|
||||
```
|
||||
|
||||
### `indexIndusNoNWeight(endt, topn, industype)`
|
||||
|
||||
指定日第N名行业的权重
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ----------- | -------- | ------------- |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
| `topn` | int | 整型,第N |
|
||||
| `industype` | int | 整型,行业类别 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),'SH000300');
|
||||
return IndexIndusNoNWeight(20200924T,2,1); //结果:28.686091977063
|
||||
```
|
||||
|
||||
### `indexIndusSumNWeight(endt, topn, industype)`
|
||||
|
||||
获取指定指数前N行业的权重(行业集中度(%))
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ----------- | -------- | ------------- |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
| `topn` | int | 整型,前N |
|
||||
| `industype` | int | 整型,行业类别 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),'SH000300');
|
||||
return IndexIndusSumNWeight(20200924T,2,1); //结果:28.4782510781865
|
||||
```
|
||||
|
||||
### `indexIndusWeightByDate(industryname, endt, industype)`
|
||||
|
||||
获取指定日指定行业在指定指数中的权重(%) 。 可以获取证监会一级/二级,中证一级/二级,申万一级/二级 的行业权重。其中, 1)证监会和中证只按照当前最新的行业分类统计, 2)申万可根据历史的行业分类统计 。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| -------------- | -------- | --------------- |
|
||||
| `industryname` | string | 字符串,行业名称 |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
| `industype` | int | 整型,行业类别 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),'SH000300');
|
||||
return IndexIndusWeightByDate("制造业",20200924T,1);
|
||||
```
|
||||
|
||||
### `indexIndusWeightEndT(indexid, endt, industype)`
|
||||
|
||||
指定日指数的行业权重
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ----------- | -------- | -------------- |
|
||||
| `indexid` | Index | Index,指数代码 |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
| `industype` | int | 整型,行业类别 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `indexIndusWeightQj(industryname, indexid, begt, endt, industype)`
|
||||
|
||||
获取区间指定行业在指定指数中的权重(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| -------------- | -------- | --------------- |
|
||||
| `industryname` | string | 字符串,行业名称 |
|
||||
| `indexid` | Index | Index,指数代码 |
|
||||
| `begt` | datetime | 日期,开始日期 |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
| `industype` | int | 整型,行业类别 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `indexStockNoNCode(endt, topn)`
|
||||
|
||||
第N名股票的代码
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------ | -------- | ------------- |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
| `topn` | int | 整型,第N |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),'SH000300');
|
||||
return IndexStockNoNCode(20200924T,2); //结果:SH600519
|
||||
```
|
||||
|
||||
### `indexStockNoNWeight(endt, topn)`
|
||||
|
||||
指定日第N名股票权重
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------ | -------- | ------------- |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
| `topn` | int | 整型,第N |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),'SH000300');
|
||||
return IndexStockNoNWeight(20200924T,2); //结果:5.0403035260277
|
||||
```
|
||||
|
||||
### `indexStockSumNWeight(endt, topn)`
|
||||
|
||||
指定指数前N证券的权重(股票集中度(%))
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------ | -------- | ------------- |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
| `topn` | int | 整型,前N |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),'SH000300');
|
||||
return IndexStockSumNWeight(20200924T,2); //结果:10.2321520830025
|
||||
```
|
||||
|
||||
### `indexStockWeightByDate(stockid, endt)`
|
||||
|
||||
获取指定日指定股票在指定指数中的权重(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------- | -------- | -------------- |
|
||||
| `stockid` | Index | Index,股票代码 |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),'SH000300');
|
||||
return IndexStockWeightByDate("SZ000002",20200924T); //结果:1.17721168024293
|
||||
```
|
||||
|
||||
### `indexStockWeightQj(stockid, indexid, begt, endt)`
|
||||
|
||||
获取区间指定股票在指定指数中的权重(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------- | -------- | --------------- |
|
||||
| `stockid` | string | 字符串,证券代码 |
|
||||
| `indexid` | string | 字符串,指数代码 |
|
||||
| `begt` | datetime | 日期,开始日期 |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `indexWeightFirstday()`
|
||||
|
||||
返回指定指数权重开始日,与系统参数(证券代码)相关。
|
||||
|
||||
返回:datetime
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),'SH000300');
|
||||
return IndexWeightFirstday();
|
||||
```
|
||||
@@ -0,0 +1,42 @@
|
||||
# 指数 / 财务指标
|
||||
|
||||
### `indexCallFinancialItemPs(right_type, sample_select, criterion, value_type, r_date_type)`
|
||||
|
||||
计算指数每股财务指标,与系统证券、时间相关。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | -------------------------------------------------------- |
|
||||
| `right_type` | any | 加权方式,整型,取值如下 |
|
||||
| `sample_select` | any | 样本股选择,具体取值如下: |
|
||||
| `criterion` | float | 实数,绩差股标准,和参数SampleSelect结合使用。 |
|
||||
| `value_type` | any | 相应指标的ID号(如:ValueType = 0,时,取得指标为流动比率) |
|
||||
| `r_date_type` | any | 整型,报告期类型,具体取值如下: |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexCallFinancialRatio(right_type, sample_select, criterion, value_type, r_date_type)`
|
||||
|
||||
计算指数财务比率,与系统证券、时间相关。 其结果与参数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%;
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `right_type` | any | 加权方式,整型,取值如下 |
|
||||
| `sample_select` | any | 样本股选择,具体取值如下: |
|
||||
| `criterion` | float | 实数,绩差股标准,和参数SampleSelect结合使用。 |
|
||||
| `value_type` | any | 相应指标的ID号(如:ValueType = 0,时,取得指标为流动比率);注:增长率(%)相关指标的计算支持同比增长率(%)和环比增长率(%),当计算环比增长率(%)时候,需要设置系统参数CT_SectorQuarterGrowRatio(); |
|
||||
| `r_date_type` | any | 整型,报告期类型,具体取值如下: |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexCallRoe(right_type, sample_select, criterion, r_date_type)`
|
||||
|
||||
计算指数ROE(%),与系统证券、时间相关。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------- |
|
||||
| `right_type` | any | 加权方式,整型,取值如下 |
|
||||
| `sample_select` | any | 样本股选择,具体取值如下: |
|
||||
| `criterion` | float | 实数,绩差股标准,和参数SampleSelect结合使用。 |
|
||||
| `r_date_type` | any | 整型,报告期类型,具体取值如下: |
|
||||
|
||||
返回:float
|
||||
@@ -0,0 +1,17 @@
|
||||
# 指数
|
||||
|
||||
函数数:128
|
||||
|
||||
| 叶子 | 文件 | 函数数 |
|
||||
| --- | --- | ---: |
|
||||
| 指数 / 基本信息 | [指数 / 基本信息](basic_info.md) | 5 |
|
||||
| 指数 / 股份回购 | [指数 / 股份回购](buyback.md) | 4 |
|
||||
| 指数 / 指数成分 | [指数 / 指数成分](constituents.md) | 14 |
|
||||
| 指数 / 财务指标 | [指数 / 财务指标](financials.md) | 3 |
|
||||
| 指数 / 指数情况 | [指数 / 指数情况](index_info.md) | 11 |
|
||||
| 指数 / 董监高持股变动 | [指数 / 董监高持股变动](insider_holding.md) | 26 |
|
||||
| 指数 / 限售解禁 | [指数 / 限售解禁](lockup_release.md) | 13 |
|
||||
| 指数 / 其他 | [指数 / 其他](misc.md) | 2 |
|
||||
| 指数 / 股东增减持 | [指数 / 股东增减持](shareholder_change.md) | 30 |
|
||||
| 指数 / 估值指标 | [指数 / 估值指标](valuation.md) | 15 |
|
||||
| 指数 / 估值走势和百分位 | [指数 / 估值走势和百分位](valuation_percentile.md) | 5 |
|
||||
@@ -0,0 +1,142 @@
|
||||
# 指数 / 指数情况
|
||||
|
||||
### `getAllIndexIDs(end_t)`
|
||||
|
||||
获取指定日所有申万行业指数ID及名称对照表
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------- | -------- | ------------- |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `getBkBacktrackByDate(index_id, end_t, ex_type)`
|
||||
|
||||
获取指数历史上指定日样本(可回溯)。当ExType=1时,如指数成分中取不到成分,则从权重表中获取。此函数可以简单回溯历史数据,当Endt早于指数开始日,则选取指数开始日成分股在endt在市交易的成分股列表。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ---------------- |
|
||||
| `index_id` | string | 字符串。指数代码 |
|
||||
| `end_t` | datetime | 日期。截止日 |
|
||||
| `ex_type` | int | 整数。是否扩展 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `getbkbybegtendt(indexid, begt, endt)`
|
||||
|
||||
区间曾经是成分股的股票,区间范围内是指数成份股的股票
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------- | -------- | ---------------------------------------------------------- |
|
||||
| `indexid` | string | 字符串,板块代码,一个或多个代码,多个代码以英文分号“;”隔开 |
|
||||
| `begt` | datetime | Tdatetime,开始日期 |
|
||||
| `endt` | datetime | Tdatetime,截止日期 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `getBkByDate(index_id, end_t, extype)`
|
||||
|
||||
获取指数历史指定日的成份股列表。与GetBK不同,该函数需要的第一个参数是指数代码,获取该指数的指定日的成分股,比如沪深300定期调整,在不同时间获取的成分股将不同。 新增功能,当ExType=1时指数成分中取不到成分时,则从权重表中获取
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------------------------------------------------------------------------- |
|
||||
| `index_id` | string | 指数代码 |
|
||||
| `end_t` | datetime | 截止日 |
|
||||
| `extype` | int | 整型,是否扩展,默认不扩展;0:不扩展;1:扩展取数(指数成分表无数据时,从权重表中获取) |
|
||||
|
||||
返回:Table
|
||||
|
||||
### `getBkByIndexName(index_name, end_t)`
|
||||
|
||||
使用指数名称获取指定日指数成分,只支持申万行业、A股
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------------ | -------- | --------------- |
|
||||
| `index_name` | string | 字符串,指数名称 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `getBkGoMarketByDate(index_id, end_t, ex_type)`
|
||||
|
||||
获取指数历史上指定日样本(已上市)。当ExType=1时指数成分中取不到成分时,则从权重表中获取。存在申万行业分类的成份股中,它的选入日期可能早于上市日,现剔除这部分标的。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ---------------- |
|
||||
| `index_id` | string | 字符串。指数代码 |
|
||||
| `end_t` | datetime | 日期。截止日 |
|
||||
| `ex_type` | int | 整数。是否扩展 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `getBkNameToId(index_name, end_t)`
|
||||
|
||||
使用指数名称获取指定日指数成分
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------------ | -------- | --------------- |
|
||||
| `index_name` | string | 字符串,指数名称 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `getBksByDate(index_arr, endt)`
|
||||
|
||||
获取指数历史指定日的成份股列表。与GetBKByDate不同,可以指定多个指数代码获取,去重处理。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ----------- | -------- | ----------------------- |
|
||||
| `index_arr` | array | 一维字符串数组,指数列表 |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `stockHsgEligibleInfo(bkid, stockid)`
|
||||
|
||||
股票调入调出沪深港通情况,返回:板块代码、板块、代码、入选日期、剔除日期、成份标志
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------- | ------ | ----------------------------------------------------------------------------------------------------------- |
|
||||
| `bkid` | string | 字符串,字符串,通道代码;"HG000001" 港股通(沪);"HG000003" 港股通(深);"HG000002" 沪股通;"HG000004" 深股通 |
|
||||
| `stockid` | string | 字符串,股票代码 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `stockInandOutIndexCompisteDetail(index_id, begt, endt)`
|
||||
|
||||
查询指定股票做为成分股在指定指数INDEXID指定时间内begt到endt,调入和调出指数详情.
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | -------------------- |
|
||||
| `index_id` | string | 指数,指数或行业代码 |
|
||||
| `begt` | datetime | 日期,开始日 |
|
||||
| `endt` | datetime | 日期,截止日 |
|
||||
|
||||
返回:array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
SetSysParam(PN_Stock(),’SZ000690’);
|
||||
begt:=20000801T;
|
||||
endt:=20190101T;
|
||||
return StockInandOutIndexCompisteDetail(‘SH000300’,begt,endt);
|
||||
```
|
||||
|
||||
### `stockIsIndexComposite(index_id, end_t)`
|
||||
|
||||
查询指定日股票是否是指数的成份股,与系统证券pn_stock()相关。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------ |
|
||||
| `index_id` | string | 指数 |
|
||||
| `end_t` | datetime | 截止日 |
|
||||
|
||||
返回:bool
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),'SZ000002');
|
||||
return StockIsIndexComposite('SH000300',inttodate(20120907));
|
||||
```
|
||||
@@ -0,0 +1,350 @@
|
||||
# 指数 / 董监高持股变动
|
||||
|
||||
### `indexDssoIncreaseComList(index_id, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股指定日发生董监高及关联人增持的股票列表
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `indexDssoIncreaseComListQj(index_id, beg_t, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股区间董监高及关联人增持的股票列表
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `indexDssoIncreaseComNum(index_id, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股指定日发生董监高及关联人增持的股票个数
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:int
|
||||
|
||||
### `indexDssoIncreaseComNumQj(index_id, beg_t, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股区间董监高及关联人增持的股票个数
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:int
|
||||
|
||||
### `indexDssoIncreasePercent(index_id, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股指定日董监高及关联人增持占总市值(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexDssoIncreasePercent2(index_id, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股指定日董监高及关联人增持占流通市值(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexDssoIncreasePercentQj2(index_id, beg_t, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股区间董监高及关联人增持占流通市值(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexDssoIncreaseValue(index_id, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股指定日董监高及关联人增持市值
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexDssoIncreaseValueQj(index_id, beg_t, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股区间董监高及关联人增持市值
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexDssoNetChangeComList(index_id, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股指定日发生董监高及关联人净增持的股票列表
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `indexDssoNetChangeComListQj(index_id, beg_t, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股区间董监高及关联人净增持的股票列表
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `indexDssoNetChangeComNum(index_id, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股指定日发生董监高及关联人净增持的股票个数
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:int
|
||||
|
||||
### `indexDssoNetChangeComNumQj(index_id, beg_t, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股区间董监高及关联人净增持的股票个数
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:int
|
||||
|
||||
### `indexDssoNetChangePercent(index_id, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股指定日董监高及关联人净增持占总市值(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexDssoNetChangePercent2(index_id, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股指定日董监高及关联人净增持占流通市值(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexDssoNetChangePercentQj(index_id, beg_t, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股区间董监高及关联人净增持占总市值(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexDssoNetChangeValue(index_id, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股指定日董监高及关联人净增持市值
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexDssoNetChangeValueQj(index_id, beg_t, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股区间董监高及关联人净增持市值
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexDssoReduceComList(index_id, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股指定日发生董监高及关联人减持的股票列表
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `indexDssoReduceComNum(index_id, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股指定日发生董监高及关联人减持的股票个数
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:int
|
||||
|
||||
### `indexDssoReduceComNumQj(index_id, beg_t, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股区间董监高及关联人减持的股票个数
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:int
|
||||
|
||||
### `indexDssoReducePercent(index_id, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股指定日董监高及关联人减持占总市值(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexDssoReducePercent2(index_id, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股指定日董监高及关联人减持占流通市值(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexDssoReducePercentQj(index_id, beg_t, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股区间董监高及关联人减持占总市值(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexDssoReducePercentQj2(index_id, beg_t, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股区间董监高及关联人减持占流通市值(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexDssoReduceValue(index_id, end_t, vtype, rtype)`
|
||||
|
||||
获得指数成份股指定日董监高及关联人减持市值
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
| `rtype` | int | 用户自定义,与关联董监高关系 |
|
||||
|
||||
返回:float
|
||||
@@ -0,0 +1,165 @@
|
||||
# 指数 / 限售解禁
|
||||
|
||||
### `indexRestrictedBanAndNrsPercent(index_id, endt, vtype)`
|
||||
|
||||
指定日解禁市值占未流通市值(解禁前)比例(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,限售类型 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexRestrictedBanAndNrsPercentQj(index_id, begt, endt, vtype)`
|
||||
|
||||
区间解禁市值占未流通市值(解禁前)比例(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `begt` | datetime | 日期,开始日期 |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,限售类型 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexRestrictedBanAndRsPercent(index_id, endt, vtype)`
|
||||
|
||||
指定日解禁市值占流通市值(解禁前)比例(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,限售类型 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexRestrictedBanAndRsPercentQj(index_id, begt, endt, vtype)`
|
||||
|
||||
区间解禁市值占流通市值(解禁前)比例(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `begt` | datetime | 日期,开始日期 |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,限售类型 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexRestrictedBanFutureAndNrsPercentQj(index_id, endt, vtype, dtype)`
|
||||
|
||||
指定日未来解禁市值占未流通市值(解禁前)比例(%),其中未来解禁市值: 小于等于今天(today()):SUM(解禁数量\*收盘价(历史)) 大于今天(today()):SUM(解禁数量\*收盘价(Endt))
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,限售类型 |
|
||||
| `dtype` | int | 用户自定义,区间时间 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexRestrictedBanFutureAndRsPercentQj(index_id, endt, vtype, dtype)`
|
||||
|
||||
指定日未来解禁市值占流通市值(解禁前)比例(%),其中未来解禁市值: 小于等于今天(today()):SUM(解禁数量\*收盘价(历史)) 大于今天(today()):SUM(解禁数量\*收盘价(Endt))
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,限售类型 |
|
||||
| `dtype` | int | 用户自定义,区间时间 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexRestrictedBanFutureMvPercentQj(index_id, endt, vtype, dtype)`
|
||||
|
||||
指定日未来解禁市值占总市值比例(%),其中未来解禁市值: 小于等于今天(today()):SUM(解禁数量\*收盘价(历史)) 大于今天(today()):SUM(解禁数量\*收盘价(Endt))
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,限售类型 |
|
||||
| `dtype` | int | 用户自定义,区间时间 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexRestrictedBanFutureNum(index_id, endt, vtype, dtype)`
|
||||
|
||||
指定日未来解禁家数
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,限售类型 |
|
||||
| `dtype` | int | 用户自定义,区间时间 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexRestrictedBanMv(index_id, endt, vtype)`
|
||||
|
||||
指定日解禁市值(单位:元)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,限售类型 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexRestrictedBanMvPercent(index_id, endt, vtype)`
|
||||
|
||||
指定日解禁市值占总市值比例(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,限售类型 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexRestrictedBanMvqj(index_id, begt, endt, vtype)`
|
||||
|
||||
区间解禁市值(单位:元)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `begt` | datetime | 日期,开始日期 |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,限售类型 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexRestrictedBanNum(index_id, endt, vtype)`
|
||||
|
||||
指定日解禁家数
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,限售类型 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexRestrictedBanNumQj(index_id, begt, endt, vtype)`
|
||||
|
||||
区间解禁家数
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `begt` | datetime | 日期,开始日期 |
|
||||
| `endt` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,限售类型 |
|
||||
|
||||
返回:float
|
||||
@@ -0,0 +1,22 @@
|
||||
# 指数 / 其他
|
||||
|
||||
### `simulateIndex()`
|
||||
|
||||
指数计算基类,作为类被调用时使用。
|
||||
|
||||
返回:any
|
||||
|
||||
### `simulateIndexDemo(index_id, begt, endt, is_dividend, shares_type, stock_weight)`
|
||||
|
||||
指数计算范例.
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| -------------- | -------- | ------------------------ |
|
||||
| `index_id` | string | 指数,指数或行业代码 |
|
||||
| `begt` | datetime | 日期,开始日 |
|
||||
| `endt` | datetime | 日期,截止日 |
|
||||
| `is_dividend` | any | 用户自定义,指数类型 |
|
||||
| `shares_type` | any | 用户自定义,股本数据 |
|
||||
| `stock_weight` | any | 用户自定义,权重因子选择 |
|
||||
|
||||
返回:any
|
||||
@@ -0,0 +1,376 @@
|
||||
# 指数 / 股东增减持
|
||||
|
||||
### `indexHoldersIncreaseComList(index_id, end_t, vtype)`
|
||||
|
||||
获得指数成分股指定日发生大股东增持的股票列表
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `indexHoldersIncreaseComListQj(index_id, beg_t, end_t, vtype)`
|
||||
|
||||
获得指数成分股区间发生大股东增持的股票列表
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `indexHoldersIncreaseComNum(index_id, end_t, vtype)`
|
||||
|
||||
获得指数成分股指定日发生大股东增持的股票个数
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:int
|
||||
|
||||
### `indexHoldersIncreaseComNumQj(index_id, beg_t, end_t, vtype)`
|
||||
|
||||
获得指数成分股区间发生大股东增持的股票个数
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:int
|
||||
|
||||
### `indexHoldersIncreasePercent(index_id, end_t, vtype)`
|
||||
|
||||
获得指数成分股指定日大股东增持占总市值(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexHoldersIncreasePercent2(index_id, end_t, vtype)`
|
||||
|
||||
获得指数成分股指定日大股东增持占流通市值(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexHoldersIncreasePercentQj(index_id, beg_t, end_t, vtype)`
|
||||
|
||||
获得指数成分股区间大股东增持占总市值(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexHoldersIncreasePercentQj2(index_id, beg_t, end_t, vtype)`
|
||||
|
||||
获得指数成分股区间大股东增持占流通市值(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexHoldersIncreaseValue(index_id, end_t, vtype)`
|
||||
|
||||
获得指数成分股指定日大股东增持市值
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexHoldersIncreaseValueQj(index_id, beg_t, end_t, vtype)`
|
||||
|
||||
获得指数成分股区间大股东增持市值
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexHoldersNetChangeComList(index_id, end_t, vtype)`
|
||||
|
||||
获得指数成分股指定日发生大股东净增持的股票列表
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `indexHoldersNetChangeComListQj(index_id, beg_t, end_t, vtype)`
|
||||
|
||||
获得指数成分股区间发生大股东净增持的股票列表
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `indexHoldersNetChangeComNum(index_id, end_t, vtype)`
|
||||
|
||||
获得指数成分股指定日发生大股东净增持的股票个数
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:int
|
||||
|
||||
### `indexHoldersNetChangeComNumQj(index_id, beg_t, end_t, vtype)`
|
||||
|
||||
获得指数成分股区间发生大股东净增持的股票个数
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:int
|
||||
|
||||
### `indexHoldersNetChangePercent(index_id, end_t, vtype)`
|
||||
|
||||
获得指数成分股指定日大股东净增持占总市值(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexHoldersNetChangePercent2(index_id, end_t, vtype)`
|
||||
|
||||
获得指数成分股指定日大股东净增持占流通市值(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexHoldersNetChangePercentQj(index_id, beg_t, end_t, vtype)`
|
||||
|
||||
获得指数成分股区间大股东净增持占总市值(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexHoldersNetChangePercentQj2(index_id, beg_t, end_t, vtype)`
|
||||
|
||||
获得指数成分股区间大股东净增持占流通市值(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexHoldersNetChangeValue(index_id, end_t, vtype)`
|
||||
|
||||
获得指数成分股指定日大股东净增持市值
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexHoldersNetChangeValueQj(index_id, beg_t, end_t, vtype)`
|
||||
|
||||
获得指数成分股区间大股东净增持市值
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexHoldersReduceComList(index_id, end_t, vtype)`
|
||||
|
||||
获得指数成分股指定日发生大股东减持的股票列表
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `indexHoldersReduceComListQj(index_id, beg_t, end_t, vtype)`
|
||||
|
||||
获得指数成分股区间发生大股东减持的股票列表
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `indexHoldersReduceComNum(index_id, end_t, vtype)`
|
||||
|
||||
获得指数成分股指定日发生大股东减持的股票个数
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:int
|
||||
|
||||
### `indexHoldersReduceComNumQj(index_id, beg_t, end_t, vtype)`
|
||||
|
||||
获得指数成分股区间发生大股东减持的股票个数
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:int
|
||||
|
||||
### `indexHoldersReducePercent(index_id, end_t, vtype)`
|
||||
|
||||
获得指数成分股指定日大股东减持占总市值(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexHoldersReducePercent2(index_id, end_t, vtype)`
|
||||
|
||||
获得指数成分股指定日大股东减持占流通市值(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexHoldersReducePercentQj(index_id, beg_t, end_t, vtype)`
|
||||
|
||||
获得指数成分股区间大股东减持占总市值(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexHoldersReducePercentQj2(index_id, beg_t, end_t, vtype)`
|
||||
|
||||
获得指数成分股区间大股东减持占流通市值(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexHoldersReduceValue(index_id, end_t, vtype)`
|
||||
|
||||
获得指数成分股指定日大股东减持市值
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexHoldersReduceValueQj(index_id, beg_t, end_t, vtype)`
|
||||
|
||||
获得指数成分股区间大股东减持市值
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `vtype` | int | 用户自定义,变动原因 |
|
||||
|
||||
返回:float
|
||||
@@ -0,0 +1,167 @@
|
||||
# 指数 / 估值指标
|
||||
|
||||
### `indexCallDp(right_type, sample_select, criterion, r_date_type)`
|
||||
|
||||
实时计算指数股息率DP(%),与系统证券、时间相关。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------- |
|
||||
| `right_type` | any | 加权方式,整型,取值如下 |
|
||||
| `sample_select` | any | 样本股选择,具体取值如下: |
|
||||
| `criterion` | float | 实数,绩差股标准,和参数SampleSelect结合使用。 |
|
||||
| `r_date_type` | any | 整型,报告期类型,具体取值如下: |
|
||||
|
||||
返回:array
|
||||
|
||||
### `indexCallPb(right_type, sample_select, criterion, r_date_type)`
|
||||
|
||||
实时计算指数市净率PB,与系统证券、时间相关。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------- |
|
||||
| `right_type` | any | 加权方式,整型,取值如下 |
|
||||
| `sample_select` | any | 样本股选择,具体取值如下: |
|
||||
| `criterion` | float | 实数,绩差股标准,和参数SampleSelect结合使用。 |
|
||||
| `r_date_type` | any | 整型,报告期类型,具体取值如下: |
|
||||
|
||||
返回:array
|
||||
|
||||
### `indexCallPcf(right_type, sample_select, criterion, r_date_type)`
|
||||
|
||||
实时计算指数市现率PCF,与系统证券、时间相关。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------- |
|
||||
| `right_type` | any | 加权方式,整型,取值如下 |
|
||||
| `sample_select` | any | 样本股选择,具体取值如下: |
|
||||
| `criterion` | float | 实数,绩差股标准,和参数SampleSelect结合使用。 |
|
||||
| `r_date_type` | any | 整型,报告期类型,具体取值如下: |
|
||||
|
||||
返回:array
|
||||
|
||||
### `indexCallPe(right_type, sample_select, criterion, r_date_type)`
|
||||
|
||||
实时计算指数市盈率PE,与系统证券、时间相关。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------- |
|
||||
| `right_type` | any | 加权方式,整型,取值如下 |
|
||||
| `sample_select` | any | 样本股选择,具体取值如下: |
|
||||
| `criterion` | float | 实数,绩差股标准,和参数SampleSelect结合使用。 |
|
||||
| `r_date_type` | any | 整型,报告期类型,具体取值如下: |
|
||||
|
||||
返回:array
|
||||
|
||||
### `indexCallPsr(right_type, sample_select, criterion, r_date_type)`
|
||||
|
||||
实时计算指数市销率PSR,与系统证券、时间相关。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ----- | ---------------------------------------------- |
|
||||
| `right_type` | any | 加权方式,整型,取值如下 |
|
||||
| `sample_select` | any | 样本股选择,具体取值如下: |
|
||||
| `criterion` | float | 实数,绩差股标准,和参数SampleSelect结合使用。 |
|
||||
| `r_date_type` | any | 整型,报告期类型,具体取值如下: |
|
||||
|
||||
返回:array
|
||||
|
||||
### `indexPb2(right_type, sample_select)`
|
||||
|
||||
指定日市净率(最新年报),与系统参数(证券代码,时间)相关。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ---- | --------------------------------- |
|
||||
| `right_type` | any | 用户自定义。加权方式,取值如下: |
|
||||
| `sample_select` | any | 用户自定义。样本股选择,取值如下: |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexPcf(right_type, sample_select)`
|
||||
|
||||
提取指定日的指数市现率,与系统参数(证券代码,时间)相关。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ---- | -------------------------------------- |
|
||||
| `right_type` | any | 加权方式,0为总股本加权,1为中位数 |
|
||||
| `sample_select` | any | 样本股选择,0为全部样本股,1为剔除亏损 |
|
||||
|
||||
返回:any
|
||||
|
||||
### `indexPcf2(right_type, sample_select)`
|
||||
|
||||
指定日市现率(最新年报),与系统参数(证券代码,时间)相关。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ---- | --------------------------------- |
|
||||
| `right_type` | any | 用户自定义。加权方式,取值如下: |
|
||||
| `sample_select` | any | 用户自定义。样本股选择,取值如下: |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexPe(right_type, sample_select)`
|
||||
|
||||
提取指定日的指数市盈率,与系统参数(证券代码,时间)相关。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ---- | -------------------------------------- |
|
||||
| `right_type` | any | 加权方式,0为总股本加权,1为中位数 |
|
||||
| `sample_select` | any | 样本股选择,0为全部样本股,1为剔除亏损 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexPe2(right_type, sample_select)`
|
||||
|
||||
指定日市盈率(最新年报),与系统参数(证券代码,时间)相关。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ---- | --------------------------------- |
|
||||
| `right_type` | any | 用户自定义。加权方式,取值如下: |
|
||||
| `sample_select` | any | 用户自定义。样本股选择,取值如下: |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexPsr(right_type, sample_select)`
|
||||
|
||||
提取指定日的指数市销率,与系统参数(证券代码,时间)相关。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ---- | -------------------------------------- |
|
||||
| `right_type` | any | 加权方式,0为总股本加权,1为中位数 |
|
||||
| `sample_select` | any | 样本股选择,0为全部样本股,1为剔除亏损 |
|
||||
|
||||
返回:any
|
||||
|
||||
### `indexPsr2(right_type, sample_select)`
|
||||
|
||||
指定日市销率(最新年报),与系统参数(证券代码,时间)相关。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ---- | --------------------------------- |
|
||||
| `right_type` | any | 用户自定义。加权方式,取值如下: |
|
||||
| `sample_select` | any | 用户自定义。样本股选择,取值如下: |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexValFirstday()`
|
||||
|
||||
指数估值衍生开始日,与系统参数(证券代码)相关。
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexValLastUpday()`
|
||||
|
||||
指数估值衍生实际计算日期,与系统参数(证券代码)相关。
|
||||
|
||||
返回:float|datetime
|
||||
|
||||
### `indexValue(right_type, sample_select, index_type)`
|
||||
|
||||
指数估值中间函数,与系统参数(证券代码,时间)相关。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ---- | --------------------- |
|
||||
| `right_type` | any | 用户自定义。取值如下: |
|
||||
| `sample_select` | any | 用户自定义。取值如下: |
|
||||
| `index_type` | any | 用户自定义。取值如下: |
|
||||
|
||||
返回:float
|
||||
@@ -0,0 +1,88 @@
|
||||
# 指数 / 估值走势和百分位
|
||||
|
||||
### `getIndexValuePct(index_id, begt, endt, cycle, right_type, sample_select, types, r_date_type, grid_no)`
|
||||
|
||||
指定日指数PE/PB/PCF/PMI(最近12个月)估值百分位。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | -------- | --------------------------------- |
|
||||
| `index_id` | string | 字符串。指数代码 |
|
||||
| `begt` | datetime | 日期。开始日 |
|
||||
| `endt` | datetime | 日期。截止日 |
|
||||
| `cycle` | int | 用户自定义。周期,取值如下: |
|
||||
| `right_type` | int | 用户自定义。加权方式,取值如下: |
|
||||
| `sample_select` | int | 用户自定义。样本股选择,取值如下: |
|
||||
| `types` | int | 用户自定义。类型,取值如下: |
|
||||
| `r_date_type` | int | 用户自定义。报告期类型,取值如下: |
|
||||
| `grid_no` | int | 整数。网格数 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `indexPepbpmipna12CallDbFirst(end_t, right_type, s_type, sample_select, criterion, _type, r_date_type)`
|
||||
|
||||
指数PE/PB/PCF/PMI(最近12个月)。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | -------- | --------------------------------- |
|
||||
| `end_t` | datetime | 日期。截止日期 |
|
||||
| `right_type` | any | 用户自定义。加权方式,取值如下: |
|
||||
| `s_type` | any | 用户自定义。股票类型,取值如下: |
|
||||
| `sample_select` | any | 用户自定义。样本股选择,取值如下: |
|
||||
| `criterion` | float | 实数。绩差股标准 |
|
||||
| `_type` | any | 用户自定义。类型,取值如下: |
|
||||
| `r_date_type` | any | 用户自定义。报告期类型,取值如下: |
|
||||
|
||||
返回:float
|
||||
|
||||
### `tsflIndexValuePctSeries(index_id, begt, endt, cycle, n, right_type, sample_select, types, r_date_type, grid_no)`
|
||||
|
||||
研究指数PE/PB/PCF/PMI(最近12个月)序列、估值百分位与指数走势之间的关系。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | -------- | --------------------------------- |
|
||||
| `index_id` | string | 字符串。指数代码 |
|
||||
| `begt` | datetime | 日期。开始日 |
|
||||
| `endt` | datetime | 日期。截止日 |
|
||||
| `cycle` | any | 用户自定义。周期,取值如下: |
|
||||
| `n` | any | 整数。过去N个交易日 |
|
||||
| `right_type` | any | 用户自定义。加权方式,取值如下: |
|
||||
| `sample_select` | any | 用户自定义。样本股选择,取值如下: |
|
||||
| `types` | any | 用户自定义。类型,取值如下: |
|
||||
| `r_date_type` | any | 用户自定义。报告期类型,取值如下: |
|
||||
| `grid_no` | any | 整数。网格数 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `valuePctSeriesFrame(index_id, begt, endt, cycle, n, val_fun, field, grid_no, if_close)`
|
||||
|
||||
计算区间估值百分位序列。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 字符串。指数代码 |
|
||||
| `begt` | datetime | 日期。开始日 |
|
||||
| `endt` | datetime | 日期。截止日 |
|
||||
| `cycle` | any | 用户自定义。周期,取值如下: |
|
||||
| `n` | any | 整数。前移N个数据百分位 |
|
||||
| `val_fun` | string | 字符串。估值计算公式 |
|
||||
| `field` | string | 字符串。估值指标名称 |
|
||||
| `grid_no` | any | 整数。网格数 |
|
||||
| `if_close` | any | 整数。是否添加行情数据 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `valueSeriesFrame(index_id, begt, endt, cycle, val_fun, field, grid_no)`
|
||||
|
||||
计算区间估值序列。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | --------------------------- |
|
||||
| `index_id` | string | 字符串。指数代码 |
|
||||
| `begt` | datetime | 日期。开始日 |
|
||||
| `endt` | datetime | 日期。截止日 |
|
||||
| `cycle` | int | 用户自定义。周期,取值如下: |
|
||||
| `val_fun` | string | 字符串。估值计算公式 |
|
||||
| `field` | string | 字符串。估值指标名称 |
|
||||
| `grid_no` | int | 整数。网格数 |
|
||||
|
||||
返回:array
|
||||
Reference in New Issue
Block a user