Enum FrequencyType

java.lang.Object
java.lang.Enum<FrequencyType>
com.studerw.tda.model.history.FrequencyType
All Implemented Interfaces:
Serializable, Comparable<FrequencyType>, java.lang.constant.Constable

public enum FrequencyType extends Enum<FrequencyType>

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
  • Enum Constant Details

  • Method Details

    • values

      public static FrequencyType[] 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

      public static FrequencyType valueOf(String name)
      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 name
      NullPointerException - if the argument is null