Files
playbook/docs/tsl/codegen/dotnet/bond/coupon_rate.md
T
csh b6160676b4 ♻️ refactor(tsl): rebuild codegen taxonomy
Move generated builtin and dotnet function docs into the upgraded taxonomy, remove legacy route pages, and regenerate function_index.tsv from markdown headings.
2026-07-07 16:36:08 +08:00

47 lines
1.1 KiB
Markdown

# 债券 / 债券派息和利率
### `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