public final class SplitEtdId extends Object implements org.joda.beans.ImmutableBean
| Modifier and Type | Class and Description |
|---|---|
static class |
SplitEtdId.Builder
The bean-builder for
SplitEtdId. |
| Modifier and Type | Method and Description |
|---|---|
static SplitEtdId.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
static SplitEtdId |
from(SecurityId securityId)
Obtains an instance from a security identifier.
|
EtdContractCode |
getContractCode()
Gets the code supplied by the exchange for use in clearing and margining, such as in SPAN.
|
ExchangeId |
getExchangeId()
Gets the ID of the exchange where the instruments derived from the product are traded.
|
YearMonth |
getExpiry()
Gets the year-month of the expiry.
|
Optional<SplitEtdOption> |
getOption()
Gets the additional information if the ID is an option.
|
SecurityId |
getSecurityId()
Gets the security ID that was split.
|
EtdType |
getType()
Gets the type of the contract - future or option.
|
EtdVariant |
getVariant()
Gets the variant of ETD.
|
int |
hashCode() |
static org.joda.beans.TypedMetaBean<SplitEtdId> |
meta()
The meta-bean for
SplitEtdId. |
org.joda.beans.TypedMetaBean<SplitEtdId> |
metaBean() |
SplitEtdId.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public static SplitEtdId from(SecurityId securityId)
securityId - the OG-ETD security identifierIllegalArgumentException - if the identifier cannot be splitpublic static org.joda.beans.TypedMetaBean<SplitEtdId> meta()
SplitEtdId.public static SplitEtdId.Builder builder()
public org.joda.beans.TypedMetaBean<SplitEtdId> metaBean()
metaBean in interface org.joda.beans.Beanpublic SecurityId getSecurityId()
public EtdType getType()
public ExchangeId getExchangeId()
public EtdContractCode getContractCode()
public YearMonth getExpiry()
Expiry will occur on a date implied by the variant of the ETD.
public 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'.
public Optional<SplitEtdOption> getOption()
public SplitEtdId.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.