Handle RIC related errors in endpoint request
With EndpointRequest in “RD Library for .NET” (Refinitiv.Data.Delivery.Request.EndpointRequest) in it is possible to specify multiple RICs.
Ex: "https://api.refinitiv.com/data/company-fundamentals/v1/analytics/global/price-volumes?package=base&universe=2010.SE,AAPL.OQ,AMZN.OQ,ALAMAKOTA.XYZ,EITP.CA"
What if one or more of the specified RICs is invalid (like ALAMAKOTA.XYZ above), not entitled...
The IEndpointResponse will indicate the success and its Data contain the header array and the Data part will contain the tokens for every requested RIC, with the corresponding JArray of items set all to null.
In itself, this is an indication that something went wrong, but what exactly? How to get the precise status info for every failed RIC with an error message?
Is anything can be specified at the request level?
Best Answer
-
Hi @PatrickZ
Did you check what the raw JSON response was from the backend? You can grab those details from the response, i.e. response.Data.Raw.
Now, it's possible the service may include a section that contains errors, for example, if you are not permissioned for some data. From the Swagger documentation:
The above does define that an error stanza for some things.
However, looking at the Swagger details for this endpoint, I don't see anything in the request that will return additional details:0
Answers
-
The Data.Raw has only 2 tokens: data (array with 3 children tokens each having the set of values for price-volume per requested RIC) and headers (with 25 children tokens with price-volume item descriptors.
See attachedFundamentals_PV_with_invalid_RIC.zip0 -
Hi @PatrickZ
Because the response does potentially include an error stanza and you do not receive one, then it is possible there are no data points for some of the instruments. However, this is just my interpretation and would require more investigation from the content team. For these types of questions, it is best to go through the helpdesk (Product and Content Support | MyAccount (refinitiv.com)) and they can bring in a content or service expert for this service to help understand what the empy (null) values represent.
0 -
@nick.zincone that's sure that in the case that I mentioned, there is no data, because the RIC is invalid. My point is that when the response is received, there seems to be no possibility to obtain from the response any information that would enable the requester of what went wrong. So this is not a question of missing data point but the question how the the request is handled by the backend. I can address the helpdesk but they will just confirm that there is no data because the the RIC is invalid, which is obvious. Similarly, the wrong RIC is the requester error, but requesting the unauthorized RIC is not and there should be the reason returned why the data in response is missing.
0 -
You are correct that there should be some form of error response given you know one or more of the RICs are invalid. Given the error stanza can be returned as we can see within the Swagger examples above, this fact should be raised with the service team. This is especially true as it would be difficult to distinguish between the case where there is legitimately no data vs the case where there is an issue with the RIC - whether it is invalid or for some other reason.
0
Categories
- All Categories
- 6 AHS
- 37 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
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛