tyrauber / stock_quote

A ruby gem that retrieves stock quotes from IEX
MIT License
210 stars 57 forks source link

Historical Data Deprecated by Yahoo #39

Closed sngeth closed 6 years ago

sngeth commented 6 years ago

It seems historical data isn't supported by Yahoo anymore(at least not through the yahooapis YQL mechanism) or am I using it wrong? If it is deprecated we should update the README that references the capabilities(in particular the section on Date Range).

irb(main):021:0> StockQuote::Stock.quote("aapl", "2017-07-16", "2017-07-22")
StockQuote::NoDataForStockError: StockQuote::NoDataForStockError
irb(main):022:0> StockQuote::Stock.history("aapl", "2017-07-16", "2017-07-22")
StockQuote::ApiChange: Yahoo discontinued the historical quote API on May 17th, 2017.
tyrauber commented 6 years ago

Hi @sngeth, Thanks for the note. You are correct. Yahoo dropped support for historical queries. As a result, I had deprecated the functionality and updated the readme (v1.4.0). Unfortunately, although I pushed the gem, I forgot to merge the branch into master. I apologize for the inconvenience.