Historical and scheduled dates and time of an economic event per Eikon API via Python
I would like to get historical and scheduled dates and time of an economic event per Eikon API via Python. Could you pls advise how to do it?
I try like this:
fields = ['TR.IndicatorName','TR.IndicatorType','TR.IndicatorSource' ,
'GN_TXT16_3', #GMT Date
'VALUE_TS1', #Time
'CTBTR_1LL', #Period
'GN_TXT16_4', #Actual
'ECON_ACT','FCAST_PRD','ECI_ACT_DT' ]
data = ek.get_data('USFOMC=ECI', fields, {'SDate':'2019-12-12','EDate':'2023-10-01','Frq':'W'})
But I receive only 1 line (latest event)
Thank you
Best Answer
-
Hi @Anufriyev ,
1) Here's the description of the field found in the Code Creator app inside the Refinitiv Workspace/Eikon Desktop app
If you'd like to know how the value is assigned to this field in detail, the moderators on this forum do not have deep expertise in every type of content available through Refinitiv products. Such expertise is available through Refinitiv Helpdesk, which can be reached via MyRefinitiv.
2) To get the codes of all economic indicators, you may try to check the articles below and please let us know in case there are any further questions
0
Answers
-
Sorry for the issue you are facing, let me see if I can help you in resolving this.
Those fields that don't have the "TR." prefix are real-time fields that don't provide historical data.
You can try the get_history method in the Refinitiv Data Libary for Python to get historical data of USFOMC=ECI.
The RD Library Python examples are available on GitHub.
Otherwise, you can contact the Eikon or Workspace support team directly via MyRefinitiv and ask for fields that can be used in the Excel function to retrieve the required data.
I hope this will help.
0 -
Hi @Anufriyev ,
Checked using Codecreator (or Data Item Browser) app in Eikon Desktop (Tutorial video can be found here) and found that these fields aren't supported for the series function (this can be checked in the Parameters & Quick Functions tab in the app)
Below is an example of the field that support data in series function (Field TR.TotalReturn)
However, to get the data you're looking for, as the moderators on this forum do not have deep expertise in every type of content available through Refinitiv products. Such expertise is available through Refinitiv Helpdesk. If the Helpdesk can show you how to retrieve it using =@TR formula in Eikon Excel, then the moderators on this forum can help you translate it into get_data method in Eikon Data API call. Refinitiv Helpdesk can be reached via MyRefinitiv and you may request from them the =@TR formula in Eikon Excel which can be used to retrieve the data you would like to get.
Hope this helps and please let me know in case you have any questions
0 -
Thank you for the hints. The heldesk sent me here saying that here I could find more expertise
And what about upcoming/scheduled dates? Is there a posibility to retrieve this data for economic indicators?
0 -
@Anufriyev So the following query gives other info related to economic releases - some you might find useful - importantly field 'NDOR_1' is the Next Date of Release for the indicator:
data, err = ek.get_data(['USFOMC=ECI'],['DSPLY_NMLL','RELEVANCE','ACT_REL_ST','ECI_ACT_DT','ACT_VAL_NS','UNIT_PREFX','FCAST_PRD','RPT_UNITS','ECON_ACT','ECON_PRIOR','RTR_POLL','FCAST_SEST','FCAST_ACRY','NDOR_1'],{'Frq':'M'})
dataI hope this can help.
1 -
Thank you for the answer, Jason.
I have 2 further questions:
1) Among the fields you were using there is 'RELEVANCE'. Is there a description of the methodology how the values are assigned?
2) Is the there a way to get the codes of all economic indicators (e.g. relevant for USA)? I saw there is smth like 'ECONALLHK', what I suppose all indicators for Honk-Kong. But I don't know how to us it.
Thx,
Sasha
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 中文论坛