Package com.opengamma.strata.product.etd
Interface EtdTrade
-
- All Superinterfaces:
CalculationTarget
,PortfolioItem
,SecurityQuantity
,SecurityQuantityTrade
,Trade
- All Known Implementing Classes:
EtdFutureTrade
,EtdOptionTrade
public interface EtdTrade extends SecurityQuantityTrade
A trade in an exchange traded derivative (ETD).This represents a trade based on quantity and price for an
EtdSecurity
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Currency
getCurrency()
Gets the currency of the trade.EtdSecurity
getSecurity()
Gets the underlying ETD security.default SecurityId
getSecurityId()
Gets the security identifier of the trade.default EtdType
getType()
Gets the type of the contract that was traded.-
Methods inherited from interface com.opengamma.strata.product.PortfolioItem
getId
-
Methods inherited from interface com.opengamma.strata.product.SecurityQuantity
getQuantity
-
Methods inherited from interface com.opengamma.strata.product.SecurityQuantityTrade
getPrice, withInfo, withPrice, withQuantity
-
-
-
-
Method Detail
-
getCurrency
default Currency getCurrency()
Gets the currency of the trade.This is the currency of the underlying security.
- Returns:
- the trading currency
-
getType
default EtdType getType()
Gets the type of the contract that was traded.This is the type of the underlying security - future or option.
- Returns:
- the type, future or option
-
getSecurityId
default SecurityId getSecurityId()
Gets the security identifier of the trade.This identifier uniquely identifies the security within the system.
- Specified by:
getSecurityId
in interfaceSecurityQuantity
- Returns:
- the security identifier
-
getSecurity
EtdSecurity getSecurity()
Gets the underlying ETD security.- Returns:
- the ETD security
-
-