performance improvements
This commit is contained in:
@@ -45,7 +45,7 @@ let beforeShowDay=(theDate)=>{
|
||||
|
||||
let fetchSymbols=()=>{
|
||||
$.get({
|
||||
url:"http://localhost:3000/getSymbols"
|
||||
url:"/getSymbols"
|
||||
}).done(response=>{
|
||||
let allSymbols=response;
|
||||
console.log(allSymbols);
|
||||
@@ -84,7 +84,7 @@ let timeChanged=()=>{
|
||||
|
||||
let requestOptionChain=()=>{
|
||||
$.ajax({
|
||||
url:"http://localhost:3000/getOptionChain?Date=" + filterContext.theDate + "&Symbol=" + filterContext.theSymbol + "&Time="+filterContext.selectedTime
|
||||
url:"/getOptionChain?Date=" + filterContext.theDate + "&Symbol=" + filterContext.theSymbol + "&Time="+filterContext.selectedTime
|
||||
}).done(response=>{
|
||||
dta=JSON.parse(response[0].Data);
|
||||
//console.log("received",dta);
|
||||
@@ -94,7 +94,7 @@ let requestOptionChain=()=>{
|
||||
|
||||
let showTimesForDay=()=>{
|
||||
return $.ajax({
|
||||
url:"http://localhost:3000/getTimes?Date=" + filterContext.theDate + "&Symbol=" + filterContext.theSymbol
|
||||
url:"/getTimes?Date=" + filterContext.theDate + "&Symbol=" + filterContext.theSymbol
|
||||
}).done(response=>{
|
||||
let availableTimes=response;
|
||||
//console.log(availableTimes);
|
||||
@@ -116,7 +116,7 @@ let showTimesForDay=()=>{
|
||||
|
||||
let getAvailDatesForSymbol=(theSymbol)=>{
|
||||
return $.ajax({
|
||||
url:"http://localhost:3000/getDates"
|
||||
url:"/getDates"
|
||||
}).done(response=>{
|
||||
let availableDates=response;
|
||||
//console.log(availableDates);
|
||||
@@ -132,4 +132,4 @@ let refreshSymbolList=(allSymbols)=>{
|
||||
console.log(theSymbol);
|
||||
lbSymbol.append($(`<option>${theSymbol}</option>`))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,9 +4,9 @@ var optionChainContext={};
|
||||
|
||||
$(document).ready(_=>{
|
||||
dta={};
|
||||
allCombinations=$.get("http://localhost:3000/getCombinations",
|
||||
data=>{allCombinations=data;},
|
||||
"json");
|
||||
//allCombinations=$.get("/getCombinations",
|
||||
// data=>{allCombinations=data;},
|
||||
// "json");
|
||||
// displayOptionChain();
|
||||
createOrderFrame();
|
||||
createMasterFilterFrame();
|
||||
|
||||
Reference in New Issue
Block a user