public class ForwardRateAgreement extends AbstractAnalyticProduct implements AnalyticProduct
| Constructor and Description |
|---|
ForwardRateAgreement(Schedule schedule,
double spread,
String forwardCurveName,
String discountCurveName)
Creates a payer FRA.
|
ForwardRateAgreement(Schedule schedule,
double spread,
String forwardCurveName,
String discountCurveName,
boolean isPayer)
Creates a FRA.
|
| Modifier and Type | Method and Description |
|---|---|
RandomVariable |
getRate(AnalyticModel model)
Return the par FRA rate for a given curve.
|
RandomVariable |
getValue(double evaluationTime,
AnalyticModel model)
Return the valuation of the product using the given model.
|
getValue, getValuepublic ForwardRateAgreement(Schedule schedule, double spread, String forwardCurveName, String discountCurveName, boolean isPayer)
schedule - The schedule (provides fixing and periods length).spread - The market FRA rateforwardCurveName - Name of the forward curvediscountCurveName - Name of the discount curve (possibly multi curve setting).isPayer - If true, the fra pays fix, i.e., the payoff is forward - spread. Otherwise it is spread - forward.public ForwardRateAgreement(Schedule schedule, double spread, String forwardCurveName, String discountCurveName)
schedule - The schedule (provides fixing and periods length).spread - The market FRA rateforwardCurveName - Name of the forward curvediscountCurveName - Name of the discount curve (possibly multi curve setting).public RandomVariable getValue(double evaluationTime, AnalyticModel model)
AnalyticProductAnalyticModel.getValue in interface AnalyticProductevaluationTime - The evaluation time as double. Cash flows prior and including this time are not considered.model - The model under which the product is valued.public RandomVariable getRate(AnalyticModel model)
model - A given model.Copyright © 2019. All rights reserved.