As I develop a website, I am encountering an issue with my query requests from local host. Whenever I try to query from Google or the specific address provided, I do not receive any results. Is it possible that there are query limits set for certain URLs? What suggestions do you have for avoiding this issue in production?
function searchSymbol() {
ticker = "AAPL";
var url="https://ir.stockpr.com/service/quote_jsonp?symbol=";
var extra="&jsonp=quote_search";
// Remove already existing script tag
if(document.getElementById('myScript'))
document.getElementById('myScript').parentNode.removeChild(document.getElementById('myScript'));
// Create script tag and add it to head
var script = document.createElement('script');
script.src = url+ticker+extra;
script.id = 'myScript';
document.head.appendChild(script)
}
function quote_search(json) {
var tickerSymbol = json.symbol;
var tickerPrice = json.last;
}