Eikon API: issue with get_news_story output
I am working in a Python code using the Eikon Data API to get the stories corresponding to a set of companies from Argentina.
The query is:
headlines=ek.get_news_headlines('R:YPFD.BA IN SPANISH', date_from='2019-03-06T09:00:00', date_to='2019-04-06T18:00:00')
Then, I get the story for each headline
for idx, storyId in enumerate(headlines['storyId'].values): #for each row in our df dataframe newsText = ek.get_news_story(storyId) #get the news story
The text of each story is:
"http://filings.retrieval.service.ib.thomsonone.com/Filings.Viewer/Down... "
For a few stories, I get the text but on a major of cases, I get the previous link. I don't know if it is an Error o doesn't it because I get an empty data frame when doesn't exist stories for a company. So, what does it mean?
Thanks!
Best Answer
-
I can think of this potential issue.
If you loop and sending multiple requests at once, you may get hit by limit per second.
Please read this limitation guideline.
You can add wait time in between each news story API call.
0
Answers
-
HI, @chavalit.jintamalit. Thank you for your anwers.
Do you know how to add a wait time between each query? I used time.sleep() but the output doesn't change.
Thanks!0 -
Here is the sample:
import time
for idx, storyId in enumerate(headlines['storyId'].values): #for each row in our df dataframe
newsText = ek.get_news_story(storyId) #get the news story
time.sleep(5) # sleep for 5 secondsBut apart from limit call per second, please also review other limitation such as the amount of data per day in "Eikon Data API Usage and Limits Guideline" at https://developers.refinitiv.com/eikon-apis/eikon-data-api/docs
(somehow, the URL I provided in my previous reply does not properly bring you to the document.)
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 162 App Studio
- 4 Block Chain
- 5 Bot Platform
- 17 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
- 370 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
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛