Hello,
I have been using the Eikon Data API to fetch news headlines using a Python script that runs every 10 seconds. The script is as follows:
- q = 'Topic:NEWS1 AND All Alert AND (Language:LEN OR Language:LZH)'
result = ek.get_news_headlines(query=q, date_from=from_ts, count=100)
headlinelist = ## extracted from result ##
if len(headlinelist) > 0:
datetime_list = [datetime.strptime(headline['versionCreated'], '%Y-%m-%dT%H:%M:%S.%f') for headline in headlinelist]
next_from_ts = "{0:%Y-%m-%dT%H:%M:%S}".format(max(datetime_list))
time.sleep(10)
from_ts = next_from_ts
However, I'm encountering rate limit errors before 24 hours have elapsed.
I've reviewed the API documentation and noted the following:
- Requests per second: Limited to 5 requests.
- Requests per day: Limited to 10,000 requests.
- Response volume per minute: Limited to 50 MB.
- Response volume per day: Limited to 5 GB.
Given the frequency of my script (running every 10 seconds), I'm not exceeding the daily limit, theoretically.
Could there be any other reasons that I might be missing which is causing these rate limit errors? Has anyone experienced something similar? Any insights or suggestions would be greatly appreciated.
Thank you in advance!