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 willywang · Apr 07, 2019 at 09:24 PM · python apieikon data apitoo many requesterror codes

Error code 429 | Client Error: Too Many Requests - Too many requests, please try again later

hi , when i use python to get some data from eikon, i got this error

Error code 429 | Client Error: Too Many Requests - Too many requests, please try again later

and this is my code:

import eikon as ek

ek.set_app_key('*********')

df = ek.get_timeseries("USCPI=ECI",start_date="2018-01-27",end_date="2019-01-27",interval='monthly')


how can i fix this problem,thx

anatolii

People who like this

1 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.

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by chavalit.jintamalit · Apr 08, 2019 at 12:38 AM

Hi @willywang

Please read more information on this link regarding error code 429.

Comment

People who like this

0 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
willywang · Apr 18, 2019 at 09:35 PM 0
Share

hi , I can't fix the problem and it is important issue .

1.On developer community, there are so many people have same problem, but they didn't have an answer too.

2.I got some data through python api at 7 April .From then on, i can't get ant data by eikon api.

how to fix this problem , thx

avatar image
REFINITIV
Alex Putkov. ♦♦ willywang · Apr 19, 2019 at 01:54 PM 0
Share

@willywang
Have you reviewed the document @chavalit.jintamalit pointed you to? This document describes the reasons why users may receive EikonError 429.
It should also help you determine which specific throttle your code is triggering. If after reviewing the above doc you still cannot figure out which throttle your code is triggering and why, you can enable logging per instructions in this comment. The log will tell you which throttle limit your requests are breaching.
It would also be very helpful if you provided specifics of your experience: what exactly you're doing and what results you get.

avatar image
REFINITIV
Answer by Christiaan Meihsl · May 08, 2019 at 10:13 AM

Hi @willywang,

Let me add a real world experience to Chavalit's answer:

I have some Python code with a loop on 100 items. Inside the loop there is a request (tr.get_news_story). Running my code gave me a 429. After adding a 50 millisecond pause in the loop the error disappeared.

To add the pause I added this to my imports:

import time

And here is the loop:

for i in enumerate(index):
    ...
    time.sleep(0.05)
    ...

You might need to tweak the pause duration to ensure you do not hit the limit. For my code, 30 ms sometimes worked, but sometimes it failed, so I finally settled for 50 ms.

Hope this helps.

See also this thread and this thread.

Comment

People who like this

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

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

Related Questions

How can I access the Eikon Data API using Python on macOS?

EikonError: Error code 408 | UDF timeout occured. The operation was canceled.

Is it possible to search for all Equities listed on a particular exchange using the Eikon.get_data() function?

What version of Eikon (Core, Research and Advisory, Premium) do you need to use the Python Data APIs?

NaN in Python CUSIP query when asking for multiple securities; returns correctly with one security

  • 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