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 /

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

avatar image
Question by rahman.abrahim · Nov 08, 2020 at 05:06 AM · eikoneikon-data-apiworkspacepythonworkspace-data-apirefinitiv-dataplatform-eikonnews

How can I pull today's news using Eikon API?

Hi, I have been trying to pull yesterday's + today's news using Eikon API but was unable to do so as it returns me an empty dataframe. Kindly advice on how this could be done pls.

This was the code that i had used:

headlines = ek.get_news_headlines("R:Economy AND PMI", Count = 10, today()-1, today(), False, False)

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 08, 2020 at 09:12 AM

Hi @rahman.abrahim

Your query seems to match no headline.


I am assuming that this is the sample query of your interests.



ahs1.png (69.8 KiB)
ahs2.png (44.9 KiB)
Comment
rahman.abrahim
jonathan.legrand

People who like this

2 Show 2 · 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.

avatar image
rahman.abrahim · Nov 08, 2020 at 11:16 AM 0
Share

Hi @chavalit.jintamalit, thank you for the reply. I have tried the sample query above, however, it has returned me with this issue.

AttributeError: 'DataFrame' object has no attribute 'convert_dtypes'

Any idea how i can solve this?

avatar image
REFINITIV
chavalit-jintamalit ♦♦ rahman.abrahim · Nov 09, 2020 at 02:00 AM 0
Share

Hi @rahman.abrahim

I think it may be related to the Eikon Desktop/Proxy version and API version.

This is the version I am using:


My Eikon Data API version is 1.1.7

Please try to update the version using pip install --upgrade eikon command

ahs1.png (75.1 KiB)

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 >
12 People are following this question.

Related Questions

How do I apply short-term and long-term filters in Python?

Is there an API for news including sentiment?

Whether the historical news under each RIC for the same company is the same?

Getting all historical news text for specific companies

Getting more than 100 news

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • 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
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • 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
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges