- Function SecurityPeriodicCouponRate(SettlementDate, MaturityDate, ParValue, Price, Redemption, Frequency, Yield, Basis)
SecurityPeriodicCouponRate
The function SecurityPeriodicCouponRate
returns the coupon rate of a
security that pays interest at the end of each coupon period.
SecurityPeriodicCouponRate(
SettlementDate, ! (input) scalar string expression
MaturityDate, ! (input) scalar string expression
ParValue, ! (input) numerical expression
Price, ! (input) numerical expression
Redemption, ! (input) numerical expression
Frequency, ! (input) numerical expression
Yield, ! (input) numerical expression
[Basis] ! (optional) numerical expression
)
Arguments
- SettlementDate
The date of settlement of the security. SettlementDate must be in date format.
- MaturityDate
The date of maturity of the security. MaturityDate must also be in date format and must be a date after SettlementDate.
- ParValue
The starting value of the security at issue date. ParValue must be a positive real number.
- Price
The price of the security at settlement date. Price must be a positive real number.
- Redemption
The amount repaid for the security at the maturity date. Redemption must be a positive real number.
- Frequency
The number of coupon payments in one year. Frequency must be 1 (annual), 2 (semi-annual) or 4 (quarterly).
- Yield
The yield of the security. Yield must be a nonnegative real number.
- Basis
The day-count basis method to be used. The default is 1.
Return Value
The function
SecurityPeriodicCouponRate
returns the interest rate per year of the security as a percentage of the par value.
Note
This function can be used in an objective function or constraint and the input parameters ParValue, Price, Redemption, and Yield can be used as a variable.
Example
The code:
_p_spcr := SecurityPeriodicCouponRate(
SettlementDate : "2024-01-01",
MaturityDate : "2030-01-01",
ParValue : 100,
Price : 100,
Redemption : 100,
Frequency : 4,
Yield : 0.04,
Basis : 1);
block where single_column_display := 1, listing_number_precision := 6 ;
display _p_spcr ;
endblock ;
Produces:
_p_spcr := 0.040000 ;