Modifier and Type | Method and Description |
---|---|
CdsTrade |
build() |
Object |
get(String propertyName) |
CdsTrade.Builder |
info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.
|
CdsTrade.Builder |
product(Cds product)
Sets the CDS product that was agreed when the trade occurred.
|
CdsTrade.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
CdsTrade.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
CdsTrade.Builder |
upfrontFee(AdjustablePayment upfrontFee)
Sets the upfront fee of the product.
|
public CdsTrade.Builder set(String propertyName, Object newValue)
public CdsTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
public CdsTrade build()
public CdsTrade.Builder info(TradeInfo info)
This allows additional information to be attached to the trade.
info
- the new value, not nullpublic CdsTrade.Builder product(Cds product)
The product captures the contracted financial details of the trade.
product
- the new value, not nullpublic CdsTrade.Builder upfrontFee(AdjustablePayment upfrontFee)
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.
upfrontFee
- the new valueCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.