public class CapitalIndexedBondTradeCalculations extends Object
This provides a high-level entry point for capital indexed bond pricing and risk measures.
Each method takes a ResolvedCapitalIndexedBondTrade, whereas application code will
typically work with CapitalIndexedBondTrade. Call
CapitalIndexedBondTrade::resolve(ReferenceData)
to convert CapitalIndexedBondTrade to ResolvedCapitalIndexedBondTrade.
| Modifier and Type | Field and Description |
|---|---|
static CapitalIndexedBondTradeCalculations |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
CapitalIndexedBondTradeCalculations(DiscountingCapitalIndexedBondTradePricer tradePricer)
Creates an instance.
|
public static final CapitalIndexedBondTradeCalculations DEFAULT
public CapitalIndexedBondTradeCalculations(DiscountingCapitalIndexedBondTradePricer tradePricer)
In most cases, applications should use the DEFAULT instance.
tradePricer - the pricer for ResolvedCapitalIndexedBondTradepublic CurrencyScenarioArray presentValue(ResolvedCapitalIndexedBondTrade trade, RatesMarketDataLookup ratesLookup, LegalEntityDiscountingMarketDataLookup legalEntityLookup, ScenarioMarketData marketData)
trade - the traderatesLookup - the lookup used to query the market datalegalEntityLookup - the lookup used to query the market datamarketData - the market datapublic CurrencyAmount presentValue(ResolvedCapitalIndexedBondTrade trade, RatesProvider ratesProvider, LegalEntityDiscountingProvider legalEntityProvider)
trade - the traderatesProvider - the market datalegalEntityProvider - the market datapublic MultiCurrencyScenarioArray pv01CalibratedSum(ResolvedCapitalIndexedBondTrade trade, RatesMarketDataLookup ratesLookup, LegalEntityDiscountingMarketDataLookup legalEntityLookup, 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 datalegalEntityLookup - the lookup used to query the market datamarketData - the market datapublic MultiCurrencyAmount pv01CalibratedSum(ResolvedCapitalIndexedBondTrade trade, RatesProvider ratesProvider, LegalEntityDiscountingProvider legalEntityProvider)
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 datalegalEntityProvider - the market datapublic ScenarioArray<CurrencyParameterSensitivities> pv01CalibratedBucketed(ResolvedCapitalIndexedBondTrade trade, RatesMarketDataLookup ratesLookup, LegalEntityDiscountingMarketDataLookup legalEntityLookup, 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 datalegalEntityLookup - the lookup used to query the market datamarketData - the market datapublic CurrencyParameterSensitivities pv01CalibratedBucketed(ResolvedCapitalIndexedBondTrade trade, RatesProvider ratesProvider, LegalEntityDiscountingProvider legalEntityProvider)
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 datalegalEntityProvider - the market datapublic MultiCurrencyScenarioArray currencyExposure(ResolvedCapitalIndexedBondTrade trade, RatesMarketDataLookup ratesLookup, LegalEntityDiscountingMarketDataLookup legalEntityLookup, ScenarioMarketData marketData)
The currency risk, expressed as the equivalent amount in each currency.
trade - the traderatesLookup - the lookup used to query the market datalegalEntityLookup - the lookup used to query the market datamarketData - the market datapublic MultiCurrencyAmount currencyExposure(ResolvedCapitalIndexedBondTrade trade, RatesProvider ratesProvider, LegalEntityDiscountingProvider legalEntityProvider)
The currency risk, expressed as the equivalent amount in each currency.
trade - the traderatesProvider - the market datalegalEntityProvider - the market datapublic CurrencyScenarioArray currentCash(ResolvedCapitalIndexedBondTrade trade, RatesMarketDataLookup ratesLookup, LegalEntityDiscountingMarketDataLookup legalEntityLookup, ScenarioMarketData marketData)
The sum of all cash flows paid on the valuation date.
trade - the traderatesLookup - the lookup used to query the market datalegalEntityLookup - the lookup used to query the market datamarketData - the market datapublic CurrencyAmount currentCash(ResolvedCapitalIndexedBondTrade trade, RatesProvider ratesProvider, LegalEntityDiscountingProvider legalEntityProvider)
The sum of all cash flows paid on the valuation date.
trade - the traderatesProvider - the market datalegalEntityProvider - the market dataCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.