Help with Retrieving 'TR.CompanyGreenRevenuePercentage' via API with Date Correspondence

Hi everyone,
I am trying to retrieve the 'TR.CompanyGreenRevenuePercentage' data using the API with the following code:
df = ek.get_data( universe=batch, fields=['TR.CompanyGreenRevenuePercentage'], parameters={'SDate': '20131231', 'EDate': '20221231'} )
However, the output does not include the corresponding dates. I attempted to add 'TR.CompanyGreenRevenuePercentage.date', but it didn't work.
Could you please help me retrieve this data along with the associated dates?
Thank you very much!
Answers
-
@DuongNHTT_1401 Thanks for your question. We have a newer library which is much better than the Eikon Data library which is now 2 generations old (but the fields and parameters will work with ek.get_data). It is called the LSEG Data library and can be downloaded from 'pip install lseg-data'.
import lseg.data as ld
import pandas as pdld.open_session()
df = ld.get_data( universe=['TSLA.O', 'IBM.N'], fields=['TR.CompanyGreenRevenuePercentage.periodenddate','TR.CompanyGreenRevenuePercentage'], parameters ={'SDate':0,'EDate':-9,'Period':'FY0','Frq':'FY'} ) df
I hope this can help.
0 -
dear @jason.ramchandani01
Thank you very much. However, when I run it, I got the below error
LDError: The access to field(s) denied. Requested universes: ['TSLA.O', 'IBM.N']. Requested fields: ['TR.COMPANYGREENREVENUEPERCENTAGE.PERIODENDDATE', 'TR.COMPANYGREENREVENUEPERCENTAGE']
Could you please help me in this problem. Thank you very much
0 -
dear @jason.ramchandani01 It seems like my account doesn't have permission to use ld.get_data(). Could you please help me in ek.get_data or rd.get_data()? Very much appreciated
0 -
I got the same error when using the LSEG Data Platform session.
LDError: The access to field(s) denied. Requested universes: ['TSLA.O', 'IBM.N']. Requested fields: ['TR.COMPANYGREENREVENUEPERCENTAGE.PERIODENDDATE', 'TR.COMPANYGREENREVENUEPERCENTAGE']
It runs fine with the desktop session. Please contact your LSEG account team or sales team to verfiy the permissions. We can't modify the clients' permissions.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 690 Datastream
- 1.4K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 559 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 279 Open PermID
- 45 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 716 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛