Uses of Class
com.opengamma.strata.product.GenericSecurity
-
Packages that use GenericSecurity Package Description com.opengamma.strata.product Entity objects describing trades and products in financial markets. -
-
Uses of GenericSecurity in com.opengamma.strata.product
Methods in com.opengamma.strata.product that return GenericSecurity Modifier and Type Method Description GenericSecurityGenericSecurity. createProduct(ReferenceData refData)Creates the associated product, which simply returnsthis.GenericSecurityGenericSecurityPosition. getProduct()GenericSecurityGenericSecurityTrade. getProduct()GenericSecurityGenericSecurityPosition. getSecurity()Gets the underlying security.GenericSecurityGenericSecurityTrade. getSecurity()Gets the security that was traded.static GenericSecurityGenericSecurity. of(SecurityInfo securityInfo)Obtains an instance from security information, tick size and tick value.GenericSecurityGenericSecurity. withInfo(SecurityInfo info)Methods in com.opengamma.strata.product that return types with arguments of type GenericSecurity Modifier and Type Method Description Class<? extends GenericSecurity>GenericSecurity.Meta. beanType()org.joda.beans.BeanBuilder<? extends GenericSecurity>GenericSecurity.Meta. builder()org.joda.beans.MetaProperty<GenericSecurity>GenericSecurityPosition.Meta. security()The meta-property for thesecurityproperty.org.joda.beans.MetaProperty<GenericSecurity>GenericSecurityTrade.Meta. security()The meta-property for thesecurityproperty.Methods in com.opengamma.strata.product with parameters of type GenericSecurity Modifier and Type Method Description static GenericSecurityTradeGenericSecurityTrade. of(TradeInfo tradeInfo, GenericSecurity security, double quantity, double price)Obtains an instance from trade information, security, quantity and price.static GenericSecurityPositionGenericSecurityPosition. ofLongShort(GenericSecurity security, double longQuantity, double shortQuantity)Obtains an instance from the security, long quantity and short quantity.static GenericSecurityPositionGenericSecurityPosition. ofLongShort(PositionInfo positionInfo, GenericSecurity security, double longQuantity, double shortQuantity)Obtains an instance from position information, security, long quantity and short quantity.static GenericSecurityPositionGenericSecurityPosition. ofNet(GenericSecurity security, double netQuantity)Obtains an instance from the security and net quantity.static GenericSecurityPositionGenericSecurityPosition. ofNet(PositionInfo positionInfo, GenericSecurity security, double netQuantity)Obtains an instance from position information, security and net quantity.GenericSecurityPosition.BuilderGenericSecurityPosition.Builder. security(GenericSecurity security)Sets the underlying security.GenericSecurityTrade.BuilderGenericSecurityTrade.Builder. security(GenericSecurity security)Sets the security that was traded.
-