public class SwaptionTradeCalculations extends Object
This provides a high-level entry point for swaption pricing and risk measures.
Each method takes a ResolvedSwaptionTrade, whereas application code will
typically work with SwaptionTrade. Call
SwaptionTrade::resolve(ReferenceData)
to convert SwaptionTrade to ResolvedSwaptionTrade.
| Modifier and Type | Field and Description |
|---|---|
static SwaptionTradeCalculations |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
SwaptionTradeCalculations(VolatilitySwaptionTradePricer tradePricer,
SabrSwaptionTradePricer sabrTradePricer)
Creates an instance.
|
public static final SwaptionTradeCalculations DEFAULT
public SwaptionTradeCalculations(VolatilitySwaptionTradePricer tradePricer, SabrSwaptionTradePricer sabrTradePricer)
In most cases, applications should use the DEFAULT instance.
tradePricer - the pricer for ResolvedSwaptionTradesabrTradePricer - the pricer for ResolvedSwaptionTrade SABRpublic CurrencyScenarioArray presentValue(ResolvedSwaptionTrade trade, RatesMarketDataLookup ratesLookup, SwaptionMarketDataLookup swaptionLookup, ScenarioMarketData marketData)
trade - the traderatesLookup - the lookup used to query the market dataswaptionLookup - the lookup used to query the swaption market datamarketData - the market datapublic CurrencyAmount presentValue(ResolvedSwaptionTrade trade, RatesProvider ratesProvider, SwaptionVolatilities volatilities)
trade - the traderatesProvider - the market datavolatilities - the swaption volatilitiespublic MultiCurrencyScenarioArray pv01RatesCalibratedSum(ResolvedSwaptionTrade trade, RatesMarketDataLookup ratesLookup, SwaptionMarketDataLookup swaptionLookup, ScenarioMarketData marketData)
This is the sensitivity of present value to a one basis point shift in the calibrated curves. The result is the sum of the sensitivities of all affected curves.
trade - the traderatesLookup - the lookup used to query the market dataswaptionLookup - the lookup used to query the swaption market datamarketData - the market datapublic MultiCurrencyAmount pv01RatesCalibratedSum(ResolvedSwaptionTrade trade, RatesProvider ratesProvider, SwaptionVolatilities volatilities)
This is the sensitivity of present value to a one basis point shift in the calibrated curves. The result is the sum of the sensitivities of all affected curves.
trade - the traderatesProvider - the market datavolatilities - the swaption volatilitiespublic ScenarioArray<CurrencyParameterSensitivities> pv01RatesCalibratedBucketed(ResolvedSwaptionTrade trade, RatesMarketDataLookup ratesLookup, SwaptionMarketDataLookup swaptionLookup, ScenarioMarketData marketData)
This is the sensitivity of present value to a one basis point shift in the calibrated curves. The result is provided for each affected curve and currency, bucketed by curve node.
trade - the traderatesLookup - the lookup used to query the market dataswaptionLookup - the lookup used to query the swaption market datamarketData - the market datapublic CurrencyParameterSensitivities pv01RatesCalibratedBucketed(ResolvedSwaptionTrade trade, RatesProvider ratesProvider, SwaptionVolatilities volatilities)
This is the sensitivity of present value to a one basis point shift in the calibrated curves. The result is provided for each affected curve and currency, bucketed by curve node.
trade - the traderatesProvider - the market datavolatilities - the swaption volatilitiespublic MultiCurrencyScenarioArray pv01RatesMarketQuoteSum(ResolvedSwaptionTrade trade, RatesMarketDataLookup ratesLookup, SwaptionMarketDataLookup swaptionLookup, ScenarioMarketData marketData)
This is the sensitivity of present value to a one basis point shift in the market quotes used to calibrate the curves. The result is the sum of the sensitivities of all affected curves.
trade - the traderatesLookup - the lookup used to query the market dataswaptionLookup - the lookup used to query the swaption market datamarketData - the market datapublic MultiCurrencyAmount pv01RatesMarketQuoteSum(ResolvedSwaptionTrade trade, RatesProvider ratesProvider, SwaptionVolatilities volatilities)
This is the sensitivity of present value to a one basis point shift in the market quotes used to calibrate the curves. The result is the sum of the sensitivities of all affected curves.
trade - the traderatesProvider - the market datavolatilities - the swaption volatilitiespublic ScenarioArray<CurrencyParameterSensitivities> pv01RatesMarketQuoteBucketed(ResolvedSwaptionTrade trade, RatesMarketDataLookup ratesLookup, SwaptionMarketDataLookup swaptionLookup, ScenarioMarketData marketData)
This is the sensitivity of present value to a one basis point shift in the market quotes used to calibrate the curves. The result is provided for each affected curve and currency, bucketed by curve node.
trade - the traderatesLookup - the lookup used to query the market datamarketData - the market dataswaptionLookup - the lookup used to query the swaption market datapublic CurrencyParameterSensitivities pv01RatesMarketQuoteBucketed(ResolvedSwaptionTrade trade, RatesProvider ratesProvider, SwaptionVolatilities volatilities)
This is the sensitivity of present value to a one basis point shift in the market quotes used to calibrate the curves. The result is provided for each affected curve and currency, bucketed by curve node.
trade - the traderatesProvider - the market datavolatilities - the swaption volatilitiespublic MultiCurrencyScenarioArray currencyExposure(ResolvedSwaptionTrade trade, RatesMarketDataLookup ratesLookup, SwaptionMarketDataLookup swaptionLookup, ScenarioMarketData marketData)
The currency risk, expressed as the equivalent amount in each currency.
trade - the traderatesLookup - the lookup used to query the market dataswaptionLookup - the lookup used to query the swaption market datamarketData - the market datapublic MultiCurrencyAmount currencyExposure(ResolvedSwaptionTrade trade, RatesProvider ratesProvider, SwaptionVolatilities volatilities)
The currency risk, expressed as the equivalent amount in each currency.
trade - the traderatesProvider - the market datavolatilities - the swaption volatilitiespublic CurrencyScenarioArray currentCash(ResolvedSwaptionTrade trade, RatesMarketDataLookup ratesLookup, SwaptionMarketDataLookup swaptionLookup, ScenarioMarketData marketData)
The sum of all cash flows paid on the valuation date.
trade - the traderatesLookup - the lookup used to query the market dataswaptionLookup - the lookup used to query the swaption market datamarketData - the market datapublic CurrencyAmount currentCash(ResolvedSwaptionTrade trade, RatesProvider ratesProvider, SwaptionVolatilities volatilities)
The sum of all cash flows paid on the valuation date.
trade - the traderatesProvider - the market datavolatilities - the swaption volatilitiesCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.