Enum Class AssetClass
- All Implemented Interfaces:
Serializable,Comparable<AssetClass>,Constable
This represents the category to which the asset belongs to. It serves to identify the nature of the financial instrument, with options including \"us_equity\" for U.S. equities, \"us_option\" for U.S. options, \"crypto\" for cryptocurrencies, and \"ipo\" for IPO indications of interest/orders. This `asset_class: ipo` value is distinct from the assets API `attributes: [\"ipo\"]` flag.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic AssetClassgetValue()toString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) static AssetClassReturns the enum constant of this class with the specified name.static AssetClass[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
US_EQUITY
-
US_OPTION
-
CRYPTO
-
CRYPTO_PERP
-
TREASURY
-
CORPORATE
-
GLOBAL_EQUITY
-
US_INDEX
-
US_EQUITY_CHAIN
-
IPO
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-
toString
- Overrides:
toStringin classEnum<AssetClass>
-
fromValue
-
validateJsonElement
- Throws:
IOException
-