public enum SessionType extends Enum<SessionType>
NO_TRADING
session type is used for non-trading sessions.
Some exchanges support all session types defined here, others do not.
Some sessions may have zero duration - e.g. indices that post value once a day. Such sessions can be of any appropriate type, trading or non-trading.
Enum Constant and Description |
---|
AFTER_MARKET
After-market session type marks extended trading session after regular trading hours.
|
NO_TRADING
Non-trading session type is used to mark periods of time during which trading is not allowed.
|
PRE_MARKET
Pre-market session type marks extended trading session before regular trading hours.
|
REGULAR
Regular session type marks regular trading hours session.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isTrading()
Returns
true if trading activity is allowed for this type of session. |
static SessionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SessionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SessionType NO_TRADING
public static final SessionType PRE_MARKET
public static final SessionType REGULAR
public static final SessionType AFTER_MARKET
public static SessionType[] values()
for (SessionType c : SessionType.values()) System.out.println(c);
public static SessionType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isTrading()
true
if trading activity is allowed for this type of session.
Some sessions may have zero duration - e.g. indices that post value once a day. Such sessions can be of any appropriate type, trading or non-trading.
Copyright © 2002–2023 Devexperts LLC. All rights reserved.