| Modifier and Type | Method and Description |
|---|---|
Cds |
build() |
Cds.Builder |
buySell(BuySell buySell)
Sets whether the CDS is buy or sell.
|
Cds.Builder |
currency(Currency currency)
Sets the currency of the CDS.
|
Cds.Builder |
dayCount(DayCount dayCount)
Sets the day count convention.
|
Cds.Builder |
fixedRate(double fixedRate)
Sets the fixed coupon rate.
|
Object |
get(String propertyName) |
Cds.Builder |
legalEntityId(StandardId legalEntityId)
Sets the legal entity identifier.
|
Cds.Builder |
notional(double notional)
Sets the notional amount, must be non-negative.
|
Cds.Builder |
paymentOnDefault(PaymentOnDefault paymentOnDefault)
Sets the payment on default.
|
Cds.Builder |
paymentSchedule(PeriodicSchedule paymentSchedule)
Sets the payment schedule.
|
Cds.Builder |
protectionStart(ProtectionStartOfDay protectionStart)
Sets the protection start of the day.
|
Cds.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
Cds.Builder |
set(String propertyName,
Object newValue) |
Cds.Builder |
settlementDateOffset(DaysAdjustment settlementDateOffset)
Sets the number of days between valuation date and settlement date.
|
Cds.Builder |
stepinDateOffset(DaysAdjustment stepinDateOffset)
Sets the number of days between valuation date and step-in date.
|
String |
toString() |
public Cds.Builder set(String propertyName, Object newValue)
public Cds.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
public Cds build()
public Cds.Builder buySell(BuySell buySell)
A value of 'Buy' implies buying protection, where the fixed coupon is paid and the protection is received in the event of default. A value of 'Sell' implies selling protection, where the fixed coupon is received and the protection is paid in the event of default.
buySell - the new value, not nullpublic Cds.Builder legalEntityId(StandardId legalEntityId)
This identifier is used for the reference legal entity of the CDS.
legalEntityId - the new value, not nullpublic Cds.Builder currency(Currency currency)
The amounts of the notional are expressed in terms of this currency.
currency - the new value, not nullpublic Cds.Builder notional(double notional)
The fixed notional amount applicable during the lifetime of the CDS.
The currency of the notional is specified by currency.
notional - the new valuepublic Cds.Builder paymentSchedule(PeriodicSchedule paymentSchedule)
This is used to define the payment periods.
paymentSchedule - the new value, not nullpublic Cds.Builder fixedRate(double fixedRate)
This must be represented in decimal form.
fixedRate - the new valuepublic Cds.Builder dayCount(DayCount dayCount)
This is used to convert dates to a numerical value.
When building, this will default to 'Act/360'.
dayCount - the new value, not nullpublic Cds.Builder paymentOnDefault(PaymentOnDefault paymentOnDefault)
Whether the accrued premium is paid in the event of a default.
When building, this will default to 'AccruedPremium'.
paymentOnDefault - the new value, not nullpublic Cds.Builder protectionStart(ProtectionStartOfDay protectionStart)
When the protection starts on the start date.
When building, this will default to 'Beginning'.
protectionStart - the new value, not nullpublic Cds.Builder stepinDateOffset(DaysAdjustment stepinDateOffset)
The step-in date is also called protection effective date. It is usually 1 calendar day for standardized CDS contracts.
When building, this will default to 1 calendar day.
stepinDateOffset - the new value, not nullpublic Cds.Builder settlementDateOffset(DaysAdjustment settlementDateOffset)
It is usually 3 business days for standardized CDS contracts.
When building, this will default to 3 business days in the calendar of the payment schedule.
settlementDateOffset - the new value, not nullCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.