public class DiscountingOvernightFutureProductPricer extends Object
This function provides the ability to price a ResolvedOvernightFuture.
(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 DiscountingOvernightFutureProductPricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
DiscountingOvernightFutureProductPricer(RateComputationFn<RateComputation> rateComputationFn)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
double |
forwardRate(ResolvedOvernightFuture future,
RatesProvider ratesProvider)
Returns the forward rate.
|
double |
price(ResolvedOvernightFuture future,
RatesProvider ratesProvider)
Calculates the price of the Overnight rate future product.
|
PointSensitivities |
priceSensitivity(ResolvedOvernightFuture future,
RatesProvider ratesProvider)
Calculates the price sensitivity of the Overnight rate future product.
|
public static final DiscountingOvernightFutureProductPricer DEFAULT
public DiscountingOvernightFutureProductPricer(RateComputationFn<RateComputation> rateComputationFn)
rateComputationFn - the rate computation functionpublic double price(ResolvedOvernightFuture future, RatesProvider ratesProvider)
The price of the product is the price on the valuation date.
future - the futureratesProvider - the rates providerpublic PointSensitivities priceSensitivity(ResolvedOvernightFuture future, RatesProvider ratesProvider)
The price sensitivity of the product is the sensitivity of the price to the underlying curves.
future - the futureratesProvider - the rates providerpublic double forwardRate(ResolvedOvernightFuture future, RatesProvider ratesProvider)
future - the overnight futureratesProvider - the rates providerCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.