Files
playbook/skills/tsl-api-reference/references/codegen/dotnet/indices/valuation.md
T
csh c0bf0358e0 📝 docs(tsl): sync api skill with corrected codegen
Mirror docs/tsl/codegen into the bundled tsl-api-reference skill and rebuild the function index.

Remove invalid duplicate API entries for cb_delistedbydate, createhttpsession, exportJsonString, and Anova_Bartlett so exact lookup returns the canonical entries.
2026-07-07 16:47:03 +08:00

168 lines
7.0 KiB
Markdown

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