2.2 KiB
2.2 KiB
金融 / 债券 / 债券收益率 / 应计利息
bondAccruedInterest5(par, coupon, t)
声明:function
返回交易所债券-周期性付息或者到期一次还本付息的应计利息
| 参数 | 类型 | 说明 |
|---|---|---|
par |
float | 实数。剩余本金 |
coupon |
float | 实数。本期利率(%) |
t |
int | 整数。已计息天数 |
返回:float
bondCouponExt(settlement_date)
声明:function
返回债券-结算日票面利率,与系统股票pn_stock()有关
| 参数 | 类型 | 说明 |
|---|---|---|
settlement_date |
datetime | 日期类型,结算日 |
返回:float
示例
范例01:调用函数
Setsysparam(pn_Stock(), "BK000000");
return BondCouponExt(20120703T);
bondFutureValue()
声明:function
返回到期兑付日债券本息和,与系统股票pn_stock()有关
返回:real
示例
范例01:调用函数
// 返回' BK000002'的到期兑付日债券本息和
setSysParam(PN_Stock(), 'BK000002');
return bondFutureValue();
// 输出:102.8
mid_bondAccruedInterest(endt, cash_flow, f, pd, option, method_type)
声明:function
返回 MID_BondAccruedInterest 对应的数据
| 参数 | 类型 | 说明 |
|---|---|---|
endt |
datetime | 日期。指定日期 |
cash_flow |
array | 数组。指定日期未来现金流 |
f |
integer | 整数。付息频率 |
pd |
float | 实数。发行价 |
option |
integer | 用户自定义。返回类型,取值如下: |
method_type |
integer | 用户自定义。调用类型,取值如下: |
返回:float