Add the underlying price to the UI

This commit is contained in:
Your Name
2020-04-24 21:00:37 -05:00
parent 8f1a6422f5
commit 5ba7318b2f
2 changed files with 10 additions and 0 deletions

View File

@@ -34,6 +34,14 @@ body {
top: 0; top: 0;
left: 550; left: 550;
width: 100px; width: 100px;
margin-top:0
}
#tbUnderlyingPrice {
position: absolute;
top: 30;
left: 550;
width: 100px;
} }
#frmMasterFilter { #frmMasterFilter {

View File

@@ -18,6 +18,7 @@ let createMasterFilterFrame=()=>{
</select> </select>
<h1 id='tbSymbol'></h1> <h1 id='tbSymbol'></h1>
<h2 id='tbUnderlyingPrice'></h2>
<!--button onclick='rq()'>LOAD</button--> <!--button onclick='rq()'>LOAD</button-->
`; `;
@@ -89,6 +90,7 @@ let requestOptionChain=()=>{
dta=JSON.parse(response[0].Data); dta=JSON.parse(response[0].Data);
//console.log("received",dta); //console.log("received",dta);
displayOptionChain(); displayOptionChain();
$("#tbUnderlyingPrice").text(dta.underlyingPrice.toLocaleString('en',{minimumFractionDigits: 2, maximumFractionDigits: 2}));
}); });
} }