📦 deps(tsl): sync tsl-playbook from 9dbd156d

Source-Commit: 9dbd156d0e
This commit is contained in:
ci[bot]
2026-07-07 08:44:07 +00:00
commit a2d9174549
524 changed files with 393502 additions and 0 deletions
@@ -0,0 +1,144 @@
# 板块 / 板块评估
## `Bk_Alpha(index_id, beg_t, end_t, right_type)`
板块Alpha
| 参数 | 类型 | 说明 |
| ------------ | -------- | ----------------------- |
| `index_id` | string | 指数代码 |
| `beg_t` | datetime | 起始日期 |
| `end_t` | datetime | 截止日期 |
| `right_type` | any | 加权方式,具体取值如下: |
返回:float
## `Bk_AppraisalRatio(index_id, beg_t, end_t, right_type)`
板块指定日估价比率,当前板块通过setsysparam(pn_bk(),bkname)进行设置,其中bkname为当前板块名称。
| 参数 | 类型 | 说明 |
| ------------ | -------- | -------------------- |
| `index_id` | string | 指数,指数代码 |
| `beg_t` | datetime | 日期,起始日期 |
| `end_t` | datetime | 日期,截止日期 |
| `right_type` | any | 用户自定义,加权方式 |
返回:string
## `Bk_Beta(index_id, beg_t, end_t, right_type)`
板块Beta
| 参数 | 类型 | 说明 |
| ------------ | -------- | ----------------------- |
| `index_id` | string | 指数代码 |
| `beg_t` | datetime | 起始日期 |
| `end_t` | datetime | 截止日期 |
| `right_type` | any | 加权方式,具体取值如下: |
返回:float
## `Bk_Correlation(index_id, beg_t, end_t, right_type)`
板块与指数的相关系数
| 参数 | 类型 | 说明 |
| ------------ | -------- | ----------------------- |
| `index_id` | string | 指数代码 |
| `beg_t` | datetime | 起始日期 |
| `end_t` | datetime | 截止日期 |
| `right_type` | any | 加权方式,具体取值如下: |
返回:float
## `Bk_JensenMeasure(index_id, beg_t, end_t, right_type)`
板块Jense指数
| 参数 | 类型 | 说明 |
| ------------ | -------- | ----------------------- |
| `index_id` | string | 指数代码 |
| `beg_t` | datetime | 起始日期 |
| `end_t` | datetime | 截止日期 |
| `right_type` | any | 加权方式,具体取值如下: |
返回:float
## `Bk_Measure(index_id, beg_t, end_t, right_type, rf)`
板块评估,计算板块平均涨幅、Alpha、Beta、sharp、Treynor﹑AppraisalRatio等
| 参数 | 类型 | 说明 |
| ------------ | -------- | ----------------------- |
| `index_id` | string | 指数代码 |
| `beg_t` | datetime | 起始日期 |
| `end_t` | datetime | 截止日期 |
| `right_type` | any | 加权方式,具体取值如下: |
| `rf` | float | 无风险收益率(%) |
返回:array
## `Bk_ResidualRisk(index_id, beg_t, end_t, right_type)`
板块残差标准差(非系统风险)
| 参数 | 类型 | 说明 |
| ------------ | -------- | ----------------------- |
| `index_id` | string | 指数代码 |
| `beg_t` | datetime | 起始日期 |
| `end_t` | datetime | 截止日期 |
| `right_type` | any | 加权方式,具体取值如下: |
返回:float
## `Bk_SharpMeasure(index_id, beg_t, end_t, right_type)`
板块Sharp指数
| 参数 | 类型 | 说明 |
| ------------ | -------- | ----------------------- |
| `index_id` | string | 指数代码 |
| `beg_t` | datetime | 起始日期 |
| `end_t` | datetime | 截止日期 |
| `right_type` | any | 加权方式,具体取值如下: |
返回:float
## `Bk_StdDev(index_id, beg_t, end_t, right_type)`
板块标准差(系统风险)
| 参数 | 类型 | 说明 |
| ------------ | -------- | ----------------------- |
| `index_id` | string | 指数代码 |
| `beg_t` | datetime | 起始日期 |
| `end_t` | datetime | 截止日期 |
| `right_type` | any | 加权方式,具体取值如下: |
返回:float
## `Bk_TreynorMeasure(index_id, beg_t, end_t, right_type)`
板块Treynor指数
| 参数 | 类型 | 说明 |
| ------------ | -------- | ----------------------- |
| `index_id` | string | 指数代码 |
| `beg_t` | datetime | 起始日期 |
| `end_t` | datetime | 截止日期 |
| `right_type` | any | 加权方式,具体取值如下: |
返回:float
## `Bk_ZfMatrix(beg_t, end_t, right_type)`
板块收益率,与系统参数(板块)相关。
| 参数 | 类型 | 说明 |
| ------------ | -------- | ------------------------------- |
| `beg_t` | datetime | 日期。开始日期 |
| `end_t` | datetime | 日期。截止日期 |
| `right_type` | any | 用户自定义。加权方式,取值如下: |
返回:array