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 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