Package com.opengamma.strata.product
Interface SecuritizedProductTrade<P extends SecuritizedProduct>
-
- Type Parameters:
P
- the type of securitized product
- All Superinterfaces:
CalculationTarget
,PortfolioItem
,ProductTrade
,SecuritizedProductPortfolioItem<P>
,SecurityQuantity
,SecurityQuantityTrade
,Trade
- All Known Implementing Classes:
BillTrade
,BondFutureOptionTrade
,BondFutureTrade
,CapitalIndexedBondTrade
,DsfTrade
,FixedCouponBondTrade
,GenericSecurityTrade
,IborFutureOptionTrade
,IborFutureTrade
,OvernightFutureTrade
public interface SecuritizedProductTrade<P extends SecuritizedProduct> extends ProductTrade, SecurityQuantityTrade, SecuritizedProductPortfolioItem<P>
A trade that is directly based on a securitized product.This defines a trade in a securitized product. A securitized product contains the structure of a financial instrument that is traded as a
Security
. SeeSecuritizedProduct
to understand the difference between a security and a securitized product.When trading securities, the standard trade type is
SecurityTrade
. That trade type relies on securities being looked up inReferenceData
. One use for trade types that implementSecuritizedProductTrade
is to price and hold trades without needing to populate reference data, because the securitized product representation completely models the trade.Implementations of this interface must be immutable beans.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SecuritizedProductTrade<P>
withInfo(PortfolioItemInfo info)
Returns an instance with the specified info.SecuritizedProductTrade<P>
withPrice(double price)
Returns an instance with the specified price.SecuritizedProductTrade<P>
withQuantity(double quantity)
Returns an instance with the specified quantity.-
Methods inherited from interface com.opengamma.strata.product.PortfolioItem
getId
-
Methods inherited from interface com.opengamma.strata.product.ProductTrade
getProduct
-
Methods inherited from interface com.opengamma.strata.product.SecuritizedProductPortfolioItem
getCurrency, getProduct, getSecurityId
-
Methods inherited from interface com.opengamma.strata.product.SecurityQuantity
getQuantity
-
Methods inherited from interface com.opengamma.strata.product.SecurityQuantityTrade
getPrice
-
-
-
-
Method Detail
-
withInfo
SecuritizedProductTrade<P> withInfo(PortfolioItemInfo info)
Returns an instance with the specified info.- Specified by:
withInfo
in interfacePortfolioItem
- Specified by:
withInfo
in interfaceProductTrade
- Specified by:
withInfo
in interfaceSecurityQuantityTrade
- Specified by:
withInfo
in interfaceTrade
- Parameters:
info
- the new info- Returns:
- the instance with the specified info
-
withQuantity
SecuritizedProductTrade<P> withQuantity(double quantity)
Returns an instance with the specified quantity.- Specified by:
withQuantity
in interfaceSecuritizedProductPortfolioItem<P extends SecuritizedProduct>
- Specified by:
withQuantity
in interfaceSecurityQuantityTrade
- Parameters:
quantity
- the new quantity- Returns:
- the instance with the specified quantity
-
withPrice
SecuritizedProductTrade<P> withPrice(double price)
Returns an instance with the specified price.- Specified by:
withPrice
in interfaceSecurityQuantityTrade
- Parameters:
price
- the new price- Returns:
- the instance with the specified price
-
-