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

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