Mirror docs/tsl/codegen into the bundled tsl-api-reference skill and rebuild the function index. Remove invalid duplicate API entries for cb_delistedbydate, createhttpsession, exportJsonString, and Anova_Bartlett so exact lookup returns the canonical entries.
1.1 KiB
1.1 KiB
债券 / 债券派息和利率
bondCashflow(begt, endt, option)
债券在指定日或者时间区间对应的现金流数据。 备注: 债券未来现金流中调用时日期需+1,表示提取的未来现金流
| 参数 | 类型 | 说明 |
|---|---|---|
begt |
datetime | 起始日期 |
endt |
datetime | 截止日期 |
option |
int | 是否行权 |
返回:array
示例
债券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