I inserted the below command in
developer.yahoo.com/yql/console/
yql = select * from yahoo.finance.quotes where symbol in ("XAUUSD=X","XAGUSD=X")
but show all the datas which are not necessary to me. XML Code Generated by Yahoo YQL and Json Code Generated by Yahoo YQL
i 只是想退出Ask、Bid、AskRealtime、BidRealtime、最后一次贸易Realtime Withtime, Last TradeWithtime, Last TradePriceOnly. 我通过使用“加拿大”会议,希望在同一页内将所收集的数据列入“html”表/div。
不能把XML或Json的数据引出。 对于我来说,比较容易地 gr取田地和会场数据,并将数据抄送html表。
And also want the grabbed data to be streamable or auto refresh when datas are refreshed in yahoo ..
found this link
streamerapi.finance.yahoo.com
but got no idea how to work
please help
i tried this but printed nothing
<script type= text/javascript >
function forex(o){
var items = o.query.results.item;
var output = ;
var no_items=items.length;
for(var i=0;i<no_items;i++){
var Ask = items[i].Ask;
var AskRealtime = items[i].AskRealtime;
var BidRealtime = items[i].BidRealtime;
var LastTradeDate = items[i].LastTradeDate;
var LastTradePriceOnly = items[i].LastTradePriceOnly;
var LastTradeTime = items[i].LastTradeTime;
output += Ask + AskRealtime + BidRealtime + LastTradeDate + LastTradePriceOnly+ LastTradeTime;
+title + desc ;
}
// Place news stories in div tag
document.getElementById( results ).innerHTML = output;
}
</head>