Dear @umer.nalla , @wasin.waeosri,
We have implemented Websocket API to consume data from Refinitiv Real-Time by creating a Websocket connection to the Advanced Distribution Server (ADS) component of Refinitiv Real-Time Distribution System.
We are following the following process to fetch rates every 10 secs. Please let us know in case of any comments or issues process wise for the same.
1. Call Authentication and fetch access Token
2. Establishing a Websocket connection to the server and Login with the access token generated
{
"ID": 1,
"Domain": "Login",
"Key": {
"NameType": "AuthnToken",
"Elements": {
"AuthenticationToken": "eyJ0eXA...gZ9d8kCpeng",
"Position": "10.100.30.35",
"ApplicationId": "256"
}
}
}
3. If Login is successful then Sending a ‘Batch’ request for multiple data items
{"ID":2,"Key":{"Name":["GBP=","INR=","CAD=","JPY=","DKK=","EUR="]},"Service":"ELEKTRON_DD"}
4. Once socket responds to a Batch request
a. Closing items (Closing multiple streams ) as per Ids received
{"ID":[4, 7, 3, 5, 6],"Type":"Close"}
6. Logoff from server and close all open streams
{"ID":1,"Type":"Close","Domain":"Login"}