# 金融函数 - 指数 / 估值指标 ## 函数 ### `indexPe(right_type, sample_select)` 提取指定日的指数市盈率,与系统参数(证券代码,时间)相关。 | 参数 | 类型 | 说明 | | --------------- | ---- | -------------------------------------- | | `right_type` | any | 加权方式,0为总股本加权,1为中位数 | | `sample_select` | any | 样本股选择,0为全部样本股,1为剔除亏损 | 返回:float ### `indexPe(right_type, sample_select)` 提取指定日的指数市净率,与系统参数(证券代码,时间)相关。 | 参数 | 类型 | 说明 | | --------------- | ---- | -------------------------------------- | | `right_type` | any | 加权方式,0为总股本加权,1为中位数 | | `sample_select` | any | 样本股选择,0为全部样本股,1为剔除亏损 | 返回:float ### `indexPsr(right_type, sample_select)` 提取指定日的指数市销率,与系统参数(证券代码,时间)相关。 | 参数 | 类型 | 说明 | | --------------- | ---- | -------------------------------------- | | `right_type` | any | 加权方式,0为总股本加权,1为中位数 | | `sample_select` | any | 样本股选择,0为全部样本股,1为剔除亏损 | 返回:any ### `indexPcf(right_type, sample_select)` 提取指定日的指数市现率,与系统参数(证券代码,时间)相关。 | 参数 | 类型 | 说明 | | --------------- | ---- | -------------------------------------- | | `right_type` | any | 加权方式,0为总股本加权,1为中位数 | | `sample_select` | any | 样本股选择,0为全部样本股,1为剔除亏损 | 返回:any ### `indexPe2(right_type, sample_select)` 指定日市盈率(最新年报),与系统参数(证券代码,时间)相关。 | 参数 | 类型 | 说明 | | --------------- | ---- | --------------------------------- | | `right_type` | any | 用户自定义。加权方式,取值如下: | | `sample_select` | any | 用户自定义。样本股选择,取值如下: | 返回:float ### `indexPcf2(right_type, sample_select)` 指定日市现率(最新年报),与系统参数(证券代码,时间)相关。 | 参数 | 类型 | 说明 | | --------------- | ---- | --------------------------------- | | `right_type` | any | 用户自定义。加权方式,取值如下: | | `sample_select` | any | 用户自定义。样本股选择,取值如下: | 返回:float ### `indexPsr2(right_type, sample_select)` 指定日市销率(最新年报),与系统参数(证券代码,时间)相关。 | 参数 | 类型 | 说明 | | --------------- | ---- | --------------------------------- | | `right_type` | any | 用户自定义。加权方式,取值如下: | | `sample_select` | any | 用户自定义。样本股选择,取值如下: | 返回:float ### `indexPb2(right_type, sample_select)` 指定日市净率(最新年报),与系统参数(证券代码,时间)相关。 | 参数 | 类型 | 说明 | | --------------- | ---- | --------------------------------- | | `right_type` | any | 用户自定义。加权方式,取值如下: | | `sample_select` | any | 用户自定义。样本股选择,取值如下: | 返回:float ### `indexValue(right_type, sample_select, index_type)` 指数估值中间函数,与系统参数(证券代码,时间)相关。 | 参数 | 类型 | 说明 | | --------------- | ---- | --------------------- | | `right_type` | any | 用户自定义。取值如下: | | `sample_select` | any | 用户自定义。取值如下: | | `index_type` | any | 用户自定义。取值如下: | 返回:float ### `indexValFirstday()` 指数估值衍生开始日,与系统参数(证券代码)相关。 返回:float ### `indexValLastUpday()` 指数估值衍生实际计算日期,与系统参数(证券代码)相关。 返回:float|datetime