Package org.knowm.xchange.kucoin.dto
Enum KlineIntervalType
- All Implemented Interfaces:
Serializable
,Comparable<KlineIntervalType>
,java.lang.constant.Constable
public enum KlineIntervalType extends Enum<KlineIntervalType>
The Kucoin KlineInterval is similar to the Binance KlineInterval enum. This is used to convert
back and forth between the string candlestick type patterns and durations in seconds for each
type. The seconds property can be useful when doing time calculations for fetch periods.
The supported pattern types are: 1min, 3min, 5min, 15min, 30min, 1hour, 2hour, 4hour, 6hour, 8hour, 12hour, 1day, 1week
See https://docs.kucoin.com/#get-klines for more info kline fetch.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description String
code()
Long
getSeconds()
static KlineIntervalType
valueOf(String name)
Returns the enum constant of this type with the specified name.static KlineIntervalType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
min1
-
min3
-
min5
-
min15
-
min30
-
hour1
-
hour2
-
hour4
-
hour6
-
hour8
-
hour12
-
day1
-
week1
-
-
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
-
getSeconds
-
code
-