Merge branch 'master' of ssh://kawomi.com/var/local/git/OptiTrainer

This commit is contained in:
Joe Tretter
2020-04-24 16:27:19 -05:00
5 changed files with 509 additions and 9 deletions

View File

@@ -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>`))
}
}
}

View File

@@ -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();