JECSand / yahoofinancials

A powerful financial data module used for pulling data from Yahoo Finance. This module can pull fundamental and technical data for stocks, indexes, currencies, cryptos, ETFs, Mutual Funds, U.S. Treasuries, and commodity futures.
https://pypi.python.org/pypi/yahoofinancials
MIT License
896 stars 214 forks source link

Results the same every time data is polled #92

Open sverzijl opened 3 years ago

sverzijl commented 3 years ago

Code keeps a cached copy of the data and doesn't re-download. This is fine when pulling data that doesn't change but if you are trying to pull the market price periodically it doesn't work.

Maybe provide a switch for deactivating the cache?

sylvandb commented 3 years ago

Create a new instance of the object when you want fresh data.