For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
21 0 0 1

RIc settle field does not return all demcial points

I query RIC code TUU0, field SETTLE using websocket connection to TREP machine. it return me a number 110.4219, however the RIC page from desktop application Eikon show 100 108/256 = 110.421875, why websocket truncate to 4th digit. Seems wrong!


This automatically truncating does not happen in getting option settlement price.

treprdp-apiwebsocketsrrtofutures
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
38.1k 71 35 53

@gxu

I have connected to ADS3.4.0.L1 with the WebSocket connection.

The retrieved price wasn't truncated.

RECEIVED:
[
  {
    "Fields":{
      "ACTIV_DATE":"2020-07-17",
... 
      "ACVOLTM_MS":"08:15:34.167",
      "ACVOL_1":15569,
      "ACVOL_TIM":"08:15:34",
...
      "SETTLE":110.421875,
      "SETTLEDATE":"2020-07-16",
      "SETTLE_TIM":"23:34:56",
...
    },
    "ID":2,
    "Key":{
      "Name":"TUU0",
      "Service":"ELEKTRON_REPLABLINUX1"
    },
    "PermData":"AxHvMVPA",
    "Qos":{
      "Rate":"TickByTick",
      "Timeliness":"Realtime"
    },
    "SeqNumber":33472,
    "State":{
      "Data":"Ok",
      "Stream":"Open",
      "Text":"All is well"
    },
    "Type":"Refresh"
  }
]

It looks like to be a bug fixed in ads3.4.0.L1.

TREP-2667; WebSocket price fields are rounded to 4 decimal places.
Case 08218129
    RWF to JSON converter library (librsslJsonConverter.so.1) has loss of precision for REAL fields if
    greater than 4 decimal places.
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
21 0 0 1

thanks! we will contact corresponding engineer

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea