FixedIncomeYield Method (DateTime, DateTime, DateTime, IListDateTime, Double, Double, Double, YieldFrequency)
|
Returns the yield on a security with coupon dates definition.
Namespace:
FinMath.PerformanceAnalysis
Assembly:
FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax public static double Yield(
DateTime settlement,
DateTime issue,
DateTime maturity,
IList<DateTime> couponDates,
double rate,
double price,
double redemption,
YieldFrequency frequency
)
Parameters
- settlement
- Type: SystemDateTime
The security's settlement date. The security settlement date is the
date after the issue date when the security is traded to the buyer.
- issue
- Type: SystemDateTime
The coupon issue date. - maturity
- Type: SystemDateTime
The security's maturity date. The maturity date is the date when the security expires. - couponDates
- Type: System.Collections.GenericIListDateTime
The array of coupon payment days. - rate
- Type: SystemDouble
The security's annual coupon rate. - price
- Type: SystemDouble
The security's price per $100 face value. - redemption
- Type: SystemDouble
The security's redemption value per $100 face value. - frequency
- Type: FinMath.PerformanceAnalysisYieldFrequency
The number of coupon payments per year.
Return Value
Type:
DoubleThe yield value.
See Also