Package com.studerw.tda.model.history
Enum FrequencyType
- All Implemented Interfaces:
Serializable
,Comparable<FrequencyType>
,java.lang.constant.Constable
Used in various price history requests and responses. Indicates how the intervalDuration (frequency) will be specified.
According to TDA docs with regard to the PeriodType
, if the periodType is:
- DAY - the frequency type can be minute only
- MONTH - the frequency type can be daily or weekly
- YEAR - the frequency type can be daily or weekly or monthly
- YTD - the frequency type can be daily or weekly
With regard to the frequency parameter, the valid values are dependent on the specified FrequencyType
:
- minute - 1, 5, 10, 15, 30
- daily - 1
- weekly - 1
- monthly - 1
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic FrequencyType
Returns the enum constant of this type with the specified name.static FrequencyType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
minute
-
daily
-
weekly
-
monthly
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-