When every request a client makes is “super simple” and a “really quick fix” according to them even though they know nothing about coding
12 notes
Reblogged from wonderfulworldofwebdesign
Reblogged from theitproblemsVisited Washington last week and it’s worth it!
Reblogged from fuckyeahcartographyOld article but great write-up.
var loadCSV = function (symbol) {
// yql : select * from yahoo.finance.historicaldata where symbol in ("IBM") and startDate = "2012-01-01" and endDate ="today()"
var url = "http://query.yahooapis.com/v1/public/yql?q=%0Aselect%20*%20from%20yahoo.finance.historicaldata%20where%20symbol%20%20in%20(%22" + symbol
+ "%22)%20and%20startDate%20%3D%20%222012-01-01%22%20and%20endDate%20%3D%22today()%22&format=json&env=http%3A%2F%2Fdatatables.org%2Falltables.env";
$.getJSON(url, function (data) {
console.log(data.query.results.quote[0].Close);
});
};
loadCSV("IBM")
loadCSV("MSFT")