public final class ResolvedFixedCouponBondTrade extends Object implements ResolvedTrade, org.joda.beans.ImmutableBean, Serializable
This is the resolved form of FixedCouponBondTrade and is the primary input to the pricers.
Applications will typically create a ResolvedFixedCouponBondTrade from a FixedCouponBondTrade
using FixedCouponBondTrade.resolve(ReferenceData).
It is also the resolved form of FixedCouponBondPosition for those cases where a position is held.
The position is priced as though the trade is fully settled.
A ResolvedFixedCouponBondTrade is bound to data that changes over time, such as holiday calendars.
If the data changes, such as the addition of a new holiday, the resolved form will not be updated.
Care must be taken when placing the resolved form in a cache or persistence layer.
| Modifier and Type | Class and Description |
|---|---|
static class |
ResolvedFixedCouponBondTrade.Builder
The bean-builder for
ResolvedFixedCouponBondTrade. |
static class |
ResolvedFixedCouponBondTrade.Meta
The meta-bean for
ResolvedFixedCouponBondTrade. |
| Modifier and Type | Method and Description |
|---|---|
static ResolvedFixedCouponBondTrade.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
PortfolioItemInfo |
getInfo()
Gets the additional information, defaulted to an empty instance.
|
ResolvedFixedCouponBond |
getProduct()
Gets the resolved fixed coupon bond product.
|
double |
getQuantity()
Gets the quantity, indicating the number of bond contracts in the trade.
|
Optional<ResolvedFixedCouponBondSettlement> |
getSettlement()
Gets the settlement details of the bond trade.
|
int |
hashCode() |
static ResolvedFixedCouponBondTrade.Meta |
meta()
The meta-bean for
ResolvedFixedCouponBondTrade. |
ResolvedFixedCouponBondTrade.Meta |
metaBean() |
ResolvedFixedCouponBondTrade.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public static ResolvedFixedCouponBondTrade.Meta meta()
ResolvedFixedCouponBondTrade.public static ResolvedFixedCouponBondTrade.Builder builder()
public ResolvedFixedCouponBondTrade.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic PortfolioItemInfo getInfo()
This allows additional information to be attached.
getInfo in interface ResolvedTradepublic ResolvedFixedCouponBond getProduct()
The product captures the contracted financial details of the trade.
getProduct in interface ResolvedTradepublic double getQuantity()
This will be positive if buying and negative if selling.
public Optional<ResolvedFixedCouponBondSettlement> getSettlement()
When this class is used to represent a position, this property will be empty.
public ResolvedFixedCouponBondTrade.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.