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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 2 1

WebSocket API: How to use FIDs rather than field names for posting

Hi,

we were asked by Refinitiv to migrate our MLIP/MFOT-based application to RCC / WebSocket API.

Question now: How can we contribute to RICs and use FIDs rather than field names for the post message?

All code examples I have seen so far, use field names and not FIDs in the JSON message like this:

"Type":"Post",
"PostID":"1",
"Domain":"MarketPrice",
...

"Message":{
  "ID":0,
  "Type":"Update",
  "Domain":"MarketPrice",
  "Fields":{
    "BID": 45.55,
    "BIDSIZE": 18,
    "ASK": 45.57,
    "ASKSIZE": 19
  }
}
...

The reason for this question is, that all our setup for contributing pages and RIC data is based on FIDs, and not field names, as MFOT did only accept FIDs.


Kind regards,

Wolfgang Hege

postingFID
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.

1 Answer

Upvotes
Accepted
13k 32 12 18

Hello @hege,

The websockets API posting does not allow the use of FID's in the POST message - only field names. You can use the RealTime SDK, if you intend to keep using the FIDs. Here is the contribution tutorial in RTDSK C++ and Java.

For websockets API, there is always an option to subscribe to data dictionary and then convert your FID's to Field Names before sending them to RCC. See the example of data dictionary request in this post - https://community.developers.refinitiv.com/questions/78709/how-to-get-source-list-and-dictionary-with-websock.html

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