otp.Source.show_special_msgs#

Source.show_special_msgs(inplace=False)#

Shows ticks that represent internal events generated by OneTick analytics to facilitate graph processing.

Currently, only ticks that represent PREPARE_FOR_RUNNING_QUERY events are produced.

Parameters:
  • inplace (bool) – The flag controls whether operation should be applied inplace or not. If inplace=True, then it returns nothing. Otherwise, method returns a new modified object.

  • self (Source)

Return type:

Source or None

Examples

PREPARE_FOR_RUNNING_QUERY event is generated in running queries:

>>> data = otp.Tick(X=1, bucket_interval=1)
>>> data = data.show_special_msgs()
>>> otp.run(data, running=True, start=otp.now(), end=otp.now() + otp.Second(1))
  Time                  MSG_TYPE MSG_VAL
0  ... PREPARE_FOR_RUNNING_QUERY

See also

SHOW_SPECIAL_MSGS OneTick event processor