I want to get average fx rate for a currency using websocket API for every 30min.
Upgrade from Eikon -> Workspace. Learn about programming differences.
For a deeper look into our Eikon Data API, look into:
Overview | Quickstart | Documentation | Downloads | Tutorials | Articles
I want to get average fx rate for a currency using websocket API for every 30min.
Hi,
Thank you for your participation in the forum.
Is the reply below satisfactory in answering your question?
If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question.
Otherwise please post again offering further insight into your question.
Thanks,
AHS
Hi,
Please be informed that a reply has been verified as correct in answering the question, and marked as such.
Thanks,
AHS
Hello @srinivasa.p
You can send the request message for the currency RIC with the following JSON message:
{ "ID":2, "Key":{ "Name":"THB=" } }
Or
{ "ID":2, "Key":{ "Name":"THB=", "Service": "<Your Service Name>" } }
Please find more detail about how to request data with the WebSocket API from the following resources:
The currency RICs are mostly in the "<Currency>=" format like the following:
You can find the currency RIC that you want from the RIC-Search tool page as follows.
About the "for every 30min", you may modify your application source code to sends a request message as a "snapshot" request every 30 minutes.
{ "ID":2, "Key":{ "Name":"THB=", "Service":"ELEKTRON_DD" }, "Streaming":false }
You can find the WebSocket API examples from the https://github.com/Refinitiv/websocket-api GitHub repository.