📦 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,41 @@
# 金融 / 债券 / 债券收益率曲线 / 中间函数
## `getBondSYLQKByTypeAndYears(begt, endt, ayear, p_bond_id)`
声明:function
返回区间债券对应年期的到期收益率
<!-- tags: 金融 债券 债券收益率曲线 中间函数 返回 获取 -->
| 参数 | 类型 | 说明 |
| ----------- | -------- | -------------------- |
| `begt` | datetime | 日期。起始日期 |
| `endt` | datetime | 日期。截止日期 |
| `ayear` | float | 实数。年限 |
| `p_bond_id` | string | 字符串。债券种类代码 |
返回:array
### 示例
范例01:调用 GetBondSYLQKByTypeAndYears
```tsl
return GetBondSYLQKByTypeAndYears(20150101T, 20181231T, 10, 'BTS000033');
```
## `getBondTermStructureByRemainDuration(type, remain_duration)`
声明:function
返回指定日指定剩余期限债券收益率数据,与系统股票相关
<!-- tags: 金融 债券 债券收益率曲线 中间函数 返回 获取 -->
| 参数 | 类型 | 说明 |
| ----------------- | ----- | --------------------------------------- |
| `type` | int | 用户自定义,收益率曲线类型,其取值如下: |
| `remain_duration` | float | 实数,剩余期限(年) |
返回:float