Eikon API - get_data estimate - footnote does not align
JSON request:
{"Entity":{"E":["DataGrid"],"W":{"instruments":[["0880.HK"]],"fields":[{"name":["TR.EPSEstValue"]},{"name":["TR.EPSEstValue.brokername"]},{"name":["TR.EPSEstValue.date"]},{"name":["TR.EPSEstValue.origdate"]},{"name":["TR.EPSEstValue.confirmdate"]},{"name":["TR.EPSEstValue.isexcluded"]},{"name":["TR.EPSEstFootnote"]}],"parameters":{"Period":[2019]}}}}
Response:
Excel:
Problems identified:
1. All footnote are clustered towards to the top (similarly to the issue previously with NULL) and do not match with their corresponding rows
2. footnote appears out-of-order vs Excel/EIkon
Reference JSON reply:
{\"columnHeadersCount\":1,\"data\":[[\"0880.HK\",0.33,\"Permission Denied 73704\",\"2018-04-02T19:00:00Z\",\"2018-04-02T19:00:00Z\",\"\",false,\"Accounting basis unknown - contributor contacted\"],[\"0880.HK\",0.37,\"CHINA MERCHANTS SECURITIES(HK) CO., LTD\",\"2017-11-01T23:31:00Z\",\"2018-05-01T22:48:46Z\",\"\",true,\"Contributor update pending: Estimate failed freshness policy\"],[\"0880.HK\",0.301,\"CREDIT SUISSE - NON-JAPAN ASIA\",\"2018-04-12T23:31:00Z\",\"2018-04-12T23:31:00Z\",\"\",false,\"Accounting differences exist.\"],[\"0880.HK\",0.173,\"Permission Denied 7896\",\"2017-12-01T16:18:00Z\",\"2017-12-01T16:18:00Z\",\"2017-12-01T00:00:00Z\",true,\"\"],[\"0880.HK\",0.32,\"MACQUARIE RESEARCH\",\"2018-03-06T18:39:00Z\",\"2018-03-06T18:39:00Z\",\"\",false,\"\"],[\"0880.HK\",0.31,\"CGS-CIMB RESEARCH\",\"2018-04-18T18:35:00Z\",\"2018-04-18T18:35:00Z\",\"\",false,\"\"],[\"0880.HK\",0.14,\"Permission Denied 54992\",\"2017-11-21T03:07:00Z\",\"2017-11-21T03:07:00Z\",\"2018-05-02T00:00:00Z\",true,\"\"],[\"0880.HK\",0.367,\"Permission Denied 25632\",\"2018-04-11T05:33:00Z\",\"2018-04-11T05:33:00Z\",\"\",false,\"\"],[\"0880.HK\",0.31,\"MORNINGSTAR, INC.\",\"2018-03-12T20:25:00Z\",\"2018-03-12T20:25:00Z\",\"\",false,\"\"],[\"0880.HK\",0.264,\"Permission Denied 128064\",\"2018-03-05T09:30:00Z\",\"2018-03-05T09:30:00Z\",\"\",false,\"\"],[\"0880.HK\",0.47,\"CHINA INTERNATIONAL CAPITAL CORPORATION (HONG KONG) LIMITED\",\"2018-04-17T13:54:00Z\",\"2018-04-17T13:54:00Z\",\"\",false,\"\"],[\"0880.HK\",0.287,\"Permission Denied 22760\",\"2018-03-01T00:00:00Z\",\"2018-03-01T00:00:00Z\",\"\",false,\"\"],[\"0880.HK\",0.36,\"CHINA RENAISSANCE SECURITIES (US)\",\"2018-04-17T10:24:00Z\",\"2018-04-17T10:24:00Z\",\"\",false,\"\"],[\"0880.HK\",0.218,\"BOCOM INTERNATIONAL SECURITIES LIMITED\",\"2018-01-26T14:50:00Z\",\"2018-01-26T14:50:00Z\",\"2018-01-26T00:00:00Z\",false,\"\"],[\"0880.HK\",0.29,\"UNION GAMING RESEARCH\",\"2018-03-01T04:40:00Z\",\"2018-03-01T04:40:00Z\",\"\",false,\"\"],[\"0880.HK\",0.26,\"Permission Denied 36928\",\"2018-04-16T15:04:00Z\",\"2018-04-16T15:04:00Z\",\"\",false,\"\"],[\"0880.HK\",0.3,\"Permission Denied 392\",\"2018-04-10T05:55:00Z\",\"2018-04-10T05:55:00Z\",\"2018-04-13T00:00:00Z\",false,\"\"],[\"0880.HK\",0.262,\"Permission Denied 2880\",\"2018-04-13T00:15:00Z\",\"2018-04-13T00:15:00Z\",\"\",false,\"\"],[\"0880.HK\",0.45,\"GF SECURITIES CO., LTD.\",\"2018-04-13T16:01:00Z\",\"2018-04-13T16:01:00Z\",\"\",false,\"\"],[\"0880.HK\",0.24,\"Permission Denied 23816\",\"2018-03-27T03:46:00Z\",\"2018-03-27T03:46:00Z\",\"2018-04-09T00:00:00Z\",false,\"\"]],\"headerOrientation\":\"horizontal\",\"headers\":[[{\"displayName\":\"Instrument\"},{\"displayName\":\"Earnings Per Share - Broker Estimate\",\"field\":\"TR.EPSESTVALUE\"},{\"displayName\":\"Broker Name\",\"field\":\"TR.EPSESTVALUE.brokername\"},{\"displayName\":\"Date\",\"field\":\"TR.EPSESTVALUE.DATE\"},{\"displayName\":\"Activation Date\",\"field\":\"TR.EPSESTVALUE.origdate\"},{\"displayName\":\"Confirm Date\",\"field\":\"TR.EPSESTVALUE.confirmdate\"},{\"displayName\":\"isExcluded\",\"field\":\"TR.EPSESTVALUE.isexcluded\"},{\"displayName\":\"Earnings Per Share - Note\",\"field\":\"TR.EPSESTFOOTNOTE\"}]],\"rowHeadersCount\":1,\"totalColumnsCount\":8,\"totalRowsCount\":21}
Best Answer
-
@andy30
The problem stems from the fact that for timeseries data retrieval with get_data method Eikon Data API does not implement a concept of master date on which the rows are aligned, which in Excel is achieved through RH:Date parameter. While we're working on addressing this issue, the only workaround I can think of is to include in the list of fields in your request TR.EPSEstFootnote.date, which provides the date associated with each footnote the same way as TR.EPSEstValue.date provides the date associated with TR.EPSEstValue, TR.EPSEstValue.brokername etc. And then perform the alignment of rows on date index between TR.EPSEstValue.date and TR.EPSEstFootnote.date columns in your script.0
Answers
-
I was able to reproduce the issue and let the product management know.
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
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛