So the .NET Realtime API subscriptions to economic indicators are working now (btw I am very satisfied by the data retrieval's execution time and thanks again for your great help!!).
However, in some cases I don't get the notification at the moment the data comes out! When that happens, I have to recompile my code on Visual Studio in order to get the latest info. This makes me miss some trades, as I seem be randomly not getting data sometimes (while there is nothing wrong with the code since when I recompile, all other things being equal, I get the new data I was expecting).
Any ideas why this is happening ???
Thanks a lot!!
Thank you for your answer:
- By notification I mean the moment when the API detects there is a news release through DataReceivedCallback and should display it (but sometimes does not).
- Yes, in my code I got:
private static void InitializeDataServices(string appName)
Services = DataServices.Instance;
Services.StateChanged += ServicesOnStateChanged;
But the thing I do not understand is that it always works except for some random exceptions: the app is running in the console (subscription waiting for data release) and sometimes the data is published on Eikon but does not appear in my console, actually nothing happens in my console in these cases. When this happens, if I relaunch the app in the console, I get the data. So I assume this must be some issue with the subscription ?
So after a consequent debugging time, we arrived to the conclusion that the .NET API is not suited (at least in my case) for multiple simultaneous economic indicators' data retrieval. In the end I managed to always get the data at news release but the rest of my code wasn't correctly implemented. This problem ONLY occured when the code was running at news release: when ran before or after (but not during), it worked perfectly. There must be some technicality in the API's architecture that makes it unfit for my activity.
In consequence, I switched to the COM API (using VBN) and now everything seems to work just fine all the time.
I really want to thank you and the team again for all the help you have provided me with, truly appreciate it!!!