public interface OvernightFutureOptionVolatilities extends MarketDataView, ParameterizedData
This provides access to the volatilities for various pricing models, such as normal.
| Modifier and Type | Method and Description |
|---|---|
OvernightIndex |
getIndex()
Gets the index of the underlying future for which the data is valid.
|
OvernightFutureOptionVolatilitiesName |
getName()
Gets the name of these volatilities.
|
default LocalDate |
getValuationDate()
Gets the valuation date.
|
ZonedDateTime |
getValuationDateTime()
Gets the valuation date-time.
|
ValueType |
getVolatilityType()
Gets the type of volatility returned by the
volatility(java.time.ZonedDateTime, java.time.LocalDate, double, double) method. |
CurrencyParameterSensitivities |
parameterSensitivity(PointSensitivities pointSensitivities)
Calculates the parameter sensitivity.
|
default CurrencyParameterSensitivities |
parameterSensitivity(PointSensitivity... pointSensitivities)
Calculates the parameter sensitivity.
|
double |
relativeTime(ZonedDateTime dateTime)
Converts a time and date to a relative year fraction.
|
double |
volatility(double expiry,
LocalDate fixingDate,
double strikePrice,
double futurePrice)
Calculates the volatility at the specified expiry.
|
default double |
volatility(ZonedDateTime expiryDateTime,
LocalDate fixingDate,
double strikePrice,
double futurePrice)
Calculates the volatility at the specified expiry.
|
OvernightFutureOptionVolatilities |
withParameter(int parameterIndex,
double newValue) |
OvernightFutureOptionVolatilities |
withPerturbation(ParameterPerturbation perturbation) |
findDatafindParameterIndex, getParameter, getParameterCount, getParameterMetadataOvernightFutureOptionVolatilitiesName getName()
OvernightIndex getIndex()
ValueType getVolatilityType()
volatility(java.time.ZonedDateTime, java.time.LocalDate, double, double) method.default LocalDate getValuationDate()
The volatilities are calibrated for this date.
getValuationDate in interface MarketDataViewZonedDateTime getValuationDateTime()
The volatilities are calibrated for this date-time.
OvernightFutureOptionVolatilities withParameter(int parameterIndex, double newValue)
withParameter in interface ParameterizedDataOvernightFutureOptionVolatilities withPerturbation(ParameterPerturbation perturbation)
withPerturbation in interface ParameterizedDatadefault double volatility(ZonedDateTime expiryDateTime, LocalDate fixingDate, double strikePrice, double futurePrice)
expiryDateTime - the option expiryfixingDate - the underlying future fixing datestrikePrice - the option strike pricefuturePrice - the price of the underlying futureRuntimeException - if the value cannot be obtaineddouble volatility(double expiry,
LocalDate fixingDate,
double strikePrice,
double futurePrice)
This relies on expiry supplied by relativeTime(ZonedDateTime).
expiry - the time to expiry as a year fractionfixingDate - the underlying future fixing datestrikePrice - the option strike pricefuturePrice - the price of the underlying futureRuntimeException - if the value cannot be obtaineddefault CurrencyParameterSensitivities parameterSensitivity(PointSensitivity... pointSensitivities)
This computes the CurrencyParameterSensitivities associated with the PointSensitivities.
This corresponds to the projection of the point sensitivity to the internal parameters representation.
pointSensitivities - the point sensitivitiesCurrencyParameterSensitivities parameterSensitivity(PointSensitivities pointSensitivities)
This computes the CurrencyParameterSensitivities associated with the PointSensitivities.
This corresponds to the projection of the point sensitivity to the internal parameters representation.
pointSensitivities - the point sensitivitiesdouble relativeTime(ZonedDateTime dateTime)
When the date is after the valuation date (and potentially time), the returned number is negative.
dateTime - the date-time to find the relative year fraction ofCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.