public final class TermDepositTrade extends Object implements ProductTrade, ResolvableTrade<ResolvedTermDepositTrade>, org.joda.beans.ImmutableBean, Serializable
An Over-The-Counter (OTC) trade in a TermDeposit.
A term deposit is a financial instrument that provides a fixed rate of interest on an amount for a specific term. For example, investing GBP 1,000 for 3 months at a 1% interest rate.
| Modifier and Type | Class and Description |
|---|---|
static class |
TermDepositTrade.Builder
The bean-builder for
TermDepositTrade. |
static class |
TermDepositTrade.Meta
The meta-bean for
TermDepositTrade. |
| Modifier and Type | Method and Description |
|---|---|
static TermDepositTrade.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
TradeInfo |
getInfo()
Gets the additional trade information, defaulted to an empty instance.
|
TermDeposit |
getProduct()
Gets the term deposit product that was agreed when the trade occurred.
|
int |
hashCode() |
static TermDepositTrade.Meta |
meta()
The meta-bean for
TermDepositTrade. |
TermDepositTrade.Meta |
metaBean() |
static TermDepositTrade |
of(TradeInfo info,
TermDeposit product)
Obtains an instance of a Term Deposit trade.
|
ResolvedTermDepositTrade |
resolve(ReferenceData refData)
Resolves this trade using the specified reference data.
|
PortfolioItemSummary |
summarize()
Summarizes the portfolio item.
|
TermDepositTrade.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
TermDepositTrade |
withInfo(PortfolioItemInfo info)
Returns an instance with the specified info.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetIdpublic static TermDepositTrade of(TradeInfo info, TermDeposit product)
info - the trade infoproduct - the productpublic TermDepositTrade withInfo(PortfolioItemInfo info)
ProductTradewithInfo in interface PortfolioItemwithInfo in interface ProductTradewithInfo in interface ResolvableTrade<ResolvedTermDepositTrade>withInfo in interface Tradeinfo - the new infopublic PortfolioItemSummary summarize()
PortfolioItemThis provides a summary, including a human readable description.
summarize in interface PortfolioItemsummarize in interface Tradepublic ResolvedTermDepositTrade resolve(ReferenceData refData)
ResolvableTrade
This converts this trade to the equivalent resolved form.
All ReferenceDataId identifiers in this instance will be resolved.
The resulting ResolvedTrade is optimized for pricing.
Resolved objects may be 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.
resolve in interface Resolvable<ResolvedTermDepositTrade>resolve in interface ResolvableTrade<ResolvedTermDepositTrade>refData - the reference data to use when resolvingpublic static TermDepositTrade.Meta meta()
TermDepositTrade.public static TermDepositTrade.Builder builder()
public TermDepositTrade.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic TradeInfo getInfo()
This allows additional information to be attached to the trade.
getInfo in interface PortfolioItemgetInfo in interface Tradepublic TermDeposit getProduct()
The product captures the contracted financial details of the trade.
getProduct in interface ProductTradepublic TermDepositTrade.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.