Interface SecuritizedProductTrade<P extends SecuritizedProduct>
- Type Parameters:
P- the type of securitized product
- All Superinterfaces:
- All Known Implementing Classes:
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
SecuritizedProductto 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 in
ReferenceData. One use for trade types that implement
SecuritizedProductTradeis 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.
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
withInfo(TradeInfo info)Returns an instance with the specified info.
withPrice(double price)Returns an instance with the specified price.
withQuantity(double quantity)Returns an instance with the specified quantity.
Methods inherited from interface com.opengamma.strata.product.SecuritizedProductPortfolioItem
getCurrency, getProduct, getSecurityId
SecuritizedProductTrade<P> withInfo(TradeInfo info)Returns an instance with the specified info.
SecuritizedProductTrade<P> withQuantity(double quantity)Returns an instance with the specified quantity.