Interface SecuritizedProductPortfolioItem<P extends SecuritizedProduct>
- Type Parameters:
P- the type of securitized product
- All Known Implementing Classes:
public interface SecuritizedProductPortfolioItem<P extends SecuritizedProduct> extends PortfolioItem, SecurityQuantityA trade that is directly based on a securitized product.
This defines a trade or position 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
SecurityTradeand the standard position type is
SecurityPosition. 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 Default Methods Modifier and Type Method Description
getCurrency()Gets the currency of the position.
getProduct()Gets the product of the security that was traded.
getSecurityId()Gets the security identifier.
withQuantity(double quantity)Returns an instance with the specified quantity.
Methods inherited from interface com.opengamma.strata.product.PortfolioItem
getId, getInfo, summarize
P getProduct()Gets the product of the security that was traded.
- the product
default Currency getCurrency()Gets the currency of the position.
This is typically the same as the currency of the product.
- the trading currency
default SecurityId getSecurityId()Description copied from interface:
SecurityQuantityGets the security identifier.
This identifier uniquely identifies the security within the system.