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
. SeeSecuritizedProduct
to 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 implementSecuritizedProductPosition
is 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 SecurityId
getSecurityId()
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:Position
Gets the identifier of the underlying security.This identifier uniquely identifies the security within the system.
- Specified by:
getSecurityId
in interfacePosition
- Specified by:
getSecurityId
in interfaceSecuritizedProductPortfolioItem<P extends SecuritizedProduct>
- Specified by:
getSecurityId
in interfaceSecurityQuantity
- Returns:
- the security identifier
-
withInfo
SecuritizedProductPosition<P> withInfo(PortfolioItemInfo info)
Returns an instance with the specified info.- Specified by:
withInfo
in interfacePortfolioItem
- Specified by:
withInfo
in 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:
withQuantity
in interfacePosition
- Specified by:
withQuantity
in interfaceSecuritizedProductPortfolioItem<P extends SecuritizedProduct>
- Parameters:
quantity
- the new quantity- Returns:
- the instance with the specified quantity
-
-