public static final class FixedCouponBondOption.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FixedCouponBondOption>
FixedCouponBondOption.| Modifier and Type | Method and Description |
|---|---|
FixedCouponBondOption |
build() |
FixedCouponBondOption.Builder |
cleanStrikePrice(double cleanStrikePrice)
Sets the clean price at which the option can be exercised, in decimal form.
|
FixedCouponBondOption.Builder |
expiryDate(AdjustableDate expiryDate)
Sets the expiry date of the option.
|
FixedCouponBondOption.Builder |
expiryTime(LocalTime expiryTime)
Sets the expiry time of the option.
|
FixedCouponBondOption.Builder |
expiryZone(ZoneId expiryZone)
Sets the time-zone of the expiry time.
|
Object |
get(String propertyName) |
FixedCouponBondOption.Builder |
longShort(LongShort longShort)
Sets whether the option is long or short.
|
FixedCouponBondOption.Builder |
quantity(double quantity)
Sets the quantity that was traded.
|
FixedCouponBondOption.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
FixedCouponBondOption.Builder |
set(String propertyName,
Object newValue) |
FixedCouponBondOption.Builder |
settlementDate(AdjustableDate settlementDate)
Sets the settlement date when the option is exercised.
|
String |
toString() |
FixedCouponBondOption.Builder |
underlying(FixedCouponBond underlying)
Sets the bond underlying the option.
|
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<FixedCouponBondOption>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FixedCouponBondOption>public FixedCouponBondOption.Builder set(String propertyName, Object newValue)
public FixedCouponBondOption.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<FixedCouponBondOption>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FixedCouponBondOption>public FixedCouponBondOption build()
public FixedCouponBondOption.Builder longShort(LongShort longShort)
Long indicates that the owner has the right to exercise the option at expiry.
longShort - the new value, not nullpublic FixedCouponBondOption.Builder underlying(FixedCouponBond underlying)
underlying - the new value, not nullpublic FixedCouponBondOption.Builder expiryDate(AdjustableDate expiryDate)
This is the last date that the option can be exercised.
This date is typically set to be a valid business day.
However, the businessDayAdjustment property may be set to provide a rule for adjustment.
expiryDate - the new value, not nullpublic FixedCouponBondOption.Builder expiryTime(LocalTime expiryTime)
The expiry time is related to the expiry date and time-zone.
expiryTime - the new value, not nullpublic FixedCouponBondOption.Builder expiryZone(ZoneId expiryZone)
The expiry time-zone is related to the expiry date and time.
expiryZone - the new value, not nullpublic FixedCouponBondOption.Builder quantity(double quantity)
This will be positive if buying (call) and negative if selling (put).
quantity - the new valuepublic FixedCouponBondOption.Builder cleanStrikePrice(double cleanStrikePrice)
The "clean" price excludes any accrued interest.
Strata uses decimal prices for bonds in the trade model, pricers and market data. For example, a price of 99.32% is represented in Strata by 0.9932.
cleanStrikePrice - the new valuepublic FixedCouponBondOption.Builder settlementDate(AdjustableDate settlementDate)
This date is typically set to be a valid business day.
However, the businessDayAdjustment property may be set to provide a rule for adjustment.
settlementDate - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FixedCouponBondOption>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.