public class DiscountingTermDepositProductPricer extends Object
This provides the ability to price ResolvedTermDeposit.
| Modifier and Type | Field and Description |
|---|---|
static DiscountingTermDepositProductPricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
DiscountingTermDepositProductPricer()
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
double |
parRate(ResolvedTermDeposit deposit,
RatesProvider provider)
Calculates the deposit fair rate given the start and end time and the accrual factor.
|
PointSensitivities |
parRateSensitivity(ResolvedTermDeposit deposit,
RatesProvider provider)
Calculates the par rate curve sensitivity.
|
double |
parSpread(ResolvedTermDeposit deposit,
RatesProvider provider)
Calculates the spread to be added to the deposit rate to have a zero present value.
|
PointSensitivities |
parSpreadSensitivity(ResolvedTermDeposit deposit,
RatesProvider provider)
Calculates the par spread curve sensitivity.
|
CurrencyAmount |
presentValue(ResolvedTermDeposit deposit,
RatesProvider provider)
Calculates the present value by discounting the final cash flow (nominal + interest)
and the initial payment (initial amount).
|
PointSensitivities |
presentValueSensitivity(ResolvedTermDeposit deposit,
RatesProvider provider)
Calculates the present value sensitivity by discounting the final cash flow (nominal + interest)
and the initial payment (initial amount).
|
public static final DiscountingTermDepositProductPricer DEFAULT
public DiscountingTermDepositProductPricer()
public CurrencyAmount presentValue(ResolvedTermDeposit deposit, RatesProvider provider)
The present value of the product is the value on the valuation date.
deposit - the productprovider - the rates providerpublic PointSensitivities presentValueSensitivity(ResolvedTermDeposit deposit, RatesProvider provider)
deposit - the productprovider - the rates providerpublic double parRate(ResolvedTermDeposit deposit, RatesProvider provider)
When the deposit has already started the number may not be meaningful as the remaining period is not in line with the accrual factor.
deposit - the productprovider - the rates providerpublic PointSensitivities parRateSensitivity(ResolvedTermDeposit deposit, RatesProvider provider)
The calculation is based on both of initial and final payments. Thus the number resulting may not be meaningful when deposit has already started and only the final payment remains (no initial payment).
deposit - the productprovider - the rates providerpublic double parSpread(ResolvedTermDeposit deposit, RatesProvider provider)
The calculation is based on both the initial and final payments. Thus the resulting number may not be meaningful when deposit has already started and only the final payment remains (no initial payment).
deposit - the productprovider - the rates providerpublic PointSensitivities parSpreadSensitivity(ResolvedTermDeposit deposit, RatesProvider provider)
The calculation is based on both of initial and final payments. Thus the number resulting may not be meaningful when deposit has already started and only the final payment remains (no initial payment).
deposit - the productprovider - the rates providerCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.