Bundle the TSL API index and markdown references under the skill, route TSL docs to use it, and update the codegen index generator to maintain the bundled data.
4.5 KiB
4.5 KiB
指数 / 估值走势和百分位
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