public final class ResolvedCdsIndexTrade extends Object implements ResolvedTrade, org.joda.beans.ImmutableBean, Serializable
This is the resolved form of CdsIndexTrade and is the primary input to the pricers.
Applications will typically create a ResolvedCdsIndexTrade from a CdsIndexTrade
using CdsIndexTrade.resolve(ReferenceData).
A ResolvedCdsIndexTrade 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.
| Modifier and Type | Class and Description |
|---|---|
static class |
ResolvedCdsIndexTrade.Builder
The bean-builder for
ResolvedCdsIndexTrade. |
static class |
ResolvedCdsIndexTrade.Meta
The meta-bean for
ResolvedCdsIndexTrade. |
| Modifier and Type | Method and Description |
|---|---|
static ResolvedCdsIndexTrade.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
TradeInfo |
getInfo()
Gets the additional trade information, defaulted to an empty instance.
|
ResolvedCdsIndex |
getProduct()
Gets the resolved CDS index product.
|
Optional<Payment> |
getUpfrontFee()
Gets the upfront fee of the product.
|
int |
hashCode() |
static ResolvedCdsIndexTrade.Meta |
meta()
The meta-bean for
ResolvedCdsIndexTrade. |
ResolvedCdsIndexTrade.Meta |
metaBean() |
ResolvedCdsIndexTrade.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
ResolvedCdsTrade |
toSingleNameCds()
Reduce this instance to
ResolvedCdsTrade. |
String |
toString() |
public ResolvedCdsTrade toSingleNameCds()
ResolvedCdsTrade.
The resultant object is used for pricing CDS index trades under the homogeneous pool assumption on constituent credit curves.
public static ResolvedCdsIndexTrade.Meta meta()
ResolvedCdsIndexTrade.public static ResolvedCdsIndexTrade.Builder builder()
public ResolvedCdsIndexTrade.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic TradeInfo getInfo()
This allows additional information to be attached to the trade.
getInfo in interface ResolvedTradepublic ResolvedCdsIndex getProduct()
The product captures the contracted financial details of the trade.
getProduct in interface ResolvedTradepublic Optional<Payment> getUpfrontFee()
This specifies a single amount payable by the buyer to the seller Thus the sign must be compatible with the product Pay/Receive flag.
public ResolvedCdsIndexTrade.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.