Files
playbook/skills/tsl-api-reference/references/codegen/dotnet/indices/financials.md
T
csh e1f7ce052c feat(skills): add tsl api reference skill
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.
2026-07-07 16:36:15 +08:00

4.2 KiB
Raw Blame History

指数 / 财务指标

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