How can I change the parameter "symbol" in the url to each element of the array one by one and run the function multiple times?
var symbols = [MSFT, CSCO, FB, AMZN, GOOG];
window.onload = function() {
$.ajax({
type: "GET",
url: "https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=AAPL&interval=1min&apikey=T6UEJETEQRVGDJS9",
success: function(result){
stocks = result;
document.getElementById("myDiv").innerHTML = stocks;
}
});
}
Thanks!