Description Usage Arguments Value See Also Examples
Bonds typically trade based on a "clean price," which does not include
accrued interest. To calculate yields etc. "dirty price" must first be
calculated by including accrued interest. This function assumes that the
dates passed in confrom to the convention that settle
is between
accrual_start
and next_coupon
.
1 2 | acc_int(accrual_start, settle, next_coupon, coupon, conv = "30/360",
freq = 2)
|
accrual_start |
Accrual start date |
settle |
Settlement Date |
next_coupon |
Next coupon date |
coupon |
Annual coupon amount |
conv |
Daycount convention (one of |
freq |
Coupon frequency (number of periods per year) |
Numeric value of the accrued interest for a par amount of 100
Other pricing functions: calc_clean_px
,
calc_clean_px.bond
,
calc_clean_px.default
;
calc_dirty_px
,
calc_dirty_px.bond
,
calc_dirty_px.default
;
calc_dv01
, calc_dv01.bond
,
calc_dv01.default
, calc_risk
,
calc_risk.bond
,
calc_risk.default
;
calc_yield
, calc_yield.bond
,
calc_yield.default
; calc_ytm
;
discount_cfs_single
;
risk_cfs_single
;
yield_cfs_single
1 | acc_int("2015-01-15", "2015-03-07", "2015-07-15", "30/360", 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.