Topic: The stock quotes app says this feature is currently unavailable.

The stock quotes app says this feature is currently unavailable.

Re: The stock quotes app says this feature is currently unavailable.

Yep, the service were using to get quotes went away awhile back.  I shopped around for alternative services, there were all more expensive than were reasonable (ie several thousand dollars per month).

3 (edited by sweh 2019-05-29 17:34:39)

Re: The stock quotes app says this feature is currently unavailable.

Yeah, yahoo used to have a nice API.  But they turned that off.  The best I can do for my own home-grown scripts is effectively screen scrape google

https://www.google.com/async/finance_price_updates?&async=lang:en,country:us,rmids:"

and then add a "code" to the end.  eg JPM is "%2Fm%2F07zmchf". 

  price="$(echo "$data" | sed -n -e 's/.*"last_price":"\([^"]*\)".*/\1/p')"
  time="$(echo "$data" | sed -n -e 's/.*"localized_last_update_date":"\([^"]*\)".*/\1/p')"

Not the best way in the world, that's for sure!

Re: The stock quotes app says this feature is currently unavailable.

sweh wrote:

Yeah, yahoo used to have a nice API.  But they turned that off.

Verizon's infamous reverse-Midas touch. "Hey, let's destroy the value of everything we buy!"