Dear Team,

Until yesterday, I was able to access Yahoo Finance via the yFinance module while running in the Lean/CLI environment. However, since the update on Friday, February 21, attempting to access yFinance now results in the following exception:

20250222 07:32:56.361 ERROR:: Engine.Run(): During the algorithm initialization, the following exception has occurred: 
Python.Runtime.PythonException: Too Many Requests. Rate limited. Try after a while.

I have the follwoing questions:

  1. Is this a bug or a planed behavior change?
  2. If this is a bug, is there any workaround or estimated timeline of the issue being resolved?
  3. If this is a planned behavior change, If it is a planned behavior change, I would like to note that there has been no communication regarding this update (as far as I am aware). Additionally, instead of terminating the program at runtime when trying to use yFinance to pull data, it would be more effective for the engine to handle this earlier, such as at the time of import. Real-time errors are challenging to debug proactively and make the entire CLI/Lean platform unreliable for serious deployment.

 

Thanks

Andy