Detect No data or stale data for Level1 and Level2 subscriptions
Hello,
We are using RFA 8.1 C++ api to consume Level1 and Level2 data market data. Recently we came across many situations where our mutual client UBS reported multiple instances of No or stale Level1 and Level2 data. It happened across multiple exchanges. We are trying to figure out if api has some sort of sample application or utility tool that can be used to detect if data coming from your servers is itself has some problem or it's our adapter that has problem. Can you suggest approach here?
Best Answer
-
Hello @mktdata
The RFA StartConsumer example has a code that checks (and prints) the Response Status message from the Provider. You can find it from the following methods.
### processLoginResponse ###
void StarterConsumer::processLoginResponse(const rfa::sessionLayer::OMMItemEvent& event, const RespMsg& respMsg)
{
...
switch(respMsg.getRespType())
{
...
case RespMsg::StatusEnum:
if(respMsg.getHintMask() & rfa::message::RespMsg::RespStatusFlag)
{
if(status.getStreamState() == RespStatus::OpenEnum && status.getDataState() == RespStatus::OkEnum)
{
AppUtil::log(__LINE__, AppUtil::TRACE, "<- Received MMT_LOGIN Status - Login Accepted%s", text.c_str());
processLoginSuccess();
}
else if(status.getStreamState() == RespStatus::OpenEnum)
AppUtil::log(__LINE__, AppUtil::WARN, "<- Received MMT_LOGIN Status - Login Pending%s", text.c_str());
else
AppUtil::log(__LINE__, AppUtil::ERR, "<- Received MMT_LOGIN Status - Login Denied%s", text.c_str());
}
else
AppUtil::log(__LINE__, AppUtil::ERR, "<- Received MMT_LOGIN Status - No RespStatus");
break;### processMarketPriceResponse ###
void StarterConsumer::processMarketPriceResponse(const rfa::sessionLayer::OMMItemEvent& event, const RespMsg& respMsg)
{
...
if(respMsg.getHintMask() & RespMsg::RespStatusFlag)
{
const RespStatus& status = respMsg.getRespStatus();
text += OMMStrings::respStatusToString(status);
}You can find more detail about the Status Response Message in the following sections of the RFA C++ Developer Guide:
- Chapter 7.4.2 Response Status (Stream States, Data States, and Status Codes
- Chapter 7.4.5 Processing RespMsg Example
0
Answers
-
Thanks for reaching out to us.
Typically, you can verify the status text for the reason of stale data.
The stale data can be from connection down, service down, request timeout, or problems on the Refinitiv Real-Time Distribution System (RTDS), or data feed.
Otherwise, you can enable debug logs and tracing in the API to verify the sent and retrieved messages. However, enabling tracing in the API can impact the performance of the application.
I hope that this information is of help.
0 -
@Jirapongse Do you think any of the api sample application can be used instead of enabling debug or tracing logs?0
-
@mktdata
You can use the testclient tool (with log enabled) in the ADS package to subscribe to the same set of RICs. This tool can be used to verify the messages retrieved from the infrastructure or data feed.
Otherwise, you can modify and run the Consumer or StarterConsumer example (with trace enabled) in the RFA package to subscribe to the same set of RICs.
0 -
@Jirapongse Can you guide me to sample code on how to check status text? FYI, we are using RFA 8.1 C++ api. There are sample applications that are available with api package that we downloaded. If you point me to appropriate sample application that checks for status text, that would be nice.
0 -
Thank you. I will go through them.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 中文论坛