Class RunModeHelper

java.lang.Object
velox.api.layer1.common.RunModeHelper

public class RunModeHelper extends Object
This class can be used to retrieve Bookmap 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

      public static Boolean 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

      public static Boolean 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

      public static Boolean isEmbedded()
      Returns:
      true if the Bookmap is embedded
    • isDarkMode

      public static Boolean isDarkMode()
      Returns:
      true if the Bookmap is launched in dark mode