Message received contains unexpected values for some fields.

some messages received from Refinitiv Real Time Optimized Websocket API have unexpected values for some fields.

Example:

"DSPLY_NMLL": "\u001b[0` \u001b[31b",

"CTBTR_1LL": "\u001b[0`<CALCS_EXPLAINED>\u001b[17` \u001b[4b"

What is this means and how can I decode this?


Thanks,

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @thomas.abraham

    It is a partial field update, as mentioned in this How to retrieve page-based data using Refinitiv Tick History REST API article.

    For exmple: "\u001b[0` \u001b[31b"

    "\u001b[0`" represents an intra-field positioning sequence.

    • "\u001b[" = <CSI>
    • "0" = an ASCII numeric string representing the cursor offset position
    • "` = <HPA>

    " \u001b[31b" represents a character repetition.

    • " " = the character to be repeated (a white space)
    • "001b[" = <CSI>
    • "31" = an ASCII numeric string representing the number of times to repeat the character
    • "b" = <REP>

    You need to apply these partial field updates to the previously retrieved data of those fields.


Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.