stock-ticker
stock-ticker copied to clipboard
Can't connect to yahoo public api
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
Facing same issue :(
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.