📦 deps(tsl): sync tsl-playbook from a71480a4

Source-Commit: a71480a4ae
This commit is contained in:
ci[bot]
2026-08-12 08:38:08 +08:00
parent 683f83d17c
commit 670ba950a6
1496 changed files with 292667 additions and 220122 deletions
@@ -0,0 +1,82 @@
# 金融 / 债券 / 债券估值
## `bdV_accruedInterest(dbtype)`
声明:function
返回债券估值-应计利息,与系统证券pn_stock()和时间pn_date()有关
<!-- tags: 金融 债券 债券估值 返回 获取 -->
| 参数 | 类型 | 说明 |
| -------- | ------- | ------------------------------------- |
| `dbtype` | integer | 用户自定义,数据供应商ID,含义如下表: |
返回:float
### 示例
范例01:返回“SH010107”在2018年5月27日,数据供应商为中证的债券估值-应计利息
```tsl
Setsysparam(pn_Stock(), "SH010107");
SetSysParam(PN_Date(), 20180527T);
return bdV_AccruedInterest(0);
// 输出:1.3422
```
## `bdV_convexity(dbtype)`
声明:function
返回债券估值-凸性,与系统证券pn_stock()和时间pn_date()有关
<!-- tags: 金融 债券 债券估值 返回 获取 -->
| 参数 | 类型 | 说明 |
| -------- | ------- | ------------------------------------- |
| `dbtype` | integer | 用户自定义,数据供应商ID,含义如下表: |
返回:float
### 示例
范例01:返回“SH010107”在2018年5月27日的债券估值-凸性
```tsl
Setsysparam(pn_Stock(), "SH010107");
SetSysParam(PN_Date(), 20180527T);
ReturnbdV_Convexity(0);
// 输出:5.1931
```
## `bdV_modifiedDuration(dbtype)`
声明:function
返回债券估值-修正久期,与系统证券pn_stock()和时间pn_date()有关
<!-- tags: 金融 债券 债券估值 返回 获取 -->
| 参数 | 类型 | 说明 |
| -------- | ------- | ------------------------------------- |
| `dbtype` | integer | 用户自定义,数据供应商ID,含义如下表: |
返回:float
### 示例
范例01:返回“SH010107”在2018年5月27日,数据供应商为中证的债券估值-修正久期
```tsl
Setsysparam(pn_Stock(), "SH010107");
SetSysParam(PN_Date(), 20180527T);
return bdV_ModifiedDuration(0);
// 输出:2.9245
```