public class BulletPaymentTradeCalculations extends Object
This provides a high-level entry point for bullet payment pricing and risk measures.
Each method takes a ResolvedBulletPaymentTrade, whereas application code will
typically work with BulletPaymentTrade. Call
BulletPaymentTrade::resolve(ReferenceData)
to convert BulletPaymentTrade to ResolvedBulletPaymentTrade.
| Modifier and Type | Field and Description |
|---|---|
static BulletPaymentTradeCalculations |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
BulletPaymentTradeCalculations(DiscountingBulletPaymentTradePricer tradePricer)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
ScenarioArray<CashFlows> |
cashFlows(ResolvedBulletPaymentTrade trade,
RatesMarketDataLookup lookup,
ScenarioMarketData marketData)
Calculates cash flows across one or more scenarios.
|
CashFlows |
cashFlows(ResolvedBulletPaymentTrade trade,
RatesProvider ratesProvider)
Calculates cash flows for a single set of market data.
|
MultiCurrencyScenarioArray |
currencyExposure(ResolvedBulletPaymentTrade trade,
RatesMarketDataLookup lookup,
ScenarioMarketData marketData)
Calculates currency exposure across one or more scenarios.
|
MultiCurrencyAmount |
currencyExposure(ResolvedBulletPaymentTrade trade,
RatesProvider ratesProvider)
Calculates currency exposure for a single set of market data.
|
CurrencyScenarioArray |
currentCash(ResolvedBulletPaymentTrade trade,
RatesMarketDataLookup lookup,
ScenarioMarketData marketData)
Calculates current cash across one or more scenarios.
|
CurrencyAmount |
currentCash(ResolvedBulletPaymentTrade trade,
RatesProvider ratesProvider)
Calculates current cash for a single set of market data.
|
CurrencyScenarioArray |
presentValue(ResolvedBulletPaymentTrade trade,
RatesMarketDataLookup lookup,
ScenarioMarketData marketData)
Calculates present value across one or more scenarios.
|
CurrencyAmount |
presentValue(ResolvedBulletPaymentTrade trade,
RatesProvider ratesProvider)
Calculates present value for a single set of market data.
|
ScenarioArray<CurrencyParameterSensitivities> |
pv01CalibratedBucketed(ResolvedBulletPaymentTrade trade,
RatesMarketDataLookup lookup,
ScenarioMarketData marketData)
Calculates present value sensitivity across one or more scenarios.
|
CurrencyParameterSensitivities |
pv01CalibratedBucketed(ResolvedBulletPaymentTrade trade,
RatesProvider ratesProvider)
Calculates present value sensitivity for a single set of market data.
|
MultiCurrencyScenarioArray |
pv01CalibratedSum(ResolvedBulletPaymentTrade trade,
RatesMarketDataLookup lookup,
ScenarioMarketData marketData)
Calculates present value sensitivity across one or more scenarios.
|
MultiCurrencyAmount |
pv01CalibratedSum(ResolvedBulletPaymentTrade trade,
RatesProvider ratesProvider)
Calculates present value sensitivity for a single set of market data.
|
ScenarioArray<CurrencyParameterSensitivities> |
pv01MarketQuoteBucketed(ResolvedBulletPaymentTrade trade,
RatesMarketDataLookup lookup,
ScenarioMarketData marketData)
Calculates present value sensitivity across one or more scenarios.
|
CurrencyParameterSensitivities |
pv01MarketQuoteBucketed(ResolvedBulletPaymentTrade trade,
RatesProvider ratesProvider)
Calculates present value sensitivity for a single set of market data.
|
MultiCurrencyScenarioArray |
pv01MarketQuoteSum(ResolvedBulletPaymentTrade trade,
RatesMarketDataLookup lookup,
ScenarioMarketData marketData)
Calculates present value sensitivity across one or more scenarios.
|
MultiCurrencyAmount |
pv01MarketQuoteSum(ResolvedBulletPaymentTrade trade,
RatesProvider ratesProvider)
Calculates present value sensitivity for a single set of market data.
|
public static final BulletPaymentTradeCalculations DEFAULT
public BulletPaymentTradeCalculations(DiscountingBulletPaymentTradePricer tradePricer)
In most cases, applications should use the DEFAULT instance.
tradePricer - the pricer for ResolvedBulletPaymentTradepublic CurrencyScenarioArray presentValue(ResolvedBulletPaymentTrade trade, RatesMarketDataLookup lookup, ScenarioMarketData marketData)
trade - the tradelookup - the lookup used to query the market datamarketData - the market datapublic CurrencyAmount presentValue(ResolvedBulletPaymentTrade trade, RatesProvider ratesProvider)
trade - the traderatesProvider - the market datapublic MultiCurrencyScenarioArray pv01CalibratedSum(ResolvedBulletPaymentTrade trade, RatesMarketDataLookup lookup, 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 tradelookup - the lookup used to query the market datamarketData - the market datapublic MultiCurrencyAmount pv01CalibratedSum(ResolvedBulletPaymentTrade trade, RatesProvider ratesProvider)
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 datapublic ScenarioArray<CurrencyParameterSensitivities> pv01CalibratedBucketed(ResolvedBulletPaymentTrade trade, RatesMarketDataLookup lookup, 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 tradelookup - the lookup used to query the market datamarketData - the market datapublic CurrencyParameterSensitivities pv01CalibratedBucketed(ResolvedBulletPaymentTrade trade, RatesProvider ratesProvider)
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 datapublic MultiCurrencyScenarioArray pv01MarketQuoteSum(ResolvedBulletPaymentTrade trade, RatesMarketDataLookup lookup, 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 tradelookup - the lookup used to query the market datamarketData - the market datapublic MultiCurrencyAmount pv01MarketQuoteSum(ResolvedBulletPaymentTrade trade, RatesProvider ratesProvider)
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 datapublic ScenarioArray<CurrencyParameterSensitivities> pv01MarketQuoteBucketed(ResolvedBulletPaymentTrade trade, RatesMarketDataLookup lookup, 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 tradelookup - the lookup used to query the market datamarketData - the market datapublic CurrencyParameterSensitivities pv01MarketQuoteBucketed(ResolvedBulletPaymentTrade trade, RatesProvider ratesProvider)
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 datapublic ScenarioArray<CashFlows> cashFlows(ResolvedBulletPaymentTrade trade, RatesMarketDataLookup lookup, ScenarioMarketData marketData)
The cash flows provide details about the payments of the trade.
trade - the tradelookup - the lookup used to query the market datamarketData - the market datapublic CashFlows cashFlows(ResolvedBulletPaymentTrade trade, RatesProvider ratesProvider)
The cash flows provide details about the payments of the trade.
trade - the traderatesProvider - the market datapublic MultiCurrencyScenarioArray currencyExposure(ResolvedBulletPaymentTrade trade, RatesMarketDataLookup lookup, ScenarioMarketData marketData)
The currency risk, expressed as the equivalent amount in each currency.
trade - the tradelookup - the lookup used to query the market datamarketData - the market datapublic MultiCurrencyAmount currencyExposure(ResolvedBulletPaymentTrade trade, RatesProvider ratesProvider)
The currency risk, expressed as the equivalent amount in each currency.
trade - the traderatesProvider - the market datapublic CurrencyScenarioArray currentCash(ResolvedBulletPaymentTrade trade, RatesMarketDataLookup lookup, ScenarioMarketData marketData)
The sum of all cash flows paid on the valuation date.
trade - the tradelookup - the lookup used to query the market datamarketData - the market datapublic CurrencyAmount currentCash(ResolvedBulletPaymentTrade trade, RatesProvider ratesProvider)
The sum of all cash flows paid on the valuation date.
trade - the traderatesProvider - the market dataCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.