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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 2 3 2

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 512.0 KiB each and 1.0 MiB total.

Hello @hege

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?


If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,


AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,
AHS

1 Answer

· Write an Answer
Upvotes
Accepted
22k 59 14 21

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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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