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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
5 0 0 0

How to update subscribed list of rics for the Websocket Api using python

Hi, I am using market_price_edpgw_service_discovery.py. I wanted to change already subscribed rics in the current websocket connection. Is there any pattern which I could apply?

pythonrefinitiv-realtimetreprdp-apiwebsocketsrrto
icon clock
10 |1500

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

1 Answer

Upvotes
Accepted
15.2k 40 12 19

Hi @adam.pawlowicz,

Please see the websocket message description in the API specification documentation bundle. You can send in a close request for your already open ID and send a new open request with a new ID anytime.

Close:

{
  "ID": 2,
  "Type": "Close"
}
icon clock
10 |1500

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