public static final class CapitalIndexedBondTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CapitalIndexedBondTrade>
CapitalIndexedBondTrade.| Modifier and Type | Method and Description |
|---|---|
CapitalIndexedBondTrade |
build() |
Object |
get(String propertyName) |
CapitalIndexedBondTrade.Builder |
info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.
|
CapitalIndexedBondTrade.Builder |
price(double price)
Sets the clean price at which the bond was traded.
|
CapitalIndexedBondTrade.Builder |
product(CapitalIndexedBond product)
Sets the bond that was traded.
|
CapitalIndexedBondTrade.Builder |
quantity(double quantity)
Sets the quantity that was traded.
|
CapitalIndexedBondTrade.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
CapitalIndexedBondTrade.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<CapitalIndexedBondTrade>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CapitalIndexedBondTrade>public CapitalIndexedBondTrade.Builder set(String propertyName, Object newValue)
public CapitalIndexedBondTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<CapitalIndexedBondTrade>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CapitalIndexedBondTrade>public CapitalIndexedBondTrade build()
public CapitalIndexedBondTrade.Builder info(TradeInfo info)
This allows additional information to be attached to the trade.
Either the trade or settlement date is required when calling CapitalIndexedBondTrade.resolve(ReferenceData).
info - the new value, not nullpublic CapitalIndexedBondTrade.Builder product(CapitalIndexedBond product)
The product captures the contracted financial details of the trade.
product - the new value, not nullpublic CapitalIndexedBondTrade.Builder quantity(double quantity)
This will be positive if buying and negative if selling.
quantity - the new valuepublic CapitalIndexedBondTrade.Builder price(double price)
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.
price - the new valuepublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CapitalIndexedBondTrade>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.