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