.NET Realtime API subscription doesn't always send me notification at news release
Hello,
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).
- Console
- Yes, in my code I got:
private static void InitializeDataServices(string appName)
{
Services = DataServices.Instance;
Services.StateChanged += ServicesOnStateChanged;
Services.Initialize(appName);
}
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 ?
Thanks!
Best Answer
-
Hello,
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!!!
0
Answers
-
Could you please provide some more information on this?
- What do you mean by notification? Do you not get the callback for your DataReceived event?
- What is the environment in which you are running your app? e.g. console app, winforms application, etc;
- Do you listen to DataServices.Instance.StateChanged event?
0 -
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).
- Console
- Yes, in my code I got:
private static void InitializeDataServices(string appName)
{
Services = DataServices.Instance;
Services.StateChanged += ServicesOnStateChanged;
Services.Initialize(appName);
}
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 ?
Thanks!
0 -
I need to see the code of your app before coming to a conclusion. I will send you an email.
1 -
Hello @Alex Putkov. I am still working on finding a solution to this (minor bugs remaining) and will come back to you as soon as it is done!
Thanks again for your precious support!!
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛