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
How can I do this?
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