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

question

Upvotes
Accepted
24 1 2 3

No data events from RIC XAU= and XAU=ALL

I've tried to subscribe using a C# program for 'XAU=' or 'XAU=ALL'. No data was returned from server. If I subscribe to currency such as HKDSGD=R, there were data streaming in.

I'm curious why XAU= or XAU=ALL doesn't work.

The fields I subscribed to were ("BID", "ASK", "CTBTR_1", "CTB_LOC1", "BCKGRNDPAG", "DSPLY_NAME", "TIMACT")

In fact my setup is a Thompson Reuters Hosted mode. The C# program interacts with the Eikon desktop software.

ANy clue of why this happens may help a lot. Did I miss out anything?

eikoneikon-data-apipythonworkspacerefinitiv-dataplatform-eikonworkspace-data-api.net
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.

Upvotes
Accepted
24 1 2 3

Hi @Alex Putkov. I have not resolve this issue. Only worked around it. My workaround is not a solution but for temporary measure until I could spend a bit more time on this matter.

I could subscribe and rates with XAUMYR=R

Then I reconvert it back to USD/oz with MYR= rates.

Is not accurate but I'm still preplexed by the cause of getting XAU= rates via C# .API

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.

Upvotes
4.6k 26 7 22

@cewong Assuming you are using .NET Data API, I would suggest subscribing to OnStatusChange and OnError events to determine why do you not get XAU=:

private void Subscribe()
{
    var realtime = DataServices.Instance.Realtime;


    _subscription = realtime.SetupDataSubscription()
            .WithRics(“EUR=“, “GBP=“)
            .WithFields(“BID”, “ASK”)
            .OnDataUpdated(DataReceivedCallback)
            .OnStatusUpdated(StatusUpdatesCallback) 
            .OnError(ErrorCallback) //error call back
            .CreateAndStart();
}

Here is the list of statuses for your reference.


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.

In addition to the response by @Zhenya Kovalyov, it's worth checking if you can display these RICs in a Quote app in Eikon.

Upvotes
24 1 2 3

Ok. I'll try that. Will update progress after. Thank you.

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.

Upvotes
24 1 2 3

@Zhenya Kovalyov - I made the addition as per your suggestion. The response I got for both SetupDataRequest & SetupDataSubscription was 'Ok'.

Code snippet looks like this,

@Alex Putkov. - Yes I get data update Quote App but not from the .NET API. This anomaly occurs only for XAU= and XAU=ALL. If I subscribe to currency such as EUR or AUD, there are data.

Note: Ignore the Elapsed Event heartbeat.


eikon-issue-3-1.jpg (71.6 KiB)
eikon-issue-3-3.jpg (202.9 KiB)
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.

Upvotes
4.6k 26 7 22

@cewong if you are using the standard example, please make sure that DataReceived looks at the correct keys in the update event:

private void DataReceivedCallback(IRealtimeUpdateDictionary updates)

        {

            if (updates.ContainsKey("XAU="))
            {
                if (updates["XAU="].ContainsKey("BID"))
                {
                    Console.WriteLine("XAU=(BID) {0}", updates["XAU="]["BID"].Value.ToString());
                    subscription.Stop();
                    Program.StopMessagePump();

                }

            }

        }

Might that be the case?

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.

Upvotes
24 1 2 3

@Zhenya Kovalyov yes, in fact, my code just display any keys subscribed. As long as there is an event from EIkon's service, I should be able to show. Unfortunately, that wasn't the case.


eikon-issue-3-4.jpg (44.5 KiB)
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.

Upvotes
39.4k 77 11 27

@cewong
Were you able to resolve the issue? I'm afraid I'm out of suggestions. The fact that the issue is only happening for a couple of RICs and that you can view these RICs in a Quote app in Eikon makes no sense to me. If indeed you found the root cause of the problem, I'd very much appreciate you sharing it on this thread.

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.

Upvotes
24 1 2 3

Hi @Alex Putkov. & @Zhenya Kovalyov

An update. I noticed for RIC XAU= is from Commodity but XAUSGD=R is from FX.

1) Is there a difference in subscribing via .NET API for commodity versus Foreign Exchange (FX)?

2) How do I check if my subscription has access via API to Commodity RIC?

Thanks.


xaucash.jpg (17.1 KiB)
xausgdr.jpg (15.5 KiB)
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.

@cewong

1. Not really

2. If you do not have access to a ric, it will return a NotPermission error

Is the XAUSGD=R (Thompson Reuters Calculated) rates derived from XAU= (cash spot) x SGD= (local intrabank fx) ?

Another example for rates from XAUEUR=R is from cross of XAU= & EUR=?

@cewong yes, =R usually means 'derived calculation'.

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.