0

I am using this code to get Stock Info for a Symbol which is working for me!

 var symbol = "AAPL";
 var url = 'http://query.yahooapis.com/v1/public/yql?q=select%20' + symbol + '%22&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback=';
   $.getJSON(url, function(data) {
   console.log(data.query.results.quote.Ask);
   });

but I also need to get the Industry Market Summary for the categories from the Yahoo Business Page like getting Market summer for Gold in INDUSTRY CENTER - GOLD Page

enter image description here

Can you please let me know how to do this?

Thanks

Community
  • 1
  • 1
Behseini
  • 6,066
  • 23
  • 78
  • 125

1 Answers1

1

You can use the following yql query to select data regarding materials.

for Gold

select * from yahoo.finance.quotes where symbol in ("^YHOh714")

from YQL Console get the REST query

for Copper

select * from yahoo.finance.quotes where symbol in ("^YHOh711")

from YQL Console get the REST query

WhoAmI
  • 501
  • 3
  • 13