BondTermStructureOfYieldToMaturity
简述
指定日指定期限的到期收益率,与系统参数(证券代码)相关。
BondTermStructureOfYieldToMaturity(EndT:TDateTime;RemainDuration:Real):real
| 名称 | 类型 | 说明 |
|---|
| EndT | TDateTime | 日期,截止日期 |
| RemainDuration | Real | 实数,剩余期限(年) |
| 返回 | real | 指定日指定期限的到期收益率 |
获取BTS000033(中证指数国债收益率曲线)在2017-03-01的10年期到期收益率
setsysparam(pn_stock(),'BTS000033');
return BondTermStructureOfYieldToMaturity(20170301T,10);
//返回:3.33