Why You Should Invest In Spotify ($SPOT): Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 1: Line 1:
$(function (){
    const loadData = () => {
    var stocks = [];
    var symbols = ['AAPL', 'MSFT'];
    symbols.forEach(symbol => makeAjaxCall(symbol));
    function makeAjaxCall(param) {
        $.ajax({
            type: "GET",
            url: "https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=" + param + "&interval=1min&apikey=8TKKZE0GET944FMW",
            success: function (result) {
                stocks = result;
                getPrices();
            }
        });
    }
    function getPrices() {
        var metaData = stocks["Meta Data"],
            timeSeries = stocks["Time Series (1min)"],
            symbol = metaData["2. Symbol"];
        var priceList2 = '';
        Object.getOwnPropertyNames(lastDate).forEach(function (val, idx, array) {
            priceList += val + ': ' + lastDate[val] + '<br>';
        });
        document.getElementById("demo").innerHTML += '<div class="eachStock"><a href="#" data-stock="' + symbol + '">' + symbol + '</a></div><div>' + priceList + '</div>';
       
        const TIME = 2 * 1000; // time in millis for next update
$(() => {
    loadData();
    setInterval(loadData, TIME);
});
    }
}());
Spotify Technology S.A. ($SPOT) is a digital music, podcast, and video streaming service that has become one of the most popular and well-known platforms in the world. Since going public in April 2018, the company's stock has gained significant attention from investors, and many are wondering whether now is a good time to invest in Spotify.
Spotify Technology S.A. ($SPOT) is a digital music, podcast, and video streaming service that has become one of the most popular and well-known platforms in the world. Since going public in April 2018, the company's stock has gained significant attention from investors, and many are wondering whether now is a good time to invest in Spotify.