Add the underlying price to the UI
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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}));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user