public interface BondFutureVolatilities extends MarketDataView, ParameterizedData
This provides access to the volatilities for pricing models, such as Black.
| Modifier and Type | Method and Description |
|---|---|
BondFutureVolatilitiesName |
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 strike,
double forward)
Calculates the volatility at the specified expiry.
|
default double |
volatility(ZonedDateTime expiryDateTime,
LocalDate fixingDate,
double strike,
double forward)
Calculates the volatility at the specified expiry.
|
BondFutureVolatilities |
withParameter(int parameterIndex,
double newValue) |
BondFutureVolatilities |
withPerturbation(ParameterPerturbation perturbation) |
findDatafindParameterIndex, getParameter, getParameterCount, getParameterMetadataBondFutureVolatilitiesName getName()
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.
BondFutureVolatilities withParameter(int parameterIndex, double newValue)
withParameter in interface ParameterizedDataBondFutureVolatilities withPerturbation(ParameterPerturbation perturbation)
withPerturbation in interface ParameterizedDatadefault double volatility(ZonedDateTime expiryDateTime, LocalDate fixingDate, double strike, double forward)
expiryDateTime - the option expiryfixingDate - the underlying future fixing datestrike - the option strike rateforward - the forward rateRuntimeException - if the value cannot be obtaineddouble volatility(double expiry,
LocalDate fixingDate,
double strike,
double forward)
This relies on expiry supplied by relativeTime(ZonedDateTime).
expiry - the time to expiry as a year fractionfixingDate - the underlying future fixing datestrike - the option strike rateforward - the forward rateRuntimeException - 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.