Bond_GSpread
简述
债券的名义利差(G-Spread)
Bond_GSpread(EndT:datetime;BTSID:string;RateType:int):real;
| 名称 | 类型 | 说明 |
|---|
| Endt | datetime | datetime,截止日 |
| BTSID | string | string,债券收益率曲线ID,默认取BTS000033(国债) |
| RateType | int | int,收益率曲线类型,参数详情如下:
|
Value |
含义 | |
1 |
即期利率(%) | |
2 |
到期收益率(%)(默认) | |
3 |
远期利率(%) |
|
| 返回 | real | Real,债券的名义利差(G-Spread) |
个券到期收益率与同期限基准曲线收益率的差值
Setsysparam(PN_Stock(),'SH194037');
endt:=20230103T;
return Bond_GSpread(EndT,'BTS000033',2);
//执行结果:1.16479423315908