Enum MarketInterval
- java.lang.Object
-
- java.lang.Enum<MarketInterval>
-
- com.bybit.api.client.domain.market.MarketInterval
-
- All Implemented Interfaces:
Serializable,Comparable<MarketInterval>
public enum MarketInterval extends Enum<MarketInterval>
Kline/Candlestick intervals.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DAILYFIFTEEN_MINUTESFIVE_MINUTESFOUR_HOURLYHALF_HOURLYHOURLYMONTHLYONE_MINUTESIX_HOURLYTHREE_MINUTESTWELVE_HOURLYTWO_HOURLYWEEKLY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MarketIntervalvalueOf(String name)Returns the enum constant of this type with the specified name.static MarketInterval[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONE_MINUTE
public static final MarketInterval ONE_MINUTE
-
THREE_MINUTES
public static final MarketInterval THREE_MINUTES
-
FIVE_MINUTES
public static final MarketInterval FIVE_MINUTES
-
FIFTEEN_MINUTES
public static final MarketInterval FIFTEEN_MINUTES
-
HALF_HOURLY
public static final MarketInterval HALF_HOURLY
-
HOURLY
public static final MarketInterval HOURLY
-
TWO_HOURLY
public static final MarketInterval TWO_HOURLY
-
FOUR_HOURLY
public static final MarketInterval FOUR_HOURLY
-
SIX_HOURLY
public static final MarketInterval SIX_HOURLY
-
TWELVE_HOURLY
public static final MarketInterval TWELVE_HOURLY
-
DAILY
public static final MarketInterval DAILY
-
WEEKLY
public static final MarketInterval WEEKLY
-
MONTHLY
public static final MarketInterval MONTHLY
-
-
Method Detail
-
values
public static MarketInterval[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MarketInterval c : MarketInterval.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MarketInterval 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 nameNullPointerException- if the argument is null
-
-