ValueRaider / yfinance-cache

Caching wrapper for yfinance module. Intelligent caching, not dumb caching of web requests.
MIT License
28 stars 10 forks source link

Add auto-update to: info, calendar, shares #47

Closed ValueRaider closed 7 months ago

ValueRaider commented 8 months ago

Calendar & info auto-update is basic: if age over threshold, fetch new from Yahoo, and if data good then overwrite cached. Age controlled by new options, e.g.:

yfinance_cache.options.max_ages.calendar = '7d' yfinance_cache.options.max_ages.info = '45d'

Shares is smarter, like price history - only fetch what isn't in cache.

Cleaned up upgrade