Package velox.api.layer0.data
Class TextDataMessage
java.lang.Object
velox.api.layer0.data.TextDataMessage
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTextDataMessage(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. -
Method Summary
-
Field Details
-
alias
-
source
-
price
public final double price -
size
public final double size -
isBid
-
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 dataisBid- true if data is associated with bid side, false - with ask; null if noneprice- price linked to the event,Double.NaNif not applicablesize- size linked to the event,Double.NaNif not applicabledata- 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
-