public interface FxOptionMarketData
This interface exposes the market data necessary for pricing FX options.
Implementations of this interface must be immutable.
| Modifier and Type | Method and Description |
|---|---|
FxOptionMarketDataLookup |
getLookup()
Gets the lookup that provides access to FX options volatilities.
|
MarketData |
getMarketData()
Gets the market data.
|
default LocalDate |
getValuationDate()
Gets the valuation date.
|
FxOptionVolatilities |
volatilities(CurrencyPair currencyPair)
Gets the volatilities for the specified currency pair.
|
FxOptionMarketData |
withMarketData(MarketData marketData)
Returns a copy of this instance with the specified market data.
|
default LocalDate getValuationDate()
FxOptionMarketDataLookup getLookup()
MarketData getMarketData()
FxOptionMarketData withMarketData(MarketData marketData)
marketData - the market data to useFxOptionVolatilities volatilities(CurrencyPair currencyPair)
If the currency pair is not found, an exception is thrown.
currencyPair - the currency pairMarketDataNotFoundException - if the currency pair is not foundCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.