question

Upvotes
Accepted
3 1 0 0

How to stop receiving updates - Refinitiv Real Time Optimized

We have been working to integrate Refinitiv Real Time optimized [https://github.com/Refinitiv/websocket-api/tree/master/Applications/Examples/RDP/CSharp/MarketPriceRdpGwAuthenticationExample] in our project. Our requirement is simple to get the refresh rate from the stream, we are not interested on the updates that we keep receiving after refresh rate as example given below.

SENT:

{

"ID":2,

"Key":{

"Name":"TRI.N"

}

}

We are interested in only refresh data

RECEIVED:

[

{

"Fields":{

"DSPLY_NAME":"THOMSON REUTERS",

"52WK_HIGH":48.6,

"52WK_LOW":36.53,

"52W_HDAT":"2017-10-17",

"52W_HIND":null,

"52W_LDAT":"2018-05-11",

"52W_LIND":null,

"ACVOL_1":198379,

"ACVOL_UNS":198379,

"AC_TRN_CRS":null,

"AC_VOL_CRS":0,

"ADJUST_CLS":41.0,

"ASK":40.78,

"ASKSIZE":1,

"ASK_1":40.78,

...

"YRLOW":36.53,

"YRLOWDAT":"2018-05-11",

"YRLO_IND":"Yr.Low "

},

"ID":2,

"Key":{

"Name":"TRI.N",

"Service":"ELEKTRON_DD"

},

"PermData":"AwEBZWLA",

"Qos":{

"Rate":"JitConflated",

"Timeliness":"Realtime"

},

"SeqNumber":29678,

"State":{

"Data":"Ok",

"Stream":"Open",

"Text":"*All is well"

},

"Type":"Refresh"

}

]

We don't want these updates

RECEIVED:

[

{

"Fields":{

"ASK":90.2,

"ASKSIZE":16000,

"BEST_ASIZ1":16000,

"QUOTIM":"05:49:53",

"QUOTIM_MS":20993225

},

"ID":2,

"Key":{

"Name":"TRI.N",

"Service":"ELEKTRON_DD"

},

"SeqNumber":26768,

"Type":"Update",

"UpdateType":"Quote"

}

]


Could you advise how we can achieve that?

elektronrefinitiv-realtimeelektron-sdkrefinitiv-realtime-sdk
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
23k 22 9 14

Hello @shankar.gupta0,

Use non-streaming, or "snapshot" request:

{
  "ID":2,
  "Key":{
    "Name":"TRI.N"
  },
  "Streaming":false
}

Please find additional details in Tutorial Snapshot Requests

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
131 1 0 1

Hi @shankar.gupta0,

Alternatively, if you are only interested in the latest prices, RDP offers the Pricing Snapshot endpoint. This will greatly simplify your application when working with a simple RESTful endpoint as opposed to managing a streaming connection.

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