Why this error occurs:
The error typically appears when the number of API requests exceeds the allowed limits. This can result from high usage patterns or inefficient code execution.
Key API Limits to Keep in Mind:
Requests per second: Maximum of 5 requests per second, counted across all client applications connected to the same Workspace instance.
Response volume per minute: Up to 50 MB per minute, also counted across all connected applications.
Datapoints per request:
get_history: 3,000 data points for interday intervals; 50,000 for intraday intervals.
news.get_headlines: 100 headlines per request.
news.get_story: 1 story per request.
Daily Limits:
Requests per day: 10,000 requests.
Response volume per day: 5 GB.
Content/Entitlement Limits: Based on your WorkspaceVariant model and any add-ons.
Platform/Infrastructure Limits: High concurrent request loads may cause timeouts.
Steps to Resolve the Issue:
Optimize your code: Reduce unnecessary API calls by using batching, efficient endpoints, and caching where possible.
Monitor API usage: Regularly check your request volume and adjust your code to stay within the allowed limits.
Wait and retry: If the issue is due to temporary high usage, wait briefly and retry the request.
Clear Workspace app cache: This often resolves persistent issues.
Additional Suggestions:
Implement error handling to manage failed requests gracefully.
Avoid running multiple scripts simultaneously or using loops that trigger excessive API calls, as this can breach daily limits.
For further assistance, we recommend visiting the Developer's Community Q&A forum. on our Developer Portal, where subject matter experts can provide quick and accurate answers to API-related queries.
Have shared above steps to the client but client came back saying
As the error message still persists, it seems I hit the limit of requests per day (although I hardly believe it where that many) and I expect the issue to be resolved by tomorrow.
As it would be good to know: is there a way to see (e.g. somewhere in LSEG workspace) the utilization of daily limits?