yield_to_maturity 函数
求使固定票息债券价格成立的周期到期收益率。
语法
Finance:-YieldToMaturity(price, faceValue, couponRate, periods)yield_to_maturity(price, faceValue, couponRate, periods)
参数与选项
price | 观测到的债券价格。 |
|---|---|
faceValue | 到期偿还的本金。 |
couponRate | 票息占面值的比例。 |
periods | 正整数票息期数。 |
示例
- 债券收益率
Finance:-YieldToMaturity(1027.23248029, 1000, 0.06, 3)返回 0.05。