public class DiscountingIborFixingDepositTradePricer extends Object
This provides the ability to price ResolvedIborFixingDepositTrade.
These trades are synthetic trades which are used for curve calibration purposes.
They should not be used as actual trades.
| Modifier and Type | Field and Description |
|---|---|
static DiscountingIborFixingDepositTradePricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
DiscountingIborFixingDepositTradePricer(DiscountingIborFixingDepositProductPricer productPricer)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
double |
parRate(ResolvedIborFixingDepositTrade trade,
RatesProvider provider)
Calculates the deposit fair rate given the start and end time and the accrual factor.
|
PointSensitivities |
parRateSensitivity(ResolvedIborFixingDepositTrade trade,
RatesProvider provider)
Calculates the deposit fair rate sensitivity to the curves.
|
double |
parSpread(ResolvedIborFixingDepositTrade trade,
RatesProvider provider)
Calculates the spread to be added to the deposit rate to have a zero present value.
|
PointSensitivities |
parSpreadSensitivity(ResolvedIborFixingDepositTrade trade,
RatesProvider provider)
Calculates the par spread curve sensitivity.
|
CurrencyAmount |
presentValue(ResolvedIborFixingDepositTrade trade,
RatesProvider provider)
Calculates the present value of the Ibor fixing deposit trade.
|
PointSensitivities |
presentValueSensitivity(ResolvedIborFixingDepositTrade trade,
RatesProvider provider)
Calculates the present value sensitivity of the Ibor fixing deposit trade.
|
public static final DiscountingIborFixingDepositTradePricer DEFAULT
public DiscountingIborFixingDepositTradePricer(DiscountingIborFixingDepositProductPricer productPricer)
productPricer - the pricer for ResolvedIborFixingDepositpublic CurrencyAmount presentValue(ResolvedIborFixingDepositTrade trade, RatesProvider provider)
The present value of the trade is the value on the valuation date.
trade - the tradeprovider - the rates providerpublic PointSensitivities presentValueSensitivity(ResolvedIborFixingDepositTrade trade, RatesProvider provider)
The present value sensitivity of the trade is the sensitivity of the present value to the underlying curves.
trade - the tradeprovider - the rates providerpublic double parRate(ResolvedIborFixingDepositTrade trade, RatesProvider provider)
trade - the tradeprovider - the rates providerpublic PointSensitivities parRateSensitivity(ResolvedIborFixingDepositTrade trade, RatesProvider provider)
trade - the tradeprovider - the rates providerpublic double parSpread(ResolvedIborFixingDepositTrade trade, RatesProvider provider)
trade - the tradeprovider - the rates providerpublic PointSensitivities parSpreadSensitivity(ResolvedIborFixingDepositTrade trade, RatesProvider provider)
trade - the tradeprovider - the rates providerCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.