Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon Data APIs /
avatar image
Question by mahdiehvg · Nov 26, 2020 at 06:56 PM · eikon data api

Why do I get less data when I download data from Python API?

Hi,

I'm trying to get ESG indicator data for S&P 500 for 2019. I have tried to get the data from Python. It gives me around 350 values and the rest, 155, are missing values. When I download the same data from Screener app I get much more data, almost 505 observations are covered. I was wondering what could be the reason and whether I can get help to solve this problem.


I used the following code to obtain the data for 2019 in Python:


First I obtain the list of S&P 500 firms at the beginning of 2019:

sp2019, err = ek.get_data('0#.SPX(20190101)', 'TR.IndexConstituentRIC',)


Then I get the PermID for these firms:

sp2019.columns = ['inst','ric']

ric19= ek.get_symbology(sp2019.inst.tolist())


Then I construct a list including the PermIDs for these firms:

list19= list(ric19.OAPermID)


And using this list I obtain ESG indicator data for 2019 (I download all the 186 indicators and ESG category scores, here I pasted the first few indicators to be brief):

data2019, err=ek.get_data(list19,['TR.CommonName','TR.RIC','TR.GICSIndustry',

'TR.TRESGScore(Period=FY2019,Frq=FY).date',

'TR.AnalyticEqualShareholderRightsScore(Period=FY2019,Frq=FY)',

'TR.AgrochemicalProductsScore(Period=FY2019,Frq=FY)',

'TR.AnalyticAntiTakeoverDevicesScore(Period=FY2019,Frq=FY)',

'TR.AnalyticAuditCommIndScore(Period=FY2019,Frq=FY)',

'TR.AnalyticAuditCommMgtIndScore(Period=FY2019,Frq=FY)',

'TR.AnalyticBoardAffiliationsScore(Period=FY2019,Frq=FY)',

'TR.AnalyticBoardAttendanceScore(Period=FY2019,Frq=FY)']


Thank you in advance for the help.


Mahdieh

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by chavalit.jintamalit · Nov 27, 2020 at 03:34 AM

Hi @mahdiehvg

Following your code, the result on data2019 does container only 369 non-null rows.


I selected one of the RIC(null value) and tried to retrieve the data on a different period.

And it seems that the data does not available in 2019 period but available in 2017/2018 period.


So if you would like to clarify the data availability,

For an authoritative answer to any content questions, the best resource is the Refinitiv Content Helpdesk.
The Refinitiv Content Helpdesk can be reached using Contact Us capability in your Eikon application.
Or by calling the Helpdesk number in your country.
Or at https://my.refinitiv.com/



ahs1.png (26.5 KiB)
ahs2.png (47.7 KiB)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
10 People are following this question.

Related Questions

Data values are different for 'tick' and 'minute' time-series requests

How can I access Supply Chain data using Eikon Data API? (Ex. 'APPL.O VCHAINS')

Something went wrong while UDF processing the request. The format of value 'threatpulse' is invalid.

Code 500 Internal Server Error

Missing RICs in screener result for Taiwan exchange

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges