yahooquery icon indicating copy to clipboard operation
yahooquery copied to clipboard

Issue with the "earningsTrend" module

Open ed5555 opened this issue 1 year ago • 1 comments

When trying to use the module it may change from a dictionary to a string (even for the same ticker) of digits:

For example when running for the ticker: "ACON" I get: "10110.000000".

ed5555 avatar Nov 23 '24 15:11 ed5555

I am seeing the same symptom. It seems to be related to a high query rate, it would work for a while for around 150 requests (3s interval) and then fail. What is unusual is that other requests are responding well while earnings_trend is failing. I resolved the issue by increasing the interval between requests to 20 seconds, but that makes the whole process a bit too slow. Maybe batching more than one symbol per Ticker as the API allows is better, I will try that next.

tjean00 avatar Nov 24 '24 01:11 tjean00