Stock Market Breaking News Archives

Stock Market Breaking News Archives – Stock Price 0) { index += 9; var index2 = url_string.indexOf(“&”, index); if (index2 > 0) { var stock_exchange = url_string.substring(index,index2).toUpperCase(); index = url_string.indexOf(“symbol=”); if (index > 0) { index += 7; var stock_symbol = url_string.substring(index,url_string.length).toUpperCase(); refreshSymbol(stock_exchange, stock_symbol); } } } } function refreshSymbol(exchange, symbol) { var isIndex = false; var isCurrency = false; var isCommodity = false; if (symbol.substring(0,1) == ‘^’) isIndex = true; if (exchange.toLowerCase() == ‘forex’) isCurrency = true; if (exchange.toLowerCase() == ‘commodities’) isCommodity = true; var src = ”; var iframe = document.getElementById(“singlequote”); if (iframe != null) { src = ‘https://api.stockdio.com/visualization/financial/charts/v1/SingleQuote?app-key=630696E2EC234290918791BFD385BAC4&stockExchange=’ + exchange + ‘&symbol=’ + symbol + ‘&includeChange=false&includePercentChange=false&palette=Financial-Light&template=efe7de96-659d-42af-982c-8b79603de118’; iframe.src = src; } iframe = document.getElementById(“historicalchart”); if (iframe != null) { src = ‘https://api.stockdio.com/visualization/financial/charts/v1/HistoricalPrices?app-key=630696E2EC234290918791BFD385BAC4&stockExchange=’ + exchange + ‘&symbol=’ + symbol + ‘&dividends=true&splits=true&showBorderAndTitle=false&showUserMenu=true&palette=Financial-Light&width=100%&height=360&borderColor=ffffff&backgroundColor=ffffff&dividendsColor=2594f3&positiveColor=77b269&negativeColor=dd5152&periodsColor=2594f3’; iframe.src = src; } iframe = document.getElementById(“highlowday”); if (iframe != null) { src = ‘https://api.stockdio.com/visualization/financial/charts/v1/PriceRange?app-key=630696E2EC234290918791BFD385BAC4&stockExchange=’ + exchange + ‘&symbol=’ + symbol + ‘&rangeTitlesLocation=down&showRangeTitles=false&showRangePrices=true&showCurrentLabel=true&showCurrent=true&showOpenLabel=false&palette=Financial-Light&width=100%&height=100&intraday=true&template=ce46ee72-f7a3-4337-a72b-1b729ab551db&onload=highlowday’; iframe.src = src; } iframe = document.getElementById(“highlow52week”); if (iframe != null) { src = ‘https://api.stockdio.com/visualization/financial/charts/v1/PriceRange?app-key=630696E2EC234290918791BFD385BAC4&stockExchange=’ + exchange + ‘&symbol=’ + symbol + ‘&rangeTitlesLocation=down&showRangeTitles=false&showRangePrices=true&showCurrentLabel=true&showCurrent=true&showOpenLabel=false&palette=Financial-Light&width=100%&height=100&intraday=false&template=ce46ee72-f7a3-4337-a72b-1b729ab551db&onload=highlow52week’; iframe.src = src; } iframe = document.getElementById(“relatedcompanies”); if (iframe != null) { if (!isIndex) { src = ‘https://api.stockdio.com/visualization/financial/charts/v1/QuoteBoard?app-key=630696E2EC234290918791BFD385BAC4&stockExchange=’ + exchange + ‘&symbol=’ + symbol + ‘&presetlist=related_companies&limit=5&palette=Financial-Light&title=Related%20Symbols&width=100%25&height=auto&linkUrl=javascript:refreshSymbol(“{exchange}”,”{symbol}”)&linkTarget=self&onload=relatedcompanies&template=228e05ef-adb1-4bcf-94b5-ea85840b868e’; iframe.src = src; iframe.style.display = ‘inline’; } else iframe.style.display = ‘none’; } iframe = document.getElementById(“markets”); if (iframe != null) { src = ‘https://api.stockdio.com/visualization/financial/charts/v1/QuoteBoard?app-key=630696E2EC234290918791BFD385BAC4&stockExchange=’ + exchange + ‘&symbol=’ + symbol + ‘&presetlist=related_indices&limit=6&palette=Financial-Light&width=100%25&height=auto&xonlink=true&linkUrl=javascript:refreshSymbol(“{exchange}”,”{symbol}”)&linkTarget=self&onload=markets&template=f7c0b612-83ef-45d6-af07-a7853c5fc254’; iframe.src = src; } iframe = document.getElementById(“news”); if (iframe != null) { src = ‘https://api.stockdio.com/visualization/financial/charts/v1/News?app-key=630696E2EC234290918791BFD385BAC4&stockExchange=’ + exchange + ‘&symbol=’ + symbol + ‘&includeDescription=true&imageWidth=40&imageHeight=40&includeImage=false&palette=Financial-Light&title=News&onload=news&showTitle=false’; iframe.src = src; } iframe = document.getElementById(“companyprofile”); if (iframe != null) { if (!isIndex && !isCurrency && !isCommodity) { src = ‘https://api.stockdio.com/visualization/financial/charts/v1/CompanyProfile?app-key=630696E2EC234290918791BFD385BAC4&stockExchange=’ + exchange + ‘&symbol=’ + symbol + ‘&includeImage=false&palette=Financial-Light&onload=companyprofile’; iframe.src = src; iframe.style.display = ‘inline’; } else iframe.style.display = ‘none’; } iframe = document.getElementById(“currencies”); if (iframe != null) { src = ‘https://api.stockdio.com/visualization/financial/charts/v1/QuoteBoard?app-key=630696E2EC234290918791BFD385BAC4&stockExchange=’ + exchange + ‘&symbol=’ + symbol + ‘&presetlist=related_currencies&limit=5&palette=Financial-Light&title=Currencies&onload=currencies&linkUrl=javascript:refreshSymbol(“{exchange}”,”{symbol}”)&linkTarget=self&width=100%&template=de542fa6-b004-4665-9259-9641f61e43ea’; iframe.src = src; } } window.onload = processParameters; ]]> snp_open_inactivity) { window.clearTimeout(snp_idleInterval); snp_open_popup(”,”,’snppopup-welcome’,’welcome’); } } var snp_idleInterval = setInterval(snp_timerIncrement, 1000); jQuery(this).mousemove(function (e) { snp_idletime = 0; }); jQuery(this).keypress(function (e) { snp_idletime = 0; }); } else if(snp_open==’scroll’) { jQuery(window).scroll(function() { var h = jQuery(document).height()-jQuery(window).height(); var sp = jQuery(window).scrollTop(); var p = parseInt(sp/h*100); if(p>=snp_open_scroll && snp_op_welcome == false){ snp_open_popup(”,”,’snppopup-welcome’,’welcome’); snp_op_welcome = true; } }); } else { if(snp_open_after) { snp_timer_o=setTimeout(“snp_open_popup(”,”,’snppopup-welcome’,’welcome’);”,snp_open_after*1000); } else { snp_open_popup(”,”,’snppopup-welcome’,’welcome’); } } }); ]]> 0 ) { powerkitSLinksIds.push( $( this ).attr( ‘data-id’ ) ); } }); } }); // Generate links data. var powerkitSLinksData = {}; if( powerkitSLinksIds.length > 0 ) { powerkitSLinksData = { ‘ids’ : powerkitSLinksIds.join() }; } // Check data. if ( ! Object.entries( powerkitSLinksData ).length ) { return; } // Get results by REST API. $.ajax({ type: ‘GET’, url: ‘https://stockprice.com/wp-json/social-counts/v1/get-counts’, data: powerkitSLinksData, beforeSend: function(){ // Add Loading Class. powerkitSLinksRestBox.addClass( ‘pk-social-links-loading’ ); }, success: function( response ) { if ( ! $.isEmptyObject( response ) && ! response.hasOwnProperty( ‘code’ ) ) { // SLinks loop. $.each( response, function( index, data ) { // Find Bsa Item. var powerkitSLinksItem = powerkitSLinksRestBox.find( ‘.pk-social-links-item[data-id=”‘ + index + ‘”]’); // Set Class. if ( data.hasOwnProperty( ‘class’ ) ) { powerkitSLinksItem.addClass( data.class ); } // Set Count. if ( data.hasOwnProperty( ‘result’ ) && data.result !== null && data.result.hasOwnProperty( ‘count’ ) ) { if ( data.result.count ) { // Class Item. powerkitSLinksItem.removeClass( ‘pk-social-links-no-count’ ).addClass( ‘pk-social-links-item-count’ ); // Count item. powerkitSLinksItem.find( ‘.pk-social-links-count’ ).not( ‘.pk-tippy’ ).html( data.result.count ); } } else { powerkitSLinksItem.addClass( ‘pk-social-links-no-count’ ); } }); } // Remove Loading Class. powerkitSLinksRestBox.removeClass( ‘pk-social-links-loading’ ); }, error: function() { // Remove Loading Class. powerkitSLinksRestBox.removeClass( ‘pk-social-links-loading’ ); } }); }); })(jQuery); ]]>

Related Post

Be the first to comment

Leave a Reply

Your email address will not be published.


*