|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SessionType>
com.dxfeed.schedule.SessionType
public enum SessionType
Defines type of a session - what kind of trading activity is allowed (if any),
what rules are used, what impact on daily trading statistics it has, etc..
The 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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final SessionType NO_TRADING
public static final SessionType PRE_MARKET
public static final SessionType REGULAR
public static final SessionType AFTER_MARKET
Method Detail |
---|
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 name
NullPointerException
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |