tyrauber / stock_quote

A ruby gem that retrieves stock quotes from IEX
MIT License
211 stars 55 forks source link

api doesn't work #55

Closed henrydabrow closed 6 years ago

henrydabrow commented 6 years ago

Unfortunately since march 15th gem works very badly, typing StockQuote::Stock.quote('GOOG') in rails console results error as follows: 2.4.1 :026 > StockQuote::Stock.quote('GOOG') JSON::ParserError: 765: unexpected token at '<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8"><TITLE>302 Moved</TITLE></HEAD><BODY><H1>302 Moved</H1>Th'/BODY></HTML> moved<A HREF="https://finance.google.com/search?q=GOOG">here</A>.

stevengangano commented 6 years ago

Yup I have the same problem and I am getting the same error above as henrydabrow has said.

webbc99 commented 6 years ago

Same issue here, same command in rails console.

tohakotliarenko commented 6 years ago

+1

tyrauber commented 6 years ago

Sorry folks, it's looks like Google shut down this endpoint. If anyone has an alternative, feel free to post it here. Until then, there is not much we can do.

reka-kulinyi commented 6 years ago

I'm sorry, they really could have warned developers before shutting it down. I've found this api as an alternative: https://www.alphavantage.co/documentation/ it works with a free api key and there is no call limit.

tyrauber commented 6 years ago

Thanks @Reka85, looks like a gem already exists for this API: https://github.com/StefanoMartin/AlphaVantageRB Have you given that a shot?

reka-kulinyi commented 6 years ago

Not yet, but I will!

henrydabrow commented 6 years ago

Thanks i'll check it!

tohakotliarenko commented 6 years ago

Thank you guys!

tyrauber commented 6 years ago

Last night I found the IEX Trading API, a free, open, high-performance, comprehensive, well-documented finance API. I played around with the API a bit and was pretty impressed. It's functionally an improvement over previous versions that utilized Yahoo and Google Finance APIs.

I am a little hesitant about switching to IEX, an unknown newcomer, given how little stability Yahoo or Google provided - and I HATE breaking changes - but the stock_quote is currently broken.

I'd love some feedback. #56

tyrauber commented 6 years ago

56 merged, and 2.0.0 pushed to rubygems.