Package velox.api.layer1.common
Class RunModeHelper
java.lang.Object
velox.api.layer1.common.RunModeHelper
This class can be used to retrieve Bookmap Run Mode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Booleanstatic Booleanstatic BooleanisLive()This flag indicates that Bookmap gets the data from the provider, it still can be delayed or replayed by the provider.static BooleanThis flag indicates that all the trading events will be passed to provider, it still can be simulated on provider side.static booleanisSet()static voidsetRunModeOnce(boolean isLive, boolean isRealTrading, boolean isEmbedded, boolean isDarkMode) Called by Bookmap code once to set Run Mode.
-
Constructor Details
-
RunModeHelper
public RunModeHelper()
-
-
Method Details
-
setRunModeOnce
public static void setRunModeOnce(boolean isLive, boolean isRealTrading, boolean isEmbedded, boolean isDarkMode) Called by Bookmap code once to set Run Mode. -
isSet
public static boolean isSet()- Returns:
- true if the Run Mode is selected
-
isLive
This flag indicates that Bookmap gets the data from the provider, it still can be delayed or replayed by the provider. Otherwise, the data is replayed by Bookmap.- Returns:
- true if the data live (by provider)
-
isRealTrading
This flag indicates that all the trading events will be passed to provider, it still can be simulated on provider side. Otherwise, the trading is simulated by Bookmap.- Returns:
- true if the trading is real (by provider)
-
isEmbedded
- Returns:
- true if the Bookmap is embedded
-
isDarkMode
- Returns:
- true if the Bookmap is launched in dark mode
-