public class DiscountingOvernightFutureTradePricer extends Object
This function provides the ability to price a ResolvedOvernightFutureTrade.
(100 - percentRate).
Strata uses decimal prices for Overnight rate futures in the trade model, pricers and market data. The decimal price is based on the decimal rate equivalent to the percentage. For example, a price of 99.32 implies an interest rate of 0.68% which is represented in Strata by 0.9932.
| Modifier and Type | Field and Description |
|---|---|
static DiscountingOvernightFutureTradePricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
DiscountingOvernightFutureTradePricer(DiscountingOvernightFutureProductPricer productPricer)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
double |
forwardRate(ResolvedOvernightFutureTrade trade,
RatesProvider ratesProvider)
Returns the forward rate.
|
double |
parSpread(ResolvedOvernightFutureTrade trade,
RatesProvider ratesProvider,
double lastSettlementPrice)
Calculates the par spread of the Overnight rate future trade.
|
PointSensitivities |
parSpreadSensitivity(ResolvedOvernightFutureTrade trade,
RatesProvider ratesProvider)
Calculates the par spread sensitivity of the Overnight rate future trade.
|
CurrencyAmount |
presentValue(ResolvedOvernightFutureTrade trade,
RatesProvider ratesProvider,
double lastSettlementPrice)
Calculates the present value of the Overnight rate future trade.
|
PointSensitivities |
presentValueSensitivity(ResolvedOvernightFutureTrade trade,
RatesProvider ratesProvider)
Calculates the present value sensitivity of the Overnight rate future trade.
|
double |
price(ResolvedOvernightFutureTrade trade,
RatesProvider ratesProvider)
Calculates the price of the Overnight rate future trade.
|
PointSensitivities |
priceSensitivity(ResolvedOvernightFutureTrade trade,
RatesProvider ratesProvider)
Calculates the price sensitivity of the Overnight rate future product.
|
public static final DiscountingOvernightFutureTradePricer DEFAULT
public DiscountingOvernightFutureTradePricer(DiscountingOvernightFutureProductPricer productPricer)
productPricer - the pricer for ResolvedOvernightFuturepublic double price(ResolvedOvernightFutureTrade trade, RatesProvider ratesProvider)
The price of the trade is the price on the valuation date. The price is calculated using the discounting model.
trade - the traderatesProvider - the rates providerpublic PointSensitivities priceSensitivity(ResolvedOvernightFutureTrade trade, RatesProvider ratesProvider)
The price sensitivity of the product is the sensitivity of the price to the underlying curves.
trade - the traderatesProvider - the rates providerpublic CurrencyAmount presentValue(ResolvedOvernightFutureTrade trade, RatesProvider ratesProvider, double lastSettlementPrice)
The present value of the product is the value on the valuation date. The current price is calculated using the discounting model.
This method calculates based on the difference between the model price and the last settlement price, or the trade price if traded on the valuation date.
trade - the traderatesProvider - the rates providerlastSettlementPrice - the last settlement price used for margining, in decimal formpublic PointSensitivities presentValueSensitivity(ResolvedOvernightFutureTrade trade, RatesProvider ratesProvider)
The present value sensitivity of the trade is the sensitivity of the present value to the underlying curves.
trade - the traderatesProvider - the rates providerpublic double parSpread(ResolvedOvernightFutureTrade trade, RatesProvider ratesProvider, double lastSettlementPrice)
The par spread is defined in the following way. When the reference price (or market quote) is increased by the par spread, the present value of the trade is zero. The current price is calculated using the discounting model.
This method calculates based on the difference between the model price and the last settlement price, or the trade price if traded on the valuation date.
trade - the traderatesProvider - the rates providerlastSettlementPrice - the last settlement price used for margining, in decimal formpublic PointSensitivities parSpreadSensitivity(ResolvedOvernightFutureTrade trade, RatesProvider ratesProvider)
The par spread sensitivity of the trade is the sensitivity of the par spread to the underlying curves.
trade - the traderatesProvider - the rates providerpublic double forwardRate(ResolvedOvernightFutureTrade trade, RatesProvider ratesProvider)
trade - the overnight future traderatesProvider - the rates providerCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.