stock-ticker icon indicating copy to clipboard operation
stock-ticker copied to clipboard

Can't connect to yahoo public api

Open schvabodka-man opened this issue 7 years ago • 2 comments

Hi! When i'm enabling the mode, I'm simply getting: REQUEST [error] Error (error) while connecting to http://query.yahooapis.com/v1/public/yql. It seems like api has been changed

schvabodka-man avatar Sep 07 '17 05:09 schvabodka-man

Facing same issue :(

gopar avatar Sep 11 '17 21:09 gopar

I found that the API now changed; we need to use a new URL and the data is in JSON. A brief example using the new URL to get a quote for GOOG, and parse it with jq will look like this:

curl https://query1.finance.yahoo.com/v8/finance/chart/GOOG | jq

Anyone interested in submitting a pull request with this incorporated into the package? You'll mostly need to change stock-ticker.el file.

Alternatively, we can look at the HTML page title of https://finance.yahoo.com/quote/GOOG, which I found to be dynamically updated.

hyiltiz avatar Mar 13 '20 17:03 hyiltiz