Package com.opengamma.strata.product
Interface SecuritizedProductPosition<P extends SecuritizedProduct>
-
- Type Parameters:
P- the type of securitized product
- All Superinterfaces:
CalculationTarget,PortfolioItem,Position,SecuritizedProductPortfolioItem<P>,SecurityQuantity
- All Known Implementing Classes:
BillPosition,BondFutureOptionPosition,BondFuturePosition,CapitalIndexedBondPosition,DsfPosition,EtdFuturePosition,EtdOptionPosition,FixedCouponBondPosition,GenericSecurityPosition,IborFutureOptionPosition,IborFuturePosition,OvernightFuturePosition
public interface SecuritizedProductPosition<P extends SecuritizedProduct> extends Position, SecuritizedProductPortfolioItem<P>
A position that is directly based on a securitized product.This defines a position in a securitized product. A securitized product contains the structure of a financial instrument that is traded as a
Security. SeeSecuritizedProductto understand the difference between a security and a securitized product.When storing positions, the standard trade type is
SecurityPosition. That type relies on securities being looked up inReferenceData. One use for positions that implementSecuritizedProductPositionis to price and hold positions 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 Default Methods Modifier and Type Method Description default SecurityIdgetSecurityId()Gets the identifier of the underlying security.SecuritizedProductPosition<P>withInfo(PortfolioItemInfo info)Returns an instance with the specified info.SecuritizedProductPosition<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.Position
getInfo, getQuantity, summarize
-
Methods inherited from interface com.opengamma.strata.product.SecuritizedProductPortfolioItem
getCurrency, getProduct
-
-
-
-
Method Detail
-
getSecurityId
default SecurityId getSecurityId()
Description copied from interface:PositionGets the identifier of the underlying security.This identifier uniquely identifies the security within the system.
- Specified by:
getSecurityIdin interfacePosition- Specified by:
getSecurityIdin interfaceSecuritizedProductPortfolioItem<P extends SecuritizedProduct>- Specified by:
getSecurityIdin interfaceSecurityQuantity- Returns:
- the security identifier
-
withInfo
SecuritizedProductPosition<P> withInfo(PortfolioItemInfo info)
Returns an instance with the specified info.- Specified by:
withInfoin interfacePortfolioItem- Specified by:
withInfoin interfacePosition- Parameters:
info- the new info- Returns:
- the instance with the specified info
-
withQuantity
SecuritizedProductPosition<P> withQuantity(double quantity)
Returns an instance with the specified quantity.- Specified by:
withQuantityin interfacePosition- Specified by:
withQuantityin interfaceSecuritizedProductPortfolioItem<P extends SecuritizedProduct>- Parameters:
quantity- the new quantity- Returns:
- the instance with the specified quantity
-
-