public final class CdsIndexTrade extends Object implements ProductTrade, ResolvableTrade<ResolvedCdsIndexTrade>, org.joda.beans.ImmutableBean, Serializable
An Over-The-Counter (OTC) trade in a CdsIndex.
A CDS index is a portofolio of single name credit default swaps. The contract periodically pays fixed coupons to the index buyer until the expiry, and in return, the index buyer receives the bond of a defaulted constituent legal entity for par.
| Modifier and Type | Class and Description |
|---|---|
static class |
CdsIndexTrade.Builder
The bean-builder for
CdsIndexTrade. |
static class |
CdsIndexTrade.Meta
The meta-bean for
CdsIndexTrade. |
| Modifier and Type | Method and Description |
|---|---|
static CdsIndexTrade.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.
|
CdsIndex |
getProduct()
Gets the CDS index product that was agreed when the trade occurred.
|
Optional<AdjustablePayment> |
getUpfrontFee()
Gets the upfront fee of the product.
|
int |
hashCode() |
static CdsIndexTrade.Meta |
meta()
The meta-bean for
CdsIndexTrade. |
CdsIndexTrade.Meta |
metaBean() |
ResolvedCdsIndexTrade |
resolve(ReferenceData refData)
Resolves this trade using the specified reference data.
|
PortfolioItemSummary |
summarize()
Summarizes the portfolio item.
|
CdsIndexTrade.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
CdsIndexTrade |
withInfo(PortfolioItemInfo info)
Returns an instance with the specified info.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetIdpublic CdsIndexTrade withInfo(PortfolioItemInfo info)
ProductTradewithInfo in interface PortfolioItemwithInfo in interface ProductTradewithInfo in interface ResolvableTrade<ResolvedCdsIndexTrade>withInfo in interface Tradeinfo - the new infopublic PortfolioItemSummary summarize()
PortfolioItemThis provides a summary, including a human readable description.
summarize in interface PortfolioItemsummarize in interface Tradepublic ResolvedCdsIndexTrade resolve(ReferenceData refData)
ResolvableTrade
This converts this trade to the equivalent resolved form.
All ReferenceDataId identifiers in this instance will be resolved.
The resulting ResolvedTrade is optimized for pricing.
Resolved objects may be 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.
resolve in interface Resolvable<ResolvedCdsIndexTrade>resolve in interface ResolvableTrade<ResolvedCdsIndexTrade>refData - the reference data to use when resolvingpublic static CdsIndexTrade.Meta meta()
CdsIndexTrade.public static CdsIndexTrade.Builder builder()
public CdsIndexTrade.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic TradeInfo getInfo()
This allows additional information to be attached to the trade.
getInfo in interface PortfolioItemgetInfo in interface Tradepublic CdsIndex getProduct()
The product captures the contracted financial details of the trade.
getProduct in interface ProductTradepublic Optional<AdjustablePayment> 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.
Some CDSs, especially legacy products, are traded at par and the upfront fee is not paid.
public CdsIndexTrade.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.