Package velox.api.layer0.data
Class TextDataMessage
java.lang.Object
velox.api.layer0.data.TextDataMessage
public class TextDataMessage
extends java.lang.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 Summary
-
Constructor Summary
Constructors Constructor Description TextDataMessage(java.lang.String alias, java.lang.String source, java.lang.Boolean isBid, double price, double size, java.lang.String data)
Create a new message to record arbitrary text information that can later be viewed via bookmap. -
Method Summary
-
Field Details
-
Constructor Details
-
TextDataMessage
public TextDataMessage(java.lang.String alias, java.lang.String source, java.lang.Boolean isBid, double price, double size, java.lang.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.NaN
if not applicablesize
- size linked to the event,Double.NaN
if 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
-