public class OptionSurfaceData extends Object
| Constructor and Description |
|---|
OptionSurfaceData(OptionSmileData[] smiles,
DiscountCurve discountCurve,
DiscountCurve equityForwardCurve)
Creates an equity option surface from an array of smiles.
|
OptionSurfaceData(String underlying,
LocalDate referenceDate,
double[] strikes,
double[] maturities,
double[][] values,
VolatilitySurface.QuotingConvention convention,
DiscountCurve discountCurve,
DiscountCurve equityForwardCurve)
This is a very restrictive constructor that assumes that for each maturity we have the same number of option quotes.
|
| Modifier and Type | Method and Description |
|---|---|
DiscountCurve |
getDiscountCurve() |
DiscountCurve |
getEquityForwardCurve() |
double[] |
getMaturities() |
String |
getName() |
VolatilitySurface.QuotingConvention |
getQuotingConvention() |
LocalDate |
getReferenceDate() |
OptionSmileData |
getSmile(double maturity) |
HashMap<Double,OptionSmileData> |
getSurface() |
double |
getValue(AnalyticModel model,
double maturity,
double strike,
VolatilitySurface.QuotingConvention quotingConvention) |
double |
getValue(double maturity,
double strike) |
double |
getValue(double maturity,
double strike,
VolatilitySurface.QuotingConvention quotingConvention) |
public OptionSurfaceData(String underlying, LocalDate referenceDate, double[] strikes, double[] maturities, double[][] values, VolatilitySurface.QuotingConvention convention, DiscountCurve discountCurve, DiscountCurve equityForwardCurve)
underlying - The name of the underlying of this surface.referenceDate - The reference date for this market data (t=0).strikes - The vector of strikes.maturities - The vector of maturities.values - The matrix of values per (strike, maturity)convention - The quoting convention (@see net.finmath.marketdata.model.volatilities.VolatilitySurfaceInterface.QuotingConvention).discountCurve - A discount curve for discounting (funding/collateral rate).equityForwardCurve - A the discount curve for forwarding (repo rate (e.g. funding minus dividents).public OptionSurfaceData(OptionSmileData[] smiles, DiscountCurve discountCurve, DiscountCurve equityForwardCurve)
smiles - The option smile data.discountCurve - A discount curve for discounting (funding/collateral rate).equityForwardCurve - A the discount curve for forwarding (repo rate (e.g. funding minus dividents).public DiscountCurve getDiscountCurve()
public DiscountCurve getEquityForwardCurve()
public String getName()
public LocalDate getReferenceDate()
public VolatilitySurface.QuotingConvention getQuotingConvention()
public HashMap<Double,OptionSmileData> getSurface()
public double[] getMaturities()
public double getValue(double maturity,
double strike)
public double getValue(double maturity,
double strike,
VolatilitySurface.QuotingConvention quotingConvention)
public double getValue(AnalyticModel model, double maturity, double strike, VolatilitySurface.QuotingConvention quotingConvention)
public OptionSmileData getSmile(double maturity)
Copyright © 2019. All rights reserved.