| Modifier and Type | Method and Description |
|---|---|
Fra |
build() |
Fra.Builder |
businessDayAdjustment(BusinessDayAdjustment businessDayAdjustment)
Sets the business day adjustment to apply to the start and end date, optional.
|
Fra.Builder |
buySell(BuySell buySell)
Sets whether the FRA is buy or sell.
|
Fra.Builder |
currency(Currency currency)
Sets the primary currency, defaulted to the currency of the index.
|
Fra.Builder |
dayCount(DayCount dayCount)
Sets the day count convention applicable, defaulted to the day count of the index.
|
Fra.Builder |
discounting(FraDiscountingMethod discounting)
Sets the method to use for discounting, defaulted to 'ISDA' or 'AFMA'.
|
Fra.Builder |
endDate(LocalDate endDate)
Sets the end date, which is the termination date of the FRA.
|
Fra.Builder |
fixedRate(double fixedRate)
Sets the fixed rate of interest.
|
Fra.Builder |
fixingDateOffset(DaysAdjustment fixingDateOffset)
Sets the offset of the fixing date from the start date.
|
Object |
get(String propertyName) |
Fra.Builder |
index(IborIndex index)
Sets the Ibor index.
|
Fra.Builder |
indexInterpolated(IborIndex indexInterpolated)
Sets the second Ibor index to be used for linear interpolation, optional.
|
Fra.Builder |
notional(double notional)
Sets the notional amount.
|
Fra.Builder |
paymentDate(AdjustableDate paymentDate)
Sets the payment date.
|
Fra.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
Fra.Builder |
set(String propertyName,
Object newValue) |
Fra.Builder |
startDate(LocalDate startDate)
Sets the start date, which is the effective date of the FRA.
|
String |
toString() |
public Fra.Builder set(String propertyName, Object newValue)
public Fra.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
public Fra build()
public Fra.Builder buySell(BuySell buySell)
A value of 'Buy' implies that the floating rate is received from the counterparty, with the fixed rate being paid. A value of 'Sell' implies that the floating rate is paid to the counterparty, with the fixed rate being received.
buySell - the new value, not nullpublic Fra.Builder currency(Currency currency)
This is the currency of the FRA and the currency that payment is made in. The data model permits this currency to differ from that of the index, however the two are typically the same.
When building, this will default to the currency of the index if not specified.
currency - the new value, not nullpublic Fra.Builder notional(double notional)
The notional expressed here must be positive.
The currency of the notional is specified by currency.
notional - the new valuepublic Fra.Builder startDate(LocalDate startDate)
This is the first date that interest accrues.
This date is typically set to be a valid business day.
Optionally, the businessDayAdjustment property may be set to provide a rule for adjustment.
startDate - the new value, not nullpublic Fra.Builder endDate(LocalDate endDate)
This is the last day that interest accrues. This date must be after the start date.
This date is typically set to be a valid business day.
Optionally, the businessDayAdjustment property may be set to provide a rule for adjustment.
endDate - the new value, not nullpublic Fra.Builder businessDayAdjustment(BusinessDayAdjustment businessDayAdjustment)
The start and end date are typically defined as valid business days and thus do not need to be adjusted. If this optional property is present, then the start and end date will be adjusted as defined here.
businessDayAdjustment - the new valuepublic Fra.Builder paymentDate(AdjustableDate paymentDate)
The payment date is typically the same as the start date. The date may be subject to adjustment to ensure it is a business day.
When building, this will default to the start date with no adjustments if not specified.
paymentDate - the new value, not nullpublic Fra.Builder fixedRate(double fixedRate)
See buySell to determine whether this rate is paid or received.
fixedRate - the new valuepublic Fra.Builder index(IborIndex index)
The floating rate to be paid is based on this index
It will be a well known market index such as 'GBP-LIBOR-3M'.
This will be used throughout unless indexInterpolated is present.
See buySell to determine whether this rate is paid or received.
index - the new value, not nullpublic Fra.Builder indexInterpolated(IborIndex indexInterpolated)
This will be used with index to linearly interpolate the rate.
It will be a well known market index such as 'GBP-LIBOR-6M'.
This index may be shorter or longer than index, but not the same.
indexInterpolated - the new valuepublic Fra.Builder fixingDateOffset(DaysAdjustment fixingDateOffset)
The offset is applied to the start date and is typically minus 2 business days. The data model permits the offset to differ from that of the index, however the two are typically the same.
When building, this will default to the fixing date offset of the index if not specified.
fixingDateOffset - the new value, not nullpublic Fra.Builder dayCount(DayCount dayCount)
This is used to convert dates to a numerical value. The data model permits the day count to differ from that of the index, however the two are typically the same.
When building, this will default to the day count of the index if not specified.
dayCount - the new value, not nullpublic Fra.Builder discounting(FraDiscountingMethod discounting)
There are different approaches FRA pricing in the area of discounting. This method specifies the approach for this FRA.
When building, this will default 'AFMA' if the index has the currency 'AUD' or 'NZD' and to 'ISDA' otherwise.
discounting - 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.