Interval

public enum Interval

The interval API parameter, specifying the time interval between two consecutive data points for a time series or indicator request.

Accepted by request builders across the timeseries, forex, cryptocurrency, technicalindicator/indicator, and economicindicator packages. Not every constant is valid for every request: for example, TREASURY_YIELD requests only accept DAILY, WEEKLY, or MONTHLY.

Author

Sylvester Sefa-Yeboah

Since

1.0.1

Entries

Link copied to clipboard

A one-minute interval. Serializes to the wire value "1min".

Link copied to clipboard

A five-minute interval. Serializes to the wire value "5min".

Link copied to clipboard

A fifteen-minute interval. Serializes to the wire value "15min".

Link copied to clipboard

A thirty-minute interval. Serializes to the wire value "30min".

Link copied to clipboard

A sixty-minute interval. Serializes to the wire value "60min".

Link copied to clipboard

A daily interval. Serializes to the wire value "daily".

Link copied to clipboard

A weekly interval. Serializes to the wire value "weekly".

Link copied to clipboard

A monthly interval. Serializes to the wire value "monthly".

Link copied to clipboard

A quarterly interval, spanning three months. Serializes to the wire value "quarterly".

Link copied to clipboard

A semiannual interval, spanning six months. Serializes to the wire value "semiannual".

Link copied to clipboard

An annual interval. Serializes to the wire value "annual".

Functions

Link copied to clipboard
public String toString()
Link copied to clipboard
public static Interval 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.)

Link copied to clipboard
public static Array<Interval> values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.