public class DiscountingTermDepositTradePricer extends Object
This provides the ability to price ResolvedTermDeposit.
| Modifier and Type | Field and Description |
|---|---|
static DiscountingTermDepositTradePricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
DiscountingTermDepositTradePricer(DiscountingTermDepositProductPricer productPricer)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
MultiCurrencyAmount |
currencyExposure(ResolvedTermDepositTrade trade,
RatesProvider provider)
Calculates the currency exposure.
|
CurrencyAmount |
currentCash(ResolvedTermDepositTrade trade,
RatesProvider provider)
Calculates the current cash.
|
double |
parRate(ResolvedTermDepositTrade trade,
RatesProvider provider)
Calculates the deposit fair rate given the start and end time and the accrual factor.
|
PointSensitivities |
parRateSensitivity(ResolvedTermDepositTrade trade,
RatesProvider provider)
Calculates the par rate curve sensitivity.
|
double |
parSpread(ResolvedTermDepositTrade trade,
RatesProvider provider)
Calculates the spread to be added to the deposit rate to have a zero present value.
|
PointSensitivities |
parSpreadSensitivity(ResolvedTermDepositTrade trade,
RatesProvider provider)
Calculates the par spread curve sensitivity.
|
CurrencyAmount |
presentValue(ResolvedTermDepositTrade trade,
RatesProvider provider)
Calculates the present value by discounting the final cash flow (nominal + interest)
and the initial payment (initial amount).
|
PointSensitivities |
presentValueSensitivity(ResolvedTermDepositTrade trade,
RatesProvider provider)
Calculates the present value sensitivity by discounting the final cash flow (nominal + interest)
and the initial payment (initial amount).
|
public static final DiscountingTermDepositTradePricer DEFAULT
public DiscountingTermDepositTradePricer(DiscountingTermDepositProductPricer productPricer)
productPricer - the pricer for ResolvedTermDepositpublic CurrencyAmount presentValue(ResolvedTermDepositTrade trade, RatesProvider provider)
The present value of the trade is the value on the valuation date.
trade - the tradeprovider - the rates providerpublic PointSensitivities presentValueSensitivity(ResolvedTermDepositTrade trade, RatesProvider provider)
trade - the tradeprovider - the rates providerpublic double parRate(ResolvedTermDepositTrade trade, 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.
trade - the tradeprovider - the rates providerpublic PointSensitivities parRateSensitivity(ResolvedTermDepositTrade trade, 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).
trade - the tradeprovider - the rates providerpublic double parSpread(ResolvedTermDepositTrade trade, 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).
trade - the tradeprovider - the rates providerpublic PointSensitivities parSpreadSensitivity(ResolvedTermDepositTrade trade, 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).
trade - the tradeprovider - the rates providerpublic MultiCurrencyAmount currencyExposure(ResolvedTermDepositTrade trade, RatesProvider provider)
trade - the tradeprovider - the rates providerpublic CurrencyAmount currentCash(ResolvedTermDepositTrade 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.