public final class ResolvedDsf extends Object implements ResolvedProduct, org.joda.beans.ImmutableBean, Serializable
This is the resolved form of Dsf and is an input to the pricers.
Applications will typically create a ResolvedDsf from a Dsf
using Dsf.resolve(ReferenceData).
A ResolvedDsf is bound to data that changes over time, such as holiday calendars.
If the data changes, such as the addition of a new holiday, the resolved form will not be updated.
Care must be taken when placing the resolved form in a cache or persistence layer.
(100 + percentPv), or 0.182% in this example.
Strata uses decimal prices for DSFs in the trade model, pricers and market data. The decimal price is based on the decimal multiplier equivalent to the implied percentage. Thus the market price of 100.182 is represented in Strata by 1.00182.
| Modifier and Type | Class and Description |
|---|---|
static class |
ResolvedDsf.Builder
The bean-builder for
ResolvedDsf. |
static class |
ResolvedDsf.Meta
The meta-bean for
ResolvedDsf. |
| Modifier and Type | Method and Description |
|---|---|
static ResolvedDsf.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
Currency |
getCurrency()
Gets the currency of the underlying swap.
|
LocalDate |
getDeliveryDate()
Gets the delivery date.
|
LocalDate |
getLastTradeDate()
Gets the last date of trading.
|
double |
getNotional()
Gets the notional of the futures.
|
SecurityId |
getSecurityId()
Gets the security identifier.
|
ResolvedSwap |
getUnderlyingSwap()
Gets the underlying swap.
|
int |
hashCode() |
static ResolvedDsf.Meta |
meta()
The meta-bean for
ResolvedDsf. |
ResolvedDsf.Meta |
metaBean() |
ResolvedDsf.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public Currency getCurrency()
The underlying swap must have a single currency.
public static ResolvedDsf.Meta meta()
ResolvedDsf.public static ResolvedDsf.Builder builder()
public ResolvedDsf.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic SecurityId getSecurityId()
This identifier uniquely identifies the security within the system.
public double getNotional()
This is also called face value or contract value.
public LocalDate getDeliveryDate()
The underlying swap is delivered on this date.
public LocalDate getLastTradeDate()
This date must be before the delivery date of the underlying swap.
public ResolvedSwap getUnderlyingSwap()
The delivery date of the future is typically the first accrual date of the underlying swap. The swap should be a receiver swap of notional 1.
public ResolvedDsf.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.