Field names and their meta data
Hi,
when using the DIB, i get a bunch of field names available for a particular instrument and its value. i get a similar info when using get_data() whn not defining any field names, which is good and a great step forward.
however, in DIB there is also a neat little description area for the particular field name with a proper Data Item Name and a Definition and so on:
now, when using get_data() i only get the raw names which are sometimes very hard to interpret. Like who would have thought that DEF_FC_TP is meant to mean "Consensus Type" or GN_TXT24_1 is supposed to mean "Revised".
so, i wonder if there is either a list or an API method (preferred) to retrieve all field names and their metadata?
this would really help a lot, as i can't even export the DIB info into an xls or similar in order to at least have the Data Item Name.
thanks
Andreas
Best Answer
-
@jonathan.legrand yes, i want to download some data via api into my own database and need to know the field info.
i wasnt mentioning that you would provide an xls file, i want to have it an excel file to be able to at least copy and paste fieldnames, descriptions and definitions and dont have to scroll through the DIB and writen them by hand (i cant even copy from DIB).
so, i thought there is an api call i can make, that would make things dynamic as well.
0
Answers
-
Hi @andreas01,
If one wishes to view the fields available for any one instrument, we advise using hte DIB, just as you have.
We cannot generate a static list, in excel or otherwise, of all these items, as the list would be drastically too long. A dynamic, searchable, list was made available as a result, through DIB.Would you mind expanding on the reason for your request? I'm asking because exporting DIB data onto a list would only limit the dataset to few static items that may go out of date, as opposed to on the DIB...
0 -
Hi @andreas01 ,
I see. In this case, I believe my colleague's answer might fit.
As you can see, you will have to use the delivery layer of the RD Lib for Python to ping this specific metadata API.
May I suggest also looking into the description output of the get_data function, as shown here?
When it comes to other fields and descriptions, I'm afraid that they're not programatically available, and can only be seen on the DIB.1 -
@jonathan.legrand the metadata API was exactly what i was looking for, thank you!
regarding the get_data, i saw all this but that means to manually go through all fields in the DIB and set them up in my DB. while this works, its a giant PITA and - as you said - only static while the metadata api call gives me any field relevant for this "view".
so, thanks again
0 -
hey @jonathan.legrand i experience a bit of a hickup when trying to go through the example for the delivery layer
i have my config json and the following code:
import os
import refinitiv.data as rd
os.environ["RD_LIB_CONFIG_PATH"] = "./Configuration"
rd.get_config()["logs.transports.console.enabled"] = True
rd.open_session("platform.rdp")
url = "http://api.refinitiv.com/data/environmental-social-governance/v2/views/basic"
request_definition = rd.delivery.endpoint_request.Definition(
url = url,
method = rd.delivery.endpoint_request.RequestMethod.GET,
query_parameters = {"universe": "IBM.N"}
)
response = request_definition.get_data()
rd.close_session()but end up with the following error:
Available scopes: {'trapi.userdata.lists.read' ...<snip out a ton of scopes>..., 'trapi.streaming.pricing.read'}
Missing scopes: {'trapi.data.esg.views-basic.read'} OR {'trapi.demo-access'}which i refuse to believe that this is true, given i am a what used to be known as Eikon Premium subscriber.
you have any idea whats going on?
0 -
Hi @andreas01, I believe that you may not have sufficient scope on Platform Sessions, however, you may have sufficient scope on Desktop Sessions. I am not a licensing expert, and this Forum is not aimed for such questions, however I do believe that Eikon Premium subscriptions do not widen Platform Session scopes. As a result, I would advise either contacting support on my.refinitiv.com or using the Desktop Session, which is detailed here and here; you can create a Desktop Session using `rd.open_session("desktop.workspace")` as opposed to `rd.open_session("platform.rdp")`.
0 -
0
-
Hi @andreas01, after testing on my end, I can confirm that the issue is indeed to do with scope and permissions. Please reach out to my.refinitiv.com to expand your permissions to access this `data/environmental-social-governance` endpoint.
It may be that you do have permission for this endpoint, but no scope, in which case you have to ask for this scope to be added; on the other hand, it is also possible that the Eikon Premium license does not come with such permissions.1
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 中文论坛