[英]Getting Yahoo Biz Industry Market Summary Stock Info
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 但是我还需要从Yahoo Business Page上获取类别的
Industry Market Summary
,例如在INDUSTRY CENTER-GOLD页面上获得Gold的Market Summer。
Can you please let me know how to do this? 你能让我知道怎么做吗?
Thanks 谢谢
You can use the following yql query to select data regarding materials. 您可以使用以下yql查询来选择有关物料的数据。
for Gold 黄金
select * from yahoo.finance.quotes where symbol in ("^YHOh714")
from YQL Console get the REST query 从YQL控制台获取REST查询
for Copper 用于铜
select * from yahoo.finance.quotes where symbol in ("^YHOh711")
from YQL Console get the REST query 从YQL控制台获取REST查询
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.