Class TextDataMessage

java.lang.Object
velox.api.layer0.data.TextDataMessage

public class TextDataMessage extends Object
Record arbitrary text information that can later be viewed via bookmap. It can be used for attaching any sort of information, e.g. decisions made by your strategy during a test run.
  • Field Details

    • alias

      public final String alias
    • source

      public final String source
    • price

      public final double price
    • size

      public final double size
    • isBid

      public final Boolean isBid
    • data

      public final String data
  • Constructor Details

    • TextDataMessage

      public TextDataMessage(String alias, String source, Boolean isBid, double price, double size, String data)
      Create a new message to record arbitrary text information that can later be viewed via bookmap. It can be used for attaching any sort of information, e.g. decisions made by your strategy during a test run.
      Parameters:
      alias - alias of the instrument this data relates to (null for global data)
      source - source of the event, can be null; Describes what is the origin of event (e.g. "My Indicator 1"), shown by Bookmap when inspecting data
      isBid - true if data is associated with bid side, false - with ask; null if none
      price - price linked to the event, Double.NaN if not applicable
      size - size linked to the event, Double.NaN if not applicable
      data - the data itself; it's not supposed to be processed programmatically, so there are no requirements to it; can be null if you only need other fields; please keep in mind that using excessively long strings will affect performance