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 GenericSecurity
GenericSecurity. createProduct(ReferenceData refData)
Creates the associated product, which simply returnsthis
.GenericSecurity
GenericSecurityPosition. getProduct()
GenericSecurity
GenericSecurityTrade. getProduct()
GenericSecurity
GenericSecurityPosition. getSecurity()
Gets the underlying security.GenericSecurity
GenericSecurityTrade. getSecurity()
Gets the security that was traded.static GenericSecurity
GenericSecurity. of(SecurityInfo securityInfo)
Obtains an instance from security information, tick size and tick value.GenericSecurity
GenericSecurity. 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 thesecurity
property.org.joda.beans.MetaProperty<GenericSecurity>
GenericSecurityTrade.Meta. security()
The meta-property for thesecurity
property.Methods in com.opengamma.strata.product with parameters of type GenericSecurity Modifier and Type Method Description static GenericSecurityTrade
GenericSecurityTrade. of(TradeInfo tradeInfo, GenericSecurity security, double quantity, double price)
Obtains an instance from trade information, security, quantity and price.static GenericSecurityPosition
GenericSecurityPosition. ofLongShort(GenericSecurity security, double longQuantity, double shortQuantity)
Obtains an instance from the security, long quantity and short quantity.static GenericSecurityPosition
GenericSecurityPosition. ofLongShort(PositionInfo positionInfo, GenericSecurity security, double longQuantity, double shortQuantity)
Obtains an instance from position information, security, long quantity and short quantity.static GenericSecurityPosition
GenericSecurityPosition. ofNet(GenericSecurity security, double netQuantity)
Obtains an instance from the security and net quantity.static GenericSecurityPosition
GenericSecurityPosition. ofNet(PositionInfo positionInfo, GenericSecurity security, double netQuantity)
Obtains an instance from position information, security and net quantity.GenericSecurityPosition.Builder
GenericSecurityPosition.Builder. security(GenericSecurity security)
Sets the underlying security.GenericSecurityTrade.Builder
GenericSecurityTrade.Builder. security(GenericSecurity security)
Sets the security that was traded.
-