No data from quote.NewQuoteFromGoogle()
chappcc opened this issue · comments
I am getting no data when I try to access data from Google. Data from Yahoo are accessed without issue. Here are the codes for each.
Yahoo
stock, err := quote.NewQuoteFromYahoo(tickerstr, todayb, today, quote.Daily, true)
Google
stock, err := quote.NewQuoteFromGoogle(tickerstr, todayb, today, quote.Daily)
My dates
currentTime := time.Now()
previousdays := 60
previousTime := currentTime.AddDate(0, 0, -previousdays)
today := currentTime.Format(layoutISO)
todayb := previousTime.Format(layoutISO)
I can confirm the Google source no longer works. They must have changed something on their end. I will attempt to fix when I get a chance.
I did a quick search and it seems Google has shut down the api. There are many other projects with the same situation.