Files
playbook/skills/tsl-api-reference/references/codegen/dotnet/indices/valuation.md
T
csh 13be5ea0aa 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.
2026-07-29 15:47:46 +08:00

198 lines
7.3 KiB
Markdown

# 指数 / 估值指标
## `Index_CallDP(right_type, sample_select, criterion, r_date_type)`
声明:function
实时计算指数股息率DP(%),与系统证券、时间相关。
| 参数 | 类型 | 说明 |
| --------------- | ----- | ---------------------------------------------- |
| `right_type` | any | 加权方式,整型,取值如下 |
| `sample_select` | any | 样本股选择,具体取值如下: |
| `criterion` | float | 实数,绩差股标准,和参数SampleSelect结合使用。 |
| `r_date_type` | any | 整型,报告期类型,具体取值如下: |
返回:array
## `Index_CallPB(right_type, sample_select, criterion, r_date_type)`
声明:function
实时计算指数市净率PB,与系统证券、时间相关。
| 参数 | 类型 | 说明 |
| --------------- | ----- | ---------------------------------------------- |
| `right_type` | any | 加权方式,整型,取值如下 |
| `sample_select` | any | 样本股选择,具体取值如下: |
| `criterion` | float | 实数,绩差股标准,和参数SampleSelect结合使用。 |
| `r_date_type` | any | 整型,报告期类型,具体取值如下: |
返回:array
## `Index_CallPCF(right_type, sample_select, criterion, r_date_type)`
声明:function
实时计算指数市现率PCF,与系统证券、时间相关。
| 参数 | 类型 | 说明 |
| --------------- | ----- | ---------------------------------------------- |
| `right_type` | any | 加权方式,整型,取值如下 |
| `sample_select` | any | 样本股选择,具体取值如下: |
| `criterion` | float | 实数,绩差股标准,和参数SampleSelect结合使用。 |
| `r_date_type` | any | 整型,报告期类型,具体取值如下: |
返回:array
## `Index_CallPE(right_type, sample_select, criterion, r_date_type)`
声明:function
实时计算指数市盈率PE,与系统证券、时间相关。
| 参数 | 类型 | 说明 |
| --------------- | ----- | ---------------------------------------------- |
| `right_type` | any | 加权方式,整型,取值如下 |
| `sample_select` | any | 样本股选择,具体取值如下: |
| `criterion` | float | 实数,绩差股标准,和参数SampleSelect结合使用。 |
| `r_date_type` | any | 整型,报告期类型,具体取值如下: |
返回:array
## `Index_CallPSR(right_type, sample_select, criterion, r_date_type)`
声明:function
实时计算指数市销率PSR,与系统证券、时间相关。
| 参数 | 类型 | 说明 |
| --------------- | ----- | ---------------------------------------------- |
| `right_type` | any | 加权方式,整型,取值如下 |
| `sample_select` | any | 样本股选择,具体取值如下: |
| `criterion` | float | 实数,绩差股标准,和参数SampleSelect结合使用。 |
| `r_date_type` | any | 整型,报告期类型,具体取值如下: |
返回:array
## `Index_PB2(right_type, sample_select)`
声明:function
指定日市净率(最新年报),与系统参数(证券代码,时间)相关。
| 参数 | 类型 | 说明 |
| --------------- | ---- | --------------------------------- |
| `right_type` | any | 用户自定义。加权方式,取值如下: |
| `sample_select` | any | 用户自定义。样本股选择,取值如下: |
返回:float
## `Index_PCF(right_type, sample_select)`
声明:function
提取指定日的指数市现率,与系统参数(证券代码,时间)相关。
| 参数 | 类型 | 说明 |
| --------------- | ---- | -------------------------------------- |
| `right_type` | any | 加权方式,0为总股本加权,1为中位数 |
| `sample_select` | any | 样本股选择,0为全部样本股,1为剔除亏损 |
返回:any
## `Index_PCF2(right_type, sample_select)`
声明:function
指定日市现率(最新年报),与系统参数(证券代码,时间)相关。
| 参数 | 类型 | 说明 |
| --------------- | ---- | --------------------------------- |
| `right_type` | any | 用户自定义。加权方式,取值如下: |
| `sample_select` | any | 用户自定义。样本股选择,取值如下: |
返回:float
## `Index_PE(right_type, sample_select)`
声明:function
提取指定日的指数市盈率,与系统参数(证券代码,时间)相关。
| 参数 | 类型 | 说明 |
| --------------- | ---- | -------------------------------------- |
| `right_type` | any | 加权方式,0为总股本加权,1为中位数 |
| `sample_select` | any | 样本股选择,0为全部样本股,1为剔除亏损 |
返回:float
## `Index_PE2(right_type, sample_select)`
声明:function
指定日市盈率(最新年报),与系统参数(证券代码,时间)相关。
| 参数 | 类型 | 说明 |
| --------------- | ---- | --------------------------------- |
| `right_type` | any | 用户自定义。加权方式,取值如下: |
| `sample_select` | any | 用户自定义。样本股选择,取值如下: |
返回:float
## `Index_PSR(right_type, sample_select)`
声明:function
提取指定日的指数市销率,与系统参数(证券代码,时间)相关。
| 参数 | 类型 | 说明 |
| --------------- | ---- | -------------------------------------- |
| `right_type` | any | 加权方式,0为总股本加权,1为中位数 |
| `sample_select` | any | 样本股选择,0为全部样本股,1为剔除亏损 |
返回:any
## `Index_PSR2(right_type, sample_select)`
声明:function
指定日市销率(最新年报),与系统参数(证券代码,时间)相关。
| 参数 | 类型 | 说明 |
| --------------- | ---- | --------------------------------- |
| `right_type` | any | 用户自定义。加权方式,取值如下: |
| `sample_select` | any | 用户自定义。样本股选择,取值如下: |
返回:float
## `Index_Val_Firstday()`
声明:function
指数估值衍生开始日,与系统参数(证券代码)相关。
返回:float
## `Index_Val_LastUpday()`
声明:function
指数估值衍生实际计算日期,与系统参数(证券代码)相关。
返回:float|datetime
## `Index_Value(right_type, sample_select, index_type)`
声明:function
指数估值中间函数,与系统参数(证券代码,时间)相关。
| 参数 | 类型 | 说明 |
| --------------- | ---- | --------------------- |
| `right_type` | any | 用户自定义。取值如下: |
| `sample_select` | any | 用户自定义。取值如下: |
| `index_type` | any | 用户自定义。取值如下: |
返回:float