public class DiscountingIborFutureProductPricer extends Object
This function provides the ability to price a ResolvedIborFuture.
(100 - percentRate).
Strata uses decimal prices for Ibor 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 DiscountingIborFutureProductPricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
DiscountingIborFutureProductPricer()
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
double |
forwardRate(ResolvedIborFuture future,
RatesProvider ratesProvider)
Returns the forward rate.
|
double |
price(ResolvedIborFuture future,
RatesProvider ratesProvider)
Calculates the price of the Ibor future product.
|
PointSensitivities |
priceSensitivity(ResolvedIborFuture future,
RatesProvider ratesProvider)
Calculates the price sensitivity of the Ibor future product.
|
public static final DiscountingIborFutureProductPricer DEFAULT
public DiscountingIborFutureProductPricer()
public double price(ResolvedIborFuture future, RatesProvider ratesProvider)
The price of the product is the price on the valuation date.
future - the futureratesProvider - the rates providerpublic PointSensitivities priceSensitivity(ResolvedIborFuture 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(ResolvedIborFuture future, RatesProvider ratesProvider)
future - the ibor futureratesProvider - the rates providerCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.