public interface EtdSecurity extends Security, SecuritizedProduct
| Modifier and Type | Method and Description |
|---|---|
EtdContractSpecId |
getContractSpecId()
Gets the ID of the contract specification from which this security is derived.
|
default Currency |
getCurrency()
Gets the currency that the security is traded in.
|
YearMonth |
getExpiry()
Gets the year-month of the expiry.
|
default SecurityId |
getSecurityId()
Gets the security identifier.
|
EtdType |
getType()
Gets the type of the contract - future or option.
|
default ImmutableSet<SecurityId> |
getUnderlyingIds()
Gets the set of underlying security identifiers.
|
EtdVariant |
getVariant()
Gets the variant of ETD.
|
EtdSecurity |
withInfo(SecurityInfo info)
Returns an instance with the specified info.
|
createPosition, createPosition, createProduct, createTrade, getInfoallCurrenciesallPaymentCurrencies, isCrossCurrencydefault SecurityId getSecurityId()
SecurityThis identifier uniquely identifies the security within the system.
getSecurityId in interface SecuritizedProductgetSecurityId in interface Securitydefault Currency getCurrency()
SecuritygetCurrency in interface SecuritizedProductgetCurrency in interface Securitydefault ImmutableSet<SecurityId> getUnderlyingIds()
SecurityThe set must contain all the security identifiers that this security directly refers to. For example, a bond future will return the identifiers of the underlying basket of bonds, but a bond future option will only return the identifier of the underlying future, not the basket.
getUnderlyingIds in interface SecurityEtdContractSpecId getContractSpecId()
EtdType getType()
YearMonth getExpiry()
Expiry will occur on a date implied by the variant of the ETD.
EtdVariant getVariant()
This captures the variant of the ETD. The most common variant is 'Monthly'. Other variants are 'Weekly', 'Daily' and 'Flex'.
When building, this defaults to 'Monthly'.
EtdSecurity withInfo(SecurityInfo info)
SecurityCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.