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 rahman.abrahim · Nov 08, 2020 at 05:06 AM · eikon apinews

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

Daily news sentiment score on .SPX

Time unit for news in Eikon in Europe.

Looking to get subjects and sentiment for a news article using Eikon python api

Eikon python API: Formulating search queries to order news by popularity or filter by the media company

Error with parameters in get_data

  • 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
  • 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