public final class LoanTrade extends Object implements com.opengamma.strata.product.ProductTrade, Proratable<ProratedLoanTrade>, org.joda.beans.ImmutableBean
A loan trade represents the purchase or sale of a loan facility. The prorating of a loan trade accounts just for paydown-on-trade-date behavior.
Modifier and Type | Class and Description |
---|---|
static class |
LoanTrade.Builder
The bean-builder for
LoanTrade . |
static class |
LoanTrade.Meta
The meta-bean for
LoanTrade . |
Modifier and Type | Method and Description |
---|---|
static LoanTrade.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
LoanTradingAccrualSettlement |
getAccrualSettlementType()
Gets settlement accrued interest treatment, e.g.
|
double |
getAmount()
Gets the traded commitment amount.
|
LoanTradingAssoc |
getAssociation()
Gets governing loan association, e.g.
|
double |
getAverageLibor()
Gets average LIBOR fixing.
|
com.opengamma.strata.basics.StandardId |
getBuyer()
Gets buy counter party
|
com.opengamma.strata.product.common.BuySell |
getBuySell()
Gets whether the trade is 'Buy' or 'Sell'.
|
com.opengamma.strata.basics.currency.Currency |
getCurrency()
Gets trade currency.
|
LoanTradingDocType |
getDocumentationType()
Gets documentation type, e.g.
|
java.time.LocalDate |
getExpectedSettlementDate()
Gets the expected (legal) settlement date of the trade.
|
LoanTradingFormOfPurchase |
getFormOfPurchase()
Gets form of purchase, e.g.
|
com.opengamma.strata.product.TradeInfo |
getInfo()
Gets the additional trade information, defaulted to an empty instance.
|
com.opengamma.strata.collect.timeseries.LocalDateDoubleTimeSeries |
getPctShare()
Gets calculated series of prorated share of global facility.
|
double |
getPrice()
Gets the clean price of the trade.
|
Facility |
getProduct()
Gets the loan product that was agreed when the trade occurred.
|
com.opengamma.strata.basics.StandardId |
getSeller()
Gets sell counter party
|
LoanTradingType |
getTradeType()
Gets trade type, e.g.
|
int |
hashCode() |
boolean |
isAdjustmentOnTradeDate()
Gets flag to adjust amount for commitment adjustment occurring on trade date.
|
boolean |
isCommitmentReductionCreditFlag()
Gets flag to waive CR credit.
|
boolean |
isDelayedCompensationFlag()
Gets waive delayed compensation flag.
|
boolean |
isPaydownOnTradeDate()
Gets flag to recognize repayment on trade date.
|
boolean |
isWhenIssuedFlag()
Gets a flag to indicate the dependency of a secondary market loan trade upon
the closing of a primary market loan structuring and syndication process.
|
static LoanTrade.Meta |
meta()
The meta-bean for
LoanTrade . |
LoanTrade.Meta |
metaBean() |
ProratedLoanTrade |
prorate(com.opengamma.strata.product.ProductTrade trade)
Prorate trade and associated global facility with itself.
|
LoanTrade.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
com.opengamma.strata.product.ProductTrade |
withInfo(com.opengamma.strata.product.TradeInfo info) |
public ProratedLoanTrade prorate(com.opengamma.strata.product.ProductTrade trade)
prorate
in interface Proratable<ProratedLoanTrade>
trade
- buy or sell trade representing a full or partial allocationpublic com.opengamma.strata.product.ProductTrade withInfo(com.opengamma.strata.product.TradeInfo info)
withInfo
in interface com.opengamma.strata.product.ProductTrade
withInfo
in interface com.opengamma.strata.product.Trade
public static LoanTrade.Meta meta()
LoanTrade
.public static LoanTrade.Builder builder()
public LoanTrade.Meta metaBean()
metaBean
in interface org.joda.beans.Bean
public com.opengamma.strata.product.TradeInfo getInfo()
This allows additional information to be attached to the trade.
getInfo
in interface com.opengamma.strata.product.PortfolioItem
getInfo
in interface com.opengamma.strata.product.Trade
public Facility getProduct()
getProduct
in interface com.opengamma.strata.product.ProductTrade
public com.opengamma.strata.product.common.BuySell getBuySell()
public com.opengamma.strata.basics.StandardId getBuyer()
public com.opengamma.strata.basics.StandardId getSeller()
public double getAmount()
public com.opengamma.strata.basics.currency.Currency getCurrency()
public double getPrice()
public java.time.LocalDate getExpectedSettlementDate()
public boolean isDelayedCompensationFlag()
public LoanTradingAssoc getAssociation()
public LoanTradingFormOfPurchase getFormOfPurchase()
public LoanTradingDocType getDocumentationType()
public LoanTradingType getTradeType()
public boolean isWhenIssuedFlag()
public boolean isCommitmentReductionCreditFlag()
public boolean isPaydownOnTradeDate()
public boolean isAdjustmentOnTradeDate()
public LoanTradingAccrualSettlement getAccrualSettlementType()
public double getAverageLibor()
public com.opengamma.strata.collect.timeseries.LocalDateDoubleTimeSeries getPctShare()
public LoanTrade.Builder toBuilder()
Copyright © 2018. All rights reserved.