I am trying to get to grips with the Python API With mixed results tbh.
I am trying to donwload IBES data via the api
the fields are as follows: "TR.EPSMean.fperiod", "TR.EPSMean.periodenddate", "TR.EPSMean", "TR.EPSMedian", "TR.EPSHigh", "TR.EPSLow", "TR.EPSStdDev", "TR.EPSNumberofEstimates"
Instrument ATVI.O^J23
I think the script i have is correct. The problem is what I get in return.
I am not using Python directly, I am using R and an R-package is emulating Python in order to communicate with the API. However I am certain that is not causing the issue. I am saying this because the code which you are about to see will look familiar, but it is not 100% pure Python
What you see is that "reporting_date" and "mean_epsTrend" are misaligned, they appear not in the correct rows
This error happens sometimes, in about 20% if the RICs that I have tried, which is why I am relatively confident that my script (and the R bridge) works fine
I have tried fixing it myself. What works is to download the 8 data fields separately and combining them afterwards
However, that apparently caused the real problem that I am facing now. Doing so increased the number of requests 8-fold and now I cannot download any more data