public interface CdsConvention extends TradeConvention, Named
| Modifier and Type | Method and Description |
|---|---|
default CdsTrade |
createTrade(StandardId legalEntityId,
LocalDate tradeDate,
LocalDate startDate,
LocalDate endDate,
BuySell buySell,
double notional,
double fixedRate,
AdjustablePayment upFrontFee,
ReferenceData refData)
Creates a CDS trade with upfront fee from trade date, start date and end date.
|
default CdsTrade |
createTrade(StandardId legalEntityId,
LocalDate tradeDate,
LocalDate startDate,
LocalDate endDate,
BuySell buySell,
double notional,
double fixedRate,
ReferenceData refData)
Creates a CDS trade from trade date, start date and end date.
|
default CdsTrade |
createTrade(StandardId legalEntityId,
LocalDate tradeDate,
LocalDate startDate,
Tenor tenor,
BuySell buySell,
double notional,
double fixedRate,
AdjustablePayment upFrontFee,
ReferenceData refData)
Creates a CDS trade with upfront fee based on the trade date, start date and the IMM date logic.
|
default CdsTrade |
createTrade(StandardId legalEntityId,
LocalDate tradeDate,
LocalDate startDate,
Tenor tenor,
BuySell buySell,
double notional,
double fixedRate,
ReferenceData refData)
Creates a CDS trade based on the trade date, start date and the IMM date logic.
|
default CdsTrade |
createTrade(StandardId legalEntityId,
LocalDate tradeDate,
Tenor tenor,
BuySell buySell,
double notional,
double fixedRate,
AdjustablePayment upFrontFee,
ReferenceData refData)
Creates a CDS trade with upfront fee based on the trade date and the IMM date logic.
|
default CdsTrade |
createTrade(StandardId legalEntityId,
LocalDate tradeDate,
Tenor tenor,
BuySell buySell,
double notional,
double fixedRate,
ReferenceData refData)
Creates a CDS trade based on the trade date and the IMM date logic.
|
static ExtendedEnum<CdsConvention> |
extendedEnum()
Gets the extended enum helper.
|
Currency |
getCurrency()
Get the currency of the CDS.
|
String |
getName()
Gets the name that uniquely identifies this convention.
|
DaysAdjustment |
getSettlementDateOffset()
Get the number of days between valuation date and settlement date.
|
static CdsConvention |
of(String uniqueName)
Obtains an instance from the specified unique name.
|
CdsTrade |
toTrade(StandardId legalEntityId,
TradeInfo tradeInfo,
LocalDate startDate,
LocalDate endDate,
BuySell buySell,
double notional,
double fixedRate)
Creates a CDS trade with
TradeInfo. |
CdsTrade |
toTrade(StandardId legalEntityId,
TradeInfo tradeInfo,
LocalDate startDate,
LocalDate endDate,
BuySell buySell,
double notional,
double fixedRate,
AdjustablePayment upFrontFee)
Creates a CDS trade with upfront fee and
TradeInfo. |
static CdsConvention of(String uniqueName)
uniqueName - the unique nameIllegalArgumentException - if the name is not knownstatic ExtendedEnum<CdsConvention> extendedEnum()
This helper allows instances of the convention to be looked up. It also provides the complete set of available instances.
DaysAdjustment getSettlementDateOffset()
It is usually 3 business days for standardised CDS contracts.
Currency getCurrency()
The amounts of the notional are expressed in terms of this currency.
default CdsTrade createTrade(StandardId legalEntityId, LocalDate tradeDate, Tenor tenor, BuySell buySell, double notional, double fixedRate, ReferenceData refData)
The start date and end date are computed from trade date with the standard semi-annual roll convention.
legalEntityId - the legal entity IDtradeDate - the trade datetenor - the tenorbuySell - buy or sellnotional - the notionalfixedRate - the fixed raterefData - the reference datadefault CdsTrade createTrade(StandardId legalEntityId, LocalDate tradeDate, LocalDate startDate, Tenor tenor, BuySell buySell, double notional, double fixedRate, ReferenceData refData)
The end date is computed from the start date with the standard semi-annual roll convention.
legalEntityId - the legal entity IDtradeDate - the trade datestartDate - the start datetenor - the tenorbuySell - buy or sellnotional - the notionalfixedRate - the fixed raterefData - the reference datadefault CdsTrade createTrade(StandardId legalEntityId, LocalDate tradeDate, LocalDate startDate, LocalDate endDate, BuySell buySell, double notional, double fixedRate, ReferenceData refData)
The settlement date is computed from the trade date using settlementDateOffset defined in the convention.
legalEntityId - the legal entity IDtradeDate - the trade datestartDate - the start dateendDate - the end datebuySell - buy or sellnotional - the notionalfixedRate - the fixed raterefData - the reference dataCdsTrade toTrade(StandardId legalEntityId, TradeInfo tradeInfo, LocalDate startDate, LocalDate endDate, BuySell buySell, double notional, double fixedRate)
TradeInfo.legalEntityId - the legal entity IDtradeInfo - the trade infostartDate - the start dateendDate - the end datebuySell - buy or sellnotional - the notionalfixedRate - the fixed ratedefault CdsTrade createTrade(StandardId legalEntityId, LocalDate tradeDate, Tenor tenor, BuySell buySell, double notional, double fixedRate, AdjustablePayment upFrontFee, ReferenceData refData)
The start date and end date are computed from trade date with the standard semi-annual roll convention.
legalEntityId - the legal entity IDtradeDate - the trade datetenor - the tenorbuySell - buy or sellnotional - the notionalfixedRate - the fixed rateupFrontFee - the upFront feerefData - the reference datadefault CdsTrade createTrade(StandardId legalEntityId, LocalDate tradeDate, LocalDate startDate, Tenor tenor, BuySell buySell, double notional, double fixedRate, AdjustablePayment upFrontFee, ReferenceData refData)
The end date is computed from the start date with the standard semi-annual roll convention.
legalEntityId - the legal entity IDtradeDate - the trade datestartDate - the start datetenor - the tenorbuySell - buy or sellnotional - the notionalfixedRate - the fixed rateupFrontFee - the upFront feerefData - the reference datadefault CdsTrade createTrade(StandardId legalEntityId, LocalDate tradeDate, LocalDate startDate, LocalDate endDate, BuySell buySell, double notional, double fixedRate, AdjustablePayment upFrontFee, ReferenceData refData)
The settlement date is computed from the trade date using settlementDateOffset defined in the convention.
legalEntityId - the legal entity IDtradeDate - the trade datestartDate - the start dateendDate - the end datebuySell - buy or sellnotional - the notionalfixedRate - the fixed rateupFrontFee - the upFront feerefData - the reference dataCdsTrade toTrade(StandardId legalEntityId, TradeInfo tradeInfo, LocalDate startDate, LocalDate endDate, BuySell buySell, double notional, double fixedRate, AdjustablePayment upFrontFee)
TradeInfo.legalEntityId - the legal entity IDtradeInfo - the trade infostartDate - the start dateendDate - the end datebuySell - buy or sellnotional - the notionalfixedRate - the fixed rateupFrontFee - the upFront feeString getName()
This name is used in serialization and can be parsed using of(String).
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.