📦 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,80 @@
# 金融 / 债券 / 债券收益率 / 应计利息
## `bondAccruedInterest5(par, coupon, t)`
声明:function
返回交易所债券-周期性付息或者到期一次还本付息的应计利息
<!-- tags: 金融 债券 债券收益率 应计利息 返回 获取 -->
| 参数 | 类型 | 说明 |
| -------- | ----- | ----------------- |
| `par` | float | 实数。剩余本金 |
| `coupon` | float | 实数。本期利率(%) |
| `t` | int | 整数。已计息天数 |
返回:float
## `bondCouponExt(settlement_date)`
声明:function
返回债券-结算日票面利率,与系统股票pn_stock()有关
<!-- tags: 金融 债券 债券收益率 应计利息 返回 获取 -->
| 参数 | 类型 | 说明 |
| ----------------- | -------- | ---------------- |
| `settlement_date` | datetime | 日期类型,结算日 |
返回:float
### 示例
范例01:调用函数
```tsl
Setsysparam(pn_Stock(), "BK000000");
return BondCouponExt(20120703T);
```
## `bondFutureValue()`
声明:function
返回到期兑付日债券本息和,与系统股票pn_stock()有关
<!-- tags: 金融 债券 债券收益率 应计利息 返回 获取 -->
返回:real
### 示例
范例01:调用函数
```tsl
// 返回' BK000002'的到期兑付日债券本息和
setSysParam(PN_Stock(), 'BK000002');
return bondFutureValue();
// 输出:102.8
```
## `mid_bondAccruedInterest(endt, cash_flow, f, pd, option, method_type)`
声明:function
返回 MID_BondAccruedInterest 对应的数据
<!-- tags: 金融 债券 债券收益率 应计利息 返回 获取 -->
| 参数 | 类型 | 说明 |
| ------------- | -------- | ------------------------------- |
| `endt` | datetime | 日期。指定日期 |
| `cash_flow` | array | 数组。指定日期未来现金流 |
| `f` | integer | 整数。付息频率 |
| `pd` | float | 实数。发行价 |
| `option` | integer | 用户自定义。返回类型,取值如下: |
| `method_type` | integer | 用户自定义。调用类型,取值如下: |
返回:float