Steven Polley 61074bfd80
All checks were successful
continuous-integration/drone/push Build is passing
implement rudimentary caching for yahoo finance to avoid http 429 rate limiting
2025-05-07 19:59:30 -06:00

16 lines
251 B
Go

package staticjsonYahooFinance
import (
"time"
)
const cacheAgeSeconds = 900
// intialized in providerImpl.go's Configure
var chartCache map[string]chartCacheEntry
type chartCacheEntry struct {
Chart chartResponse
LastUpdated time.Time
}