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
Can you please let me know how to do this?
Thanks
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.