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.
This commit is contained in:
csh
2026-07-07 16:36:15 +08:00
parent 4cd6b9410f
commit e1f7ce052c
267 changed files with 185908 additions and 11996 deletions
@@ -0,0 +1,46 @@
# 债券 / 债券派息和利率
### `bondCashflow(begt, endt, option)`
债券在指定日或者时间区间对应的现金流数据。 备注: 债券未来现金流中调用时日期需+1,表示提取的未来现金流
| 参数 | 类型 | 说明 |
| -------- | -------- | -------- |
| `begt` | datetime | 起始日期 |
| `endt` | datetime | 截止日期 |
| `option` | int | 是否行权 |
返回:array
#### 示例
```tsl
债券SH010107在20170731T的现金流
Endt:=20170731T;
Setsysparam(pn_Stock(),”SH010107”);
Return BondCashFlow(Endt);
```
### `bondCashflowHistroy(beg_t, end_t, option)`
指定区间的历史现金流
| 参数 | 类型 | 说明 |
| -------- | ---------- | ------------------------ |
| `beg_t` | datetime | 日期,开始日 |
| `end_t` | datetime | 日期,截止日 |
| `option` | UserDefine | 用户自定义,是否考虑行权 |
返回:array
### `bondLastPeriodInterest()`
最后一期利息(公布日相关)
返回:int
### `bondSumofInterest()`
债券到期支付的利息和
返回:float