ystock
ystock copied to clipboard
SocketError: Failed to open TCP connection to download.finance.yahoo.com:80
Steps to reproduce 🦮
- Add
gem "ystock", "~> 0.4.14"
to Gemfile -
bundle install
-
rails c
- execute this...
Ystock.quote("aapl")
The result 🪲
SocketError: Failed to open TCP connection to download.finance.yahoo.com:80 (getaddrinfo: nodename nor servname provided, or not known)
from /Users/victorcosta/.rvm/rubies/ruby-2.5.5/lib/ruby/2.5.0/net/http.rb:939:in `rescue in block in connect'
Caused by SocketError: getaddrinfo: nodename nor servname provided, or not known
from /Users/victorcosta/.rvm/rubies/ruby-2.5.5/lib/ruby/2.5.0/net/http.rb:937:in `initialize'
Yahoo deprecated the API - this gem just no longer works because the API can no longer be publicly queried. You might be able to do it by starting a session on the web page, but this gem is set up for the old way the API worked.
@wakproductions Yeah! I noticed this
Too bad 😢 At least 30 gems are deprecated now!
I'm investigating here to see if there is at least one gem alive that can fetch stocks data on the Stock Market... 😆
- Deprecated gems
- https://github.com/tyrauber/stock_quote ❗ (Need to pay)
- https://github.com/ankit8898/highstocks-rails ❓(email sent)
- https://github.com/timknight/stock_grabber ❌
- https://rubygems.org/gems/bovespa-prices ❌
- https://github.com/hamorim/bovesparb ❌
- https://github.com/KlotzAndrew/yafa ❌
- https://github.com/cpankaj/yquotes ❌
- https://github.com/whitethunder/ticker_fetcher ❌
- https://www.rubydoc.info/gems/yahoofinance-symbolsuggest/0.1.0 ❌
- https://github.com/tmb41/tylor-cli-gem ❌
- https://github.com/pjlegato/yahoofinance-typhoeus ❌
- https://www.rubydoc.info/gems/yahoo_finance_2/1.0.0 ❌
- https://rubygems.org/gems/gstock ❌
- https://github.com/dansimpson/ticker ❌
- https://github.com/Swimminschrage/edgar-stocks ❌
- https://github.com/nizardhamani/quotes ❌
- https://rubygems.org/gems/stocks ❌
- https://github.com/gregwinn/ystock ❌
- https://rubygems.org/gems/equities ❌
- https://github.com/tbloncar/stock_quote_cli ❌
- https://github.com/craft-machine/stock_markets ❌
- https://github.com/unieagle/stock_history ❌
- https://github.com/brujeo/stock_recommendation ❌
- https://github.com/nas/yahoo_stock ❌
- https://github.com/seixasfelipe/bovespa-ingestion ❌
- https://github.com/alegomes/bovespa ❌
- https://github.com/pirelenito/bovespa_historical ❌
- http://www.transparentech.com/projects/yahoofinance ❌
- https://github.com/ShallmentMo/ruby_backtest ❌