public interface RatesScenarioMarketData
This interface exposes the market data necessary for pricing rates products,
such as Swaps, FRAs and FX.
It uses a RatesMarketDataLookup to provide a view on ScenarioMarketData.
Implementations of this interface must be immutable.
| Modifier and Type | Method and Description |
|---|---|
RatesMarketDataLookup |
getLookup()
Gets the lookup that provides access to discount curves and forward curves.
|
ScenarioMarketData |
getMarketData()
Gets the market data.
|
int |
getScenarioCount()
Gets the number of scenarios.
|
RatesMarketData |
scenario(int scenarioIndex)
Returns market data for a single scenario.
|
RatesScenarioMarketData |
withMarketData(ScenarioMarketData marketData)
Returns a copy of this instance with the specified market data.
|
RatesMarketDataLookup getLookup()
ScenarioMarketData getMarketData()
RatesScenarioMarketData withMarketData(ScenarioMarketData marketData)
marketData - the market data to useint getScenarioCount()
RatesMarketData scenario(int scenarioIndex)
This returns a view of the market data for the specified scenario.
scenarioIndex - the scenario indexIndexOutOfBoundsException - if the scenario index is invalidCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.