ValueRaider / yfinance-cache

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

Fix yfc_time reusing trimmed exchange schedule. #62

Closed ValueRaider closed 2 weeks ago

ValueRaider commented 2 weeks ago

A schedule was being put in the memory cache AFTER trimming future intervals. This was a problem for intraday schedules, because the near-future quickly becomes present & past. So after running for a long time, YFC was claiming Yahoo data didn't map to schedule.

Fixes #51

Also improved logging slightly: set logging level via yfcl.EnableLogging()