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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 0 1

Problem updating prices ECB

Good morning,

We are having problems using the websocket to obtain ECB prices in real time (RIC EURGBPREF=). However, we have another connection where we get the prices from reuters (Ric EURGBP=R) that works correctly.

The main problem is that we don't get the daily update, always the same response for all currencies, it only works fine for us stopping the service and starting it again, but prices are not updated automatically.


We are using a Windows environment and C++ language


Setting:

"Token": {
   "GrantType": "password",
   "Scope": "trapi.streaming.pricing.read",
   "Username": "", -- Deleted for security
   "Password": "", -- Deleted for security
   "ClientId": "", -- Deleted for security
   "TakeExclusiveSignOnControl": true
},
"BaseAPIURL": "https://api.refinitiv.com",
"TokenEndpoint": "/auth/oauth2/v1/token",
"ServicesEndpoint": "/streaming/pricing/v1/?transport=websocket",
"WebSocketEndpoint": "/WebSocket",
"View": [ "BID", "ASK", "QUOTIM_NS", "SCALING" ],
"Service": "ELEKTRON_DD",
"ApplicationID": "256",
"Protocol": "tr_json2",
"Streaming": true,
"EnableRegion": "eu-west-1",
"EnableSSLWebSocket": true


JSON sent:

{
"ID": 2,
"Key": {
"Name": [
"EURGPREF=",
"EURTRYREF="
],
"Service": "ELEKTRON_DD"
},
"View": [
"IDB",
"ASK",
"QUOTIM_NS",
"SCALING"
],
"Streaming": true
}


JSON Received:

[
{
"ID": 11,
"Type": "Refresh",
"Key": {
"Service": "ELEKTRON_DD",
"Name": "EURGPREF="
},
"State": {
"Stream": "Open",
"Data": "Ok",
"Text": "***Request Completed"
},
"whats": {
"Timeliness": "Realtime",
"Rate": "JitConflated"
},
"PermData": "AwEBNjw=",
"SeqNumber": 270,
"Fields": {
"IDB": 0.86813
}
},
{
"ID": 31,
"Type": "Refresh",
"Key": {
"Service": "ELEKTRON_DD",
"Name": "EURTRYREF="
},
"State": {
"Stream": "Open",
"Data": "Ok",
"Text": "***Request Completed"
},
"whats": {
"Timeliness": "Realtime",
"Rate": "JitConflated"
},
"PermData": "AwEBNjw=",
"SeqNumber": 270,
"Fields": {
"IDB": 21.3974
}
}
]


As you can see, the connection is correct and it returns data, but we were not able to receive the update when the ECB updates prices.


Any ideas?

Thank you in advance!!

Best Regards


Patricia

#product#contentwebsocketsstreaming-prices
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.

@p.perezg

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

1 Answer

· Write an Answer
Upvote
Accepted
79.1k 250 52 74

@p.perezg

Thanks for reaching out to us.

The correct request could be:

{
    "ID": 2,
    "Key": {
        "Name": [
            "EURGBPREF=",
            "EURTRYREF="
        ],
        "Service": "ELEKTRON_DD"
    },
    "View": [
        "BID",
        "ASK",
        "QUOTIM_NS",
        "SCALING"
    ],
    "Streaming": true
}

I checked and found that those RICs don't provide the ASK, QUOTIM_NS, and SCALING fields. You can verify it from the Data Model Discovery tool.

Moreover, typically those RICs provide few updates per day. I got an update around 13:55 GMT. You need to contact the content support team directly via MyRefinitiv to verify the behavior of those RICs.

I hope that this information is of help.

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.