getting different results depending on number of RICs supplied
I am looking to download the quarterly earnings release dates for a list of RICs. When I run the following code with <=40 RICs I get the desired data with about 20 quarterly earnings dates for each company spanning the last 5 years. However, when my list of RICs is longer, it no longer gives me all the dates. Instead, i have some results from 2016 and 2017 mostly and most other dates are missing. What might be causing this performance?
nYrs2incl=5
EDate = -nYrs2incl*365
rptDtTime2, err = ek.get_data(
instruments = RICs,
fields = ['TR.EventStartDate(EventType=RES,SDate=0,EDate=' + str(EDate) + ')'])
Best Answer
-
Hello @ajalden,
This looks to be something else, please find my list with AAPL.O ( ~90 instruments), try running below on your side. I get back everything for AAPL.O ( please see the screenshot of the output included above).
Do you observe the same by running:
nYrs2incl=5
EDate = -nYrs2incl*365
df = ek.get_data(
instruments = ["AAPL.O","ADBE.O","ADSK.O","ALTR.O","AMAT.O","AMGN.O","AMZN.O","APCC.O","APOL.O","ATYT.O","BBBY.O","BEAS.O","BIIB.O","BMET.O","BRCM.O","CDWC.O","CECO.O","CELG.O","CHIR.O","CHKP.O","CHRW.O","CMCSA.O","CMVT.O","COST.O","CSCO.O","CTAS.O","CTSH.O","CTXS.O","DELL.O","DISH.O","DLTR.O","EBAY.O","ERICY.O","ERTS.O","ESRX.O","EXPD.O","FAST.O","FISV.O","FLEX.O","GENZ.O","GILD.O","GRMN.O","INTC.O","INTU.O","ISIL.O","IVGN.O","JDSU.O","JNPR.O","KLAC.O","LAMR.O","LBTYA.O","LLTC.O","LNCR.O","LRCX.O","LVLT.O","MCHP.O","MEDI.O","MLNM.O","MOLX.O","MRVL.O","MSFT.O","MXIM.O","NTAP.O","NVLS.O","ORCL.O","PAYX.O","PCAR.O","PDCO.O","PETM.O","PIXR.O","QCOM.O","QLGC.O","RIMM.O","ROST.O","SANM.O","SBUX.O","SEPR.O","SHLD.O","SIAL.O","SIRI.O","SNDK.O","SNPS.O","SPLS.O","SSCC.O","SUNW.O","SYMC.O","TEVA.O","TLAB.O","VRSN.O","WFMI.O","WYNN.O","XLNX.O","XMSR.O","XRAY.O","YHOO.O"],
fields = ['TR.EventStartDate(EventType=RES,SDate=0,EDate=' + str(EDate) + ')'])
pd.set_option('display.max_rows', 2000)
print(df)
pd.reset_option('display.max_rowsNext, replace my list with your list, observe the result, let us know?
0
Answers
-
Hello @ajalden,
From the behavior described, seems that you are hitting a request limit.
Please see Eikon Data API Usage and Limits Guideline, data points limit per get_data request is presently at 10K.
If you find yourself requiring more, or (I like to be conservative) anywhere close to the request limit, I would partition the request into several, by partitioning the instrument list into two or more sub-lists, to jointly include all the required instruments and to avoid approaching the limit. You may, alternatively, partition the required dates interval into sub-intervals.
0 -
I don't think that's it. I'll run only about 1000 results and it starts causing problems.
0 -
1000 data points should be no issue.
Please include the instruments that have content missing, so we can help verify this on our side. Would one of these instrument still have content missing, if you run it alone?
Another possible code is instruments that are not valid for the range selected. For example:
You see what is happening? I have a bunch of instruments on the list, that have been valid only some of the time, or none of the time, and they would result in points missing.
0 -
It's hard for me to send you an exact list but I've been able to replicate the problem whenever I use >50 RICs. For example, when I run AAPL.O on its own I get the full 20 or so earnings release dates. When when I ran a longer list or RICs - in which it was included - I only got these dates:
0 -
This formula seemed to work
0 -
And it works on my list too. this is very odd
0 -
Hello @ajalden
Glad to hear it is working
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 中文论坛